5 |
* WM dec 2008: Description of "GetdEdx" changed |
* WM dec 2008: Description of "GetdEdx" changed |
6 |
* WM dec 2008: "GetdEdxPaddle" modified: Now includes saturation limit |
* WM dec 2008: "GetdEdxPaddle" modified: Now includes saturation limit |
7 |
* PMTs higher than the saturation limit are not used for dEdx |
* PMTs higher than the saturation limit are not used for dEdx |
8 |
|
* WM apr 2009: bug found by Nicola in method "GetPaddlePlane" |
9 |
*/ |
*/ |
10 |
|
|
11 |
#include <ToFLevel2.h> |
#include <ToFLevel2.h> |
889 |
return; |
return; |
890 |
} |
} |
891 |
|
|
892 |
if(7<pad<14){ |
if((7<pad)&&(pad<14)){ |
893 |
plane=1; |
plane=1; |
894 |
paddle=pad-pads11; |
paddle=pad-pads11; |
895 |
return; |
return; |
896 |
} |
} |
897 |
|
|
898 |
if(13<pad<16){ |
if((13<pad)&&(pad<16)){ |
899 |
plane=2; |
plane=2; |
900 |
paddle=pad-pads11-pads12; |
paddle=pad-pads11-pads12; |
901 |
return; |
return; |
902 |
} |
} |
903 |
|
|
904 |
if(15<pad<18){ |
if((15<pad)&&(pad<18)){ |
905 |
plane=3; |
plane=3; |
906 |
paddle=pad-pads11-pads12-pads21; |
paddle=pad-pads11-pads12-pads21; |
907 |
return; |
return; |
908 |
} |
} |
909 |
|
|
910 |
if(17<pad<21){ |
if((17<pad)&&(pad<21)){ |
911 |
plane=4; |
plane=4; |
912 |
paddle=pad-pads11-pads12-pads21-pads22; |
paddle=pad-pads11-pads12-pads21-pads22; |
913 |
return; |
return; |
914 |
} |
} |
915 |
|
|
916 |
if(20<pad<24){ |
if((20<pad)&&(pad<24)){ |
917 |
plane=5; |
plane=5; |
918 |
paddle=pad-pads11-pads12-pads21-pads22-pads31; |
paddle=pad-pads11-pads12-pads21-pads22-pads31; |
919 |
return; |
return; |