Enumerations | |
| enum | counter_ { kT00, kT01, kT01RG8, kTBD, kT00RG8, kNCounter, kNPMT = 4 } |
Functions | |
| const char * | CounterName (int cntr) |
| int | ChanIdToCounter (int id, int *pmt) |
| enum T0::counter_ |
| const char * T0::CounterName | ( | int | cntr | ) |
Definition at line 11 of file T0Defs.cxx.
References kT00, kT00RG8, kT01, kT01RG8, and kTBD.
Referenced by ComputeADCGain(), ComputeADCOffset(), DoPeds(), DoTrigBitOffset(), DoTrigBitOffsetsAgain(), MakeADCGraphs(), T0Reco::MakeHistos(), T0Calib::MakeHistos(), MakeTimeGraphs(), operator<<(), and T0Reco::Reco().
00012 { 00013 switch(cntr) { 00014 case kT00: return "T00"; 00015 case kT01: return "T01"; 00016 case kT01RG8: return "T01RG8"; 00017 case kTBD: return "TBD"; 00018 case kT00RG8: return "T00RG8"; 00019 default: return "?Unknown?"; 00020 } 00021 }
| int T0::ChanIdToCounter | ( | int | id, | |
| int * | pmt = 0 | |||
| ) |
Definition at line 25 of file T0Defs.cxx.
References kNCounter.
Referenced by T0Calib::FillHits(), T0Calib::FillPedestals(), T0CalibTable::Init(), and T0Reco::Reco().
00026 { 00027 if (id < 5001 || id > 5044) return -1; 00028 00029 if (pmt) { 00030 *pmt = id % 10 - 1; 00031 if (*pmt < 0 || *pmt >= 4) return -1; 00032 } 00033 00034 int cntr = (id / 10) % 10; 00035 if (cntr >= kNCounter) return -1; 00036 return cntr; 00037 }
1.4.7