T0 Namespace Reference


Enumerations

enum  counter_ {
  kT00, kT01, kT01RG8, kTBD,
  kT00RG8, kNCounter, kNPMT = 4
}

Functions

const char * CounterName (int cntr)
int ChanIdToCounter (int id, int *pmt)


Enumeration Type Documentation

enum T0::counter_

Enumerator:
kT00 
kT01 
kT01RG8 
kTBD 
kT00RG8 
kNCounter 
kNPMT 

Definition at line 13 of file T0Defs.h.

00013                 {
00014     kT00,
00015     kT01,
00016     kT01RG8,
00017     kTBD,
00018     kT00RG8,
00019     kNCounter,
00020     kNPMT = 4
00021   };


Function Documentation

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 }


Generated on Mon Nov 23 08:05:25 2009 for MIPP(E907) by  doxygen 1.4.7