CandCalDetSI Class Reference

#include <CandCalDetSI.h>

Inheritance diagram for CandCalDetSI:
CandBase CandRefCounted

List of all members.

Public Member Functions

 CandCalDetSI ()

Static Public Member Functions

static CandCalDetSIHandle MakeCandidate (AlgHandle &ah, CandContext &cx)

Protected Member Functions

 CandCalDetSI (AlgHandle &ah)
 CandCalDetSI (AlgHandle &ah, CandHandle &ch, CandContext &cx)
 CandCalDetSI (const CandCalDetSI &ccdsi)
virtual ~CandCalDetSI ()
virtual void CreateLocalHandle ()
virtual CandCalDetSIDup () const

Private Attributes

Bool_t fIsSnarlRecord
Bool_t fTriggerPMT
Bool_t fCosmicCnt
Bool_t fFafErr
Bool_t fSparseErr
Int_t fSnarl
Int_t fTrigSource
Int_t fKovADC1
Int_t fKovTimeStamp1
Int_t fKovADC2
Int_t fKovTimeStamp2
Int_t fKovADC3
Int_t fKovTimeStamp3
Int_t fSnarlTimeFrame
ULong_t fSnarlMinTimeStamp
ULong_t fSnarlMaxTimeStamp
Int_t fTofTDC0
Int_t fTofTDC1
Int_t fTofTDC2
Int_t fTofADC0
Int_t fTofADC1
Int_t fTofADC2
Int_t fTofADCTimeStamp0
Int_t fTofADCTimeStamp1
Int_t fTofADCTimeStamp2
Int_t fTofTimeStamp
Int_t fTickSinceLast
std::vector< RawChannelIdfDeadChips
std::map< RawChannelId, Int_t > fUnderShootChips
RawChannelId fCerenkovChannel1
RawChannelId fCerenkovChannel2
RawChannelId fCerenkovChannel3
UInt_t fTriggerORBits
Bool_t fTriggerOROK

Friends

class CandCalDetSIHandle

Detailed Description

Definition at line 20 of file CandCalDetSI.h.


Constructor & Destructor Documentation

CandCalDetSI::CandCalDetSI (  ) 

Definition at line 18 of file CandCalDetSI.cxx.

Referenced by Dup(), and MakeCandidate().

00018                           :
00019   fIsSnarlRecord(kTRUE),               //did we find some data?
00020   fTriggerPMT(kFALSE),            //Did the triggerPMT fire?
00021   fCosmicCnt(kFALSE),             //Did the CosmicCnt fire?
00022   fFafErr(kFALSE),                //Faf errors?
00023   fSparseErr(kFALSE),             //sparse errors?
00024   fSnarl(-1),                     //snarl number
00025   fTrigSource(0),                 //trigger source
00026   fKovADC1(0),                     //Cerenkov ADC value
00027   fKovTimeStamp1(0),               //Cerenkov TimeStamp
00028   fKovADC2(0),                     //Cerenkov ADC value
00029   fKovTimeStamp2(0),               //Cerenkov TimeStamp
00030   fKovADC3(0),                     //Cerenkov ADC value
00031   fKovTimeStamp3(0),               //Cerenkov TimeStamp
00032   fSnarlTimeFrame(0),               //Cerenkov Time frame
00033   fSnarlMinTimeStamp(640000000),    //snarl minimum time stamp
00034   fSnarlMaxTimeStamp(0),          //snarl maximum time stamp
00035   fTofTDC0(0),                    //TOF tdc0 value
00036   fTofTDC1(0),                    //TOF tdc1 value
00037   fTofTDC2(0),                    //TOF tdc2 value    
00038   fTofADC0(0),
00039   fTofADC1(0),
00040   fTofADC2(0),
00041   fTofADCTimeStamp0(0),
00042   fTofADCTimeStamp1(0),
00043   fTofADCTimeStamp2(0),
00044   fTofTimeStamp(0),
00045   fTickSinceLast(0),              //Ticks since last snarl
00046   fDeadChips(),                   //vector holding dead chips
00047   fUnderShootChips(),              //map listing undershoot channels
00048  
00049   fCerenkovChannel1(),
00050   fCerenkovChannel2(),
00051   fCerenkovChannel3(),  
00052   fTriggerORBits(0), fTriggerOROK(kFALSE)
00053 
00054 {
00055 } //end constructor

CandCalDetSI::CandCalDetSI ( AlgHandle ah  )  [protected]

