| 144 |
// |
// |
| 145 |
}; |
}; |
| 146 |
|
|
|
|
|
| 147 |
/** |
/** |
| 148 |
* Given a strip returns its position in the PAMELA reference system |
* Given a strip returns its position in the PAMELA reference system |
| 149 |
**/ |
**/ |
| 175 |
fView = view + 1; |
fView = view + 1; |
| 176 |
fPlane = plane + 1; |
fPlane = plane + 1; |
| 177 |
fStrip = strip + 1; |
fStrip = strip + 1; |
| 178 |
|
// |
| 179 |
if ( fPlane%2 ){ |
if ( fPlane%2 ){ |
| 180 |
lShift = +0.5; |
lShift = +0.5; |
| 181 |
} else { |
} else { |
| 397 |
// |
// |
| 398 |
Float_t mip = ((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim; |
Float_t mip = ((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim; |
| 399 |
// |
// |
|
// if ( view == 0 ){ |
|
|
// if ( plane%2 ){ |
|
|
// plane -= 1; |
|
|
// } else { |
|
|
// plane += 1; |
|
|
// }; |
|
|
// }; |
|
|
// |
|
|
// |
|
| 400 |
if ( mip > 0. && mip < 99999. ) return(mip); |
if ( mip > 0. && mip < 99999. ) return(mip); |
| 401 |
// |
// |
| 402 |
printf(" WARNING: problems decoding value %i at entry %i \n",estrip.At(entry),entry); |
printf(" WARNING: problems decoding value %i at entry %i \n",estrip.At(entry),entry); |
| 417 |
// |
// |
| 418 |
Int_t splane = nplane-(sview+1)/2; |
Int_t splane = nplane-(sview+1)/2; |
| 419 |
// |
// |
|
// if ( sview == 0 ){ |
|
|
// if ( splane%2 ){ |
|
|
// splane += 1; |
|
|
// } else { |
|
|
// splane -= 1; |
|
|
// }; |
|
|
// }; |
|
|
// |
|
| 420 |
Float_t totmip = qtotpl(sview,splane); |
Float_t totmip = qtotpl(sview,splane); |
| 421 |
// |
// |
| 422 |
return(totmip); |
return(totmip); |