| 16 |
float pfaeta2_(int*,float*); |
float pfaeta2_(int*,float*); |
| 17 |
float pfaeta3_(int*,float*); |
float pfaeta3_(int*,float*); |
| 18 |
float pfaeta4_(int*,float*); |
float pfaeta4_(int*,float*); |
| 19 |
|
float pfaetal_(int*,float*); |
| 20 |
|
|
| 21 |
} |
} |
| 22 |
//-------------------------------------- |
//-------------------------------------- |
| 389 |
// |
// |
| 390 |
//-------------------------------------- |
//-------------------------------------- |
| 391 |
/** |
/** |
| 392 |
* Evaluates the cluster position, in strips, relative to the strip with the maximum signal (TrkCluster::maxs), by applying the non-linear ETA-algorythm. |
* Evaluates the cluster position, in pitch units, relative to the strip with the maximum signal (TrkCluster::maxs), by applying the non-linear ETA-algorythm. |
| 393 |
* @param neta Number of strips to evaluate ETA. |
* @param neta Number of strips to evaluate ETA. |
| 394 |
* @param angle Projected angle between particle track and detector plane. |
* @param angle Projected (effective) angle between particle track and detector plane. |
| 395 |
* Implemented values of neta are 2,3,4. If neta=0, ETA2, ETA3 and ETA4 are applied according to the angle. |
* Implemented values of neta are 2,3,4. If neta=0, ETA2, ETA3 and ETA4 are applied according to the angle. |
| 396 |
*/ |
*/ |
| 397 |
Float_t TrkCluster::GetETA(Int_t neta, float angle){ |
Float_t TrkCluster::GetETA(Int_t neta, float angle, bool landi){ |
| 398 |
|
|
| 399 |
// cout << "GetETA(neta,angle) "<< neta << " "<< angle; |
// cout << "GetETA(neta,angle) "<< neta << " "<< angle; |
| 400 |
// LoadPfaParam(); |
// LoadPfaParam(); |
| 408 |
float ax = angle; |
float ax = angle; |
| 409 |
int ic = 1; |
int ic = 1; |
| 410 |
GetLevel1Struct(); |
GetLevel1Struct(); |
| 411 |
if(neta == 0) return pfaeta_(&ic,&ax); |
if( neta == 0 && !landi) return pfaeta_(&ic,&ax); |
| 412 |
else if(neta == 2) return pfaeta2_(&ic,&ax); |
else if(neta == 0 && landi ) return pfaetal_(&ic,&ax); |
| 413 |
else if(neta == 3) return pfaeta3_(&ic,&ax); |
else if(neta == 2 ) return pfaeta2_(&ic,&ax); |
| 414 |
else if(neta == 4) return pfaeta4_(&ic,&ax); |
else if(neta == 3 ) return pfaeta3_(&ic,&ax); |
| 415 |
|
else if(neta == 4 ) return pfaeta4_(&ic,&ax); |
| 416 |
else cout << "ETA"<<neta<<" not implemented\n"; |
else cout << "ETA"<<neta<<" not implemented\n"; |
| 417 |
return 0; |
return 0; |
| 418 |
|
|
| 419 |
}; |
}; |
| 420 |
|
|
| 421 |
|
/** |
| 422 |
|
* Evaluates the cluster position, in pitch units, relative to the strip with |
| 423 |
|
* the maximum signal (TrkCluster::maxs), by applying the PFA set as default (see TrkParams). |
| 424 |
|
* @param angle Projected (effective) angle between particle track and detector plane. |
| 425 |
|
*/ |
| 426 |
|
Float_t TrkCluster::GetPositionPU(float angle){ |
| 427 |
|
|
| 428 |
|
if( TrkParams::GetPFA() == 0 )return GetETA(0,angle,false); |
| 429 |
|
if( TrkParams::GetPFA() == 1 )return 0.; |
| 430 |
|
if( TrkParams::GetPFA() == 2 )return GetETA(2,angle,false); |
| 431 |
|
if( TrkParams::GetPFA() == 3 )return GetETA(3,angle,false); |
| 432 |
|
if( TrkParams::GetPFA() == 4 )return GetETA(4,angle,false); |
| 433 |
|
if( TrkParams::GetPFA() == 5 )return GetETA(0,angle,true); |
| 434 |
|
if( TrkParams::GetPFA() == 6 )return 0.; |
| 435 |
|
if( TrkParams::GetPFA() == 7 )return 0.; |
| 436 |
|
if( TrkParams::GetPFA() == 8 )return 0.; |
| 437 |
|
if( TrkParams::GetPFA() == 9 )return 0.; |
| 438 |
|
if( TrkParams::GetPFA() == 10 )return GetCOG(0); |
| 439 |
|
if( TrkParams::GetPFA() == 11 )return GetCOG(1); |
| 440 |
|
if( TrkParams::GetPFA() == 12 )return GetCOG(2); |
| 441 |
|
if( TrkParams::GetPFA() == 13 )return GetCOG(3); |
| 442 |
|
if( TrkParams::GetPFA() == 14 )return GetCOG(4); |
| 443 |
|
|
| 444 |
|
return 0.; |
| 445 |
|
|
| 446 |
|
} |
| 447 |
|
|
| 448 |
//-------------------------------------- |
//-------------------------------------- |
| 449 |
// |
// |
| 450 |
// |
// |