Definition at line 60 of file CandCalDetSI.cxx.

00060                                        :
00061   CandBase(ah),  //transmit the AlgHandle up the inheritance chain to CandBase
00062 
00063   fIsSnarlRecord(kTRUE),               //did we find some data?
00064   fTriggerPMT(kFALSE),            //Did the triggerPMT fire?
00065   fCosmicCnt(kFALSE),             //Did the CosmicCnt fire?
00066   fFafErr(kFALSE),                //Faf errors?
00067   fSparseErr(kFALSE),             //sparse errors?
00068   fSnarl(-1),                     //snarl number
00069   fTrigSource(0),                 //trigger source
00070   fKovADC1(0),                     //Cerenkov ADC value
00071   fKovTimeStamp1(0),               //Cerenkov TimeStamp
00072   fKovADC2(0),                     //Cerenkov ADC value
00073   fKovTimeStamp2(0),               //Cerenkov TimeStamp
00074   fKovADC3(0),                     //Cerenkov ADC value
00075   fKovTimeStamp3(0),               //Cerenkov TimeStamp
00076   fSnarlTimeFrame(0),               //Cerenkov Time frame
00077   fTofTDC0(0),                    //TOF tdc0 value
00078   fTofTDC1(0),                    //TOF tdc1 value
00079   fTofTDC2(0),                    //TOF tdc2 value
00080   fTofADC0(0),
00081   fTofADC1(0),
00082   fTofADC2(0),
00083   fTofADCTimeStamp0(0),
00084   fTofADCTimeStamp1(0),
00085   fTofADCTimeStamp2(0),
00086   fTofTimeStamp(0),
00087   fTickSinceLast(0),              //Ticks since last snarl
00088   fDeadChips(),                   //vector holding dead chips
00089   fUnderShootChips(),              //map listing undershoot channels
00090  
00091   fCerenkovChannel1(),
00092   fCerenkovChannel2(),
00093   fCerenkovChannel3(),  
00094   fTriggerORBits(0), fTriggerOROK(kFALSE)
00095 {
00096 
00097 
00098 
00099 } //end constructor

CandCalDetSI::CandCalDetSI ( AlgHandle ah,
CandHandle ch,
CandContext cx 
) [protected]

Definition at line 103 of file CandCalDetSI.cxx.

References CreateLocalHandle(), CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), Msg::kDebug, MSG, and AlgHandle::RunAlg().

00103                                                                         :
00104 
00105   CandBase(ah),
00106 
00107   fIsSnarlRecord(kTRUE),               //did we find some data?
00108   fTriggerPMT(kFALSE),            //Did the triggerPMT fire?
00109   fCosmicCnt(kFALSE),             //Did the CosmicCnt fire?
00110   fFafErr(kFALSE),                //Faf errors?
00111   fSparseErr(kFALSE),             //sparse errors?
00112   fSnarl(-1),                     //snarl number
00113   fTrigSource(0),                 //trigger source
00114   fKovADC1(0),                     //Cerenkov ADC value
00115   fKovTimeStamp1(0),               //Cerenkov TimeStamp
00116   fKovADC2(0),                     //Cerenkov ADC value
00117   fKovTimeStamp2(0),               //Cerenkov TimeStamp
00118   fKovADC3(0),                     //Cerenkov ADC value
00119   fKovTimeStamp3(0),               //Cerenkov TimeStamp
00120   fSnarlTimeFrame(0),               //Cerenkov Time frame
00121   fTofTDC0(0),                    //TOF tdc0 value
00122   fTofTDC1(0),                    //TOF tdc1 value
00123   fTofTDC2(0),                    //TOF tdc2 value
00124   fTofADC0(0),
00125   fTofADC1(0),
00126   fTofADC2(0),
00127   fTofADCTimeStamp0(0),
00128   fTofADCTimeStamp1(0),
00129   fTofADCTimeStamp2(0),
00130   fTofTimeStamp(0),
00131   
00132   fTickSinceLast(0),              //Ticks since last snarl
00133   fDeadChips(),                   //vector holding dead chips
00134   fUnderShootChips(),              //map listing undershoot channels
00135 
00136   fCerenkovChannel1(),
00137   fCerenkovChannel2(),
00138   fCerenkovChannel3(),
00139   fTriggerORBits(0), fTriggerOROK(kFALSE)
00140 
00141 {
00142 
00143 
00144 
00145   CreateLocalHandle(); 
00146 
00147   MSG("Cand", Msg::kDebug)
00148              << "Begin CandDigit::CandDigit(AlgHandle &, CandHandle &, "
00149              << "CandContext &) ctor: " << endl
00150              << "UidInt = " << GetUidInt()
00151              << ", ArchUidInt " << GetArchUidInt() << endl
00152              << "No. of links = " << GetNLinks() << endl
00153              << "End CandDigit::CandDigit(AlgHandle &, CandHandle &, "
00154              << "CandContext &) ctor." << endl;
00155 
00156 // Run Algorithm to construct Candidate
00157    {                                         // Start of scope.
00158      CandCalDetSIHandle cdh(this);           // cdh will go out of scope
00159      ch = cdh;                               // after setting ch.
00160    }                                         // End of scope.
00161    ah.RunAlg(ch, cx);
00162 } //end constructor

CandCalDetSI::CandCalDetSI ( const CandCalDetSI ccdsi  )  [protected]

Definition at line 166 of file CandCalDetSI.cxx.

References CandBase::GetArchUidInt(), CandRefCounted::GetNLinks(), CandBase::GetUidInt(), Msg::kDebug, and MSG.

00166                                                  :
00167   CandBase(csi),
00168 
00169   fIsSnarlRecord(csi.fIsSnarlRecord),         //Did we find some data?
00170   fTriggerPMT(csi.fTriggerPMT),           //Did the triggerPMT fire?
00171   fCosmicCnt(csi.fCosmicCnt),             //Did the CosmicCnt fire?
00172   fFafErr(csi.fFafErr),                    //Faf errors?
00173   fSparseErr(csi.fSparseErr),              //sparse errors?
00174   fSnarl(csi.fSnarl),                     //snarl number
00175   fTrigSource(csi.fTrigSource),           //trigger source
00176   fKovADC1(csi.fKovADC1),                   //Cerenkov ADC value
00177   fKovTimeStamp1(csi.fKovTimeStamp1),         //Cerenkov TimeStamp
00178   fKovADC2(csi.fKovADC2),                   //Cerenkov ADC value
00179   fKovTimeStamp2(csi.fKovTimeStamp2),       //Cerenkov TimeStamp
00180   fKovADC3(csi.fKovADC3),                   //Cerenkov ADC value
00181   fKovTimeStamp3(csi.fKovTimeStamp3),        //Cerenkov TimeStamp
00182   fSnarlTimeFrame(0),               //Cerenkov Time frame
00183   fTofTDC0(csi.fTofTDC0),                 //TOF tdc0 value
00184   fTofTDC1(csi.fTofTDC1),                 //TOF tdc1 value
00185   fTofTDC2(csi.fTofTDC2),                 //TOF tdc2 value
00186   fTofADC0(csi.fTofADC0),
00187   fTofADC1(csi.fTofADC1),
00188   fTofADC2(csi.fTofADC2),
00189   fTofADCTimeStamp0(csi.fTofADCTimeStamp0),
00190   fTofADCTimeStamp1(csi.fTofADCTimeStamp1),
00191   fTofADCTimeStamp2(csi.fTofADCTimeStamp2),
00192   fTofTimeStamp(csi.fTofTimeStamp),
00193   
00194   fTickSinceLast(csi.fTickSinceLast),     //Ticks since last snarl    
00195   fDeadChips(csi.fDeadChips),             //vector holding dead chips
00196   fUnderShootChips(csi.fUnderShootChips),  //map listing undershoot channels
00197   fCerenkovChannel1(csi.fCerenkovChannel1),
00198   fCerenkovChannel2(csi.fCerenkovChannel2),
00199   fCerenkovChannel3(csi.fCerenkovChannel3),
00200   fTriggerORBits(csi.fTriggerORBits), fTriggerOROK(csi.fTriggerOROK)
00201 
00202 {
00203     MSG("Cand", Msg::kDebug)
00204     << "Begin CandDigit::CandDigit(const CandDigit &rhs) ctor: " << endl
00205     << "UidInt = " << GetUidInt()
00206     << ", ArchUidInt " << GetArchUidInt() << endl
00207     << "No. of links = " << GetNLinks() << endl
00208     << "End CandDigit::CandDigit(const CandDigit &rhs) ctor." << endl;
00209 } //end constructor

CandCalDetSI::~CandCalDetSI (  )  [protected, virtual]

Definition at line 213 of file CandCalDetSI.cxx.

00213 {}  //destructor does nothing


Member Function Documentation

void CandCalDetSI::CreateLocalHandle (  )  [protected, virtual]

Implements CandBase.

Definition at line 217 of file CandCalDetSI.cxx.

References CandCalDetSIHandle, and CandBase::SetLocalHandle().

Referenced by CandCalDetSI(), and Dup().

00218 {
00219 
00220   SetLocalHandle(new CandCalDetSIHandle(this));
00221 
00222 }//end CreateLocalHandle

CandCalDetSI * CandCalDetSI::Dup (  )  const [protected, virtual]

Implements CandBase.

Definition at line 226 of file CandCalDetSI.cxx.

References CandBase::AddDaughterLink(), CandCalDetSI(), CreateLocalHandle(), and CandBase::GetDaughterIterator().

00227 {
00228 // Base copy ctor dups owned pointers, but defers copying Daughter List.
00229 // Daughter List copy is made in the derived class Dup() function.
00230 // This is because base class copy constructor hasn't yet created
00231 // fLocalHandle with a CandHandle* of the full derived type.
00232 
00233   CandCalDetSI *cb = new CandCalDetSI(*this);           // Copy-ctor dups ptrs
00234   cb->CreateLocalHandle();   // Initializes fLocalHandle after copy-ctor
00235   TIter iterdau = GetDaughterIterator();
00236   CandHandle *dau;
00237   while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00238   return cb;
00239 
00240 }//end Dup

CandCalDetSIHandle CandCalDetSI::MakeCandidate ( AlgHandle ah,
CandContext cx 
) [static]

Definition at line 244 of file CandCalDetSI.cxx.

References CandCalDetSI().

Referenced by CalDetSIModule::Reco().

00245 {
00246 
00247   CandCalDetSIHandle cdh;
00248   new CandCalDetSI(ah, cdh, cx);              // cdh owns the new CandCalDetSI
00249   return cdh;
00250 
00251 }//end MakeCandidate


Friends And Related Function Documentation

friend class CandCalDetSIHandle [friend]

Definition at line 22 of file CandCalDetSI.h.

Referenced by CreateLocalHandle().


Member Data Documentation

Definition at line 64 of file CandCalDetSI.h.

Definition at line 65 of file CandCalDetSI.h.

Definition at line 66 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fCosmicCnt [private]

Definition at line 32 of file CandCalDetSI.h.

std::vector<RawChannelId> CandCalDetSI::fDeadChips [private]

Definition at line 61 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fFafErr [private]

Definition at line 33 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fIsSnarlRecord [private]

Definition at line 30 of file CandCalDetSI.h.

Int_t CandCalDetSI::fKovADC1 [private]

Definition at line 37 of file CandCalDetSI.h.

Int_t CandCalDetSI::fKovADC2 [private]

Definition at line 39 of file CandCalDetSI.h.

Int_t CandCalDetSI::fKovADC3 [private]

Definition at line 41 of file CandCalDetSI.h.

Definition at line 38 of file CandCalDetSI.h.

Definition at line 40 of file CandCalDetSI.h.

Definition at line 42 of file CandCalDetSI.h.

Int_t CandCalDetSI::fSnarl [private]

Definition at line 35 of file CandCalDetSI.h.

Definition at line 45 of file CandCalDetSI.h.

Definition at line 44 of file CandCalDetSI.h.

Definition at line 43 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fSparseErr [private]

Definition at line 34 of file CandCalDetSI.h.

Definition at line 60 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofADC0 [private]

Definition at line 49 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofADC1 [private]

Definition at line 51 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofADC2 [private]

Definition at line 53 of file CandCalDetSI.h.

Definition at line 55 of file CandCalDetSI.h.

Definition at line 56 of file CandCalDetSI.h.

Definition at line 57 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofTDC0 [private]

Definition at line 46 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofTDC1 [private]

Definition at line 47 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofTDC2 [private]

Definition at line 48 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTofTimeStamp [private]

Definition at line 59 of file CandCalDetSI.h.

UInt_t CandCalDetSI::fTriggerORBits [private]

Definition at line 74 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fTriggerOROK [private]

Definition at line 75 of file CandCalDetSI.h.

Bool_t CandCalDetSI::fTriggerPMT [private]

Definition at line 31 of file CandCalDetSI.h.

Int_t CandCalDetSI::fTrigSource [private]

Definition at line 36 of file CandCalDetSI.h.

std::map<RawChannelId, Int_t> CandCalDetSI::fUnderShootChips [private]

Definition at line 62 of file CandCalDetSI.h.


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1