7 #include "GaudiKernel/MsgStream.h"
22 if ( statusHT==2 || statusHT==3 ) { strawGasType = 0; }
23 else if ( statusHT==5 ) { strawGasType = 1; }
24 else if ( statusHT==1 || statusHT==4 ) { strawGasType = 2; }
25 else if ( statusHT==6 ) { strawGasType = 0; }
26 else if ( statusHT==7 ) { strawGasType = 0; }
31 <<
", must be 'Good(2)||Xenon(3)' or 'Dead(1)||Argon(4)' or 'Krypton(5)!'"
32 <<
", or 'EmulateArgon(6)' or 'EmulateKrypton(7)'" <<
endmsg; }
35 else if (useGasMix==1) { strawGasType = 0; }
36 else if (useGasMix==2) { strawGasType = 1; }
37 else if (useGasMix==3) { strawGasType = 2; }
39 if ( strawGasType<0 || strawGasType>2 ) {
40 if (
log) { *
log <<
MSG::FATAL <<
"StrawGasType: strawGasType value (" << strawGasType <<
") must be 0(Xe), 1(Kr) or 2(Ar)!" <<
endmsg; }
51 const int mask(0x0000001F);
52 const int word_shift(5);
53 int layerID, ringID, wheelID;
54 unsigned int region(0);
56 if ( !(hitID & 0x00200000) ) {
59 layerID = hitID &
mask;
62 ringID = hitID &
mask;
63 region = ( (layerID < 9) && (ringID == 0) ) ? 1 : 2;
70 wheelID = hitID &
mask;
71 region = wheelID < 8 ? 3 : 4;