Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CandDeadChip Class Reference

#include <CandDeadChip.h>

Inheritance diagram for CandDeadChip:

CandBase CandRefCounted List of all members.

Public Types

typedef enum CandDeadChip::EChipStatus ChipStatus_t
enum  EChipStatus {
  kOkay = 0x00, kBad = 0x01, kCold = 0x02, kHot = 0x04,
  kBusy = 0x08, kError = 0x10
}

Public Member Functions

 CandDeadChip ()

Static Public Member Functions

CandDeadChipHandle MakeCandidate (AlgHandle &ah, CandContext &ch)

Protected Member Functions

 CandDeadChip (AlgHandle &ah)
 CandDeadChip (AlgHandle &ah, CandHandle &ch, CandContext &cx)
 CandDeadChip (const CandDeadChip &rhs)
virtual ~CandDeadChip ()
virtual CandDeadChipDup () const
virtual void CreateLocalHandle ()

Private Attributes

Int_t fEntries
RawChannelId fRawChannelId
Int_t fAdc
Int_t fTdc
Int_t fTdc0
Int_t fErrorCode
Int_t fTriggerRate
CandDeadChip::ChipStatus_t fStatus

Friends

class CandDeadChipHandle

Member Typedef Documentation

typedef enum CandDeadChip::EChipStatus CandDeadChip::ChipStatus_t
 


Member Enumeration Documentation

enum CandDeadChip::EChipStatus
 

Enumeration values:
kOkay 
kBad 
kCold 
kHot 
kBusy 
kError 

Definition at line 16 of file CandDeadChip.h.

00016                            {
00017     kOkay = 0x00,
00018     kBad = 0x01,
00019     kCold = 0x02,
00020     kHot = 0x04,
00021     kBusy = 0x08,
00022     kError = 0x10
00023   } ChipStatus_t;


Constructor & Destructor Documentation

CandDeadChip::CandDeadChip  ) 
 

Definition at line 10 of file CandDeadChip.cxx.

Referenced by Dup(), and MakeCandidate().

00010                            :
00011   fEntries(0),
00012   fAdc(0),
00013   fTdc(-1),
00014   fTdc0(-1),
00015   fErrorCode(0), 
00016   fTriggerRate(-1),
00017   fStatus(CandDeadChip::kOkay)
00018 {
00019 
00020 }

CandDeadChip::CandDeadChip AlgHandle ah  )  [protected]
 

Definition at line 22 of file CandDeadChip.cxx.

00022                                         : 
00023   CandBase(ah),
00024   fEntries(0),
00025   fAdc(0),
00026   fTdc(-1),
00027   fTdc0(-1),
00028   fErrorCode(0),
00029   fTriggerRate(-1),
00030   fStatus(CandDeadChip::kOkay)
00031 {
00032 
00033 }

CandDeadChip::CandDeadChip AlgHandle ah,
CandHandle ch,
CandContext cx
[protected]
 

Definition at line 35 of file CandDeadChip.cxx.

References CandDeadChipHandle, AlgHandle::RunAlg(), and CandBase::SetLocalHandle().

00035                                                                          :
00036   CandBase(ah),
00037   fEntries(0),
00038   fAdc(0),
00039   fTdc(-1),
00040   fTdc0(-1),
00041   fErrorCode(0),
00042   fTriggerRate(-1),
00043   fStatus(CandDeadChip::kOkay)
00044 {
00045   SetLocalHandle(new CandDeadChipHandle(this));
00046   { CandDeadChipHandle cth(this); ch = cth; }
00047   ah.RunAlg(ch, cx);
00048 }

CandDeadChip::CandDeadChip const CandDeadChip rhs  )  [protected]
 

Definition at line 50 of file CandDeadChip.cxx.

00050                                                   : 
00051   CandBase(rhs),
00052   fEntries(rhs.fEntries),
00053   fRawChannelId(rhs.fRawChannelId),
00054   fAdc(rhs.fAdc),
00055   fTdc(rhs.fTdc),
00056   fTdc0(rhs.fTdc0),
00057   fErrorCode(rhs.fErrorCode),
00058   fTriggerRate(rhs.fTriggerRate),
00059   fStatus(rhs.fStatus)
00060 {
00061 
00062 }

CandDeadChip::~CandDeadChip  )  [protected, virtual]
 

Definition at line 64 of file CandDeadChip.cxx.

00065 {
00066 
00067 }


Member Function Documentation

void CandDeadChip::CreateLocalHandle  )  [protected, virtual]
 

Implements CandBase.

Definition at line 79 of file CandDeadChip.cxx.

References CandDeadChipHandle, and CandBase::SetLocalHandle().

Referenced by Dup().

00080 {
00081   this->SetLocalHandle(new CandDeadChipHandle(this));
00082 }

CandDeadChip * CandDeadChip::Dup  )  const [protected, virtual]
 

Implements CandBase.

Definition at line 69 of file CandDeadChip.cxx.

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

00070 {
00071   CandDeadChip *cb = new CandDeadChip(*this);
00072   cb->CreateLocalHandle();
00073   TIter iterdau = GetDaughterIterator();
00074   CandHandle *dau;
00075   while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00076   return cb;
00077 }

CandDeadChipHandle CandDeadChip::MakeCandidate AlgHandle ah,
CandContext ch
[static]
 

Definition at line 84 of file CandDeadChip.cxx.

References CandDeadChip().

Referenced by AlgDataQuality::RunAlg().

00085 {
00086   CandDeadChipHandle cdh;
00087   new CandDeadChip(ah,cdh,cx);
00088   return cdh;
00089 }


Friends And Related Function Documentation

friend class CandDeadChipHandle [friend]
 

Definition at line 13 of file CandDeadChip.h.

Referenced by CandDeadChip(), and CreateLocalHandle().


Member Data Documentation

Int_t CandDeadChip::fAdc [private]
 

Definition at line 39 of file CandDeadChip.h.

Int_t CandDeadChip::fEntries [private]
 

Definition at line 37 of file CandDeadChip.h.

Int_t CandDeadChip::fErrorCode [private]
 

Definition at line 42 of file CandDeadChip.h.

RawChannelId CandDeadChip::fRawChannelId [private]
 

Definition at line 38 of file CandDeadChip.h.

CandDeadChip::ChipStatus_t CandDeadChip::fStatus [private]
 

Definition at line 44 of file CandDeadChip.h.

Int_t CandDeadChip::fTdc [private]
 

Definition at line 40 of file CandDeadChip.h.

Int_t CandDeadChip::fTdc0 [private]
 

Definition at line 41 of file CandDeadChip.h.

Int_t CandDeadChip::fTriggerRate [private]
 

Definition at line 43 of file CandDeadChip.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:53 2010 for loon by  doxygen 1.3.9.1