VaChip Class Reference

#include <VaChip.h>

List of all members.

Public Types

enum  EVaChipStatus {
  kGood = 0x00, kBad = 0x01, kBusy = 0x02, kDead = 0x03,
  kCold = 0x04, kHot = 0x05
}
typedef enum VaChip::EVaChipStatus VaChipStatus_t

Public Member Functions

 VaChip (Int_t crate, Int_t varc, Int_t vmm, Int_t vaadc, Int_t vachip, Int_t plane, Int_t shld, Int_t nanosec)
 VaChip (const VaChip &rhs)
 ~VaChip ()
void AddVaChannel (Int_t vachannel, Int_t vaparam)
Int_t GetVaChannel () const
Int_t GetVaChannelWord () const
Int_t GetVaChannelCount () const
void SetVaChipStatus (VaChipStatus_t status)
VaChipStatus_t GetVaChipStatus () const
Int_t GetCrate () const
Int_t GetVarc () const
Int_t GetVmm () const
Int_t GetVaadc () const
Int_t GetVaChip () const
Int_t GetPlane () const
Int_t GetShld () const
Int_t GetNanosec () const
Bool_t IsSameCrate (Int_t crate) const
Bool_t IsSameVarc (Int_t crate, Int_t varc) const
Bool_t IsSameVmm (Int_t crate, Int_t varc, Int_t vmm) const
Bool_t IsSameVaadc (Int_t crate, Int_t varc, Int_t vmm, Int_t vaadc) const
Bool_t IsSameVaChip (Int_t crate, Int_t varc, Int_t vmm, Int_t vaadc, Int_t vachip) const

Private Attributes

Int_t fCrate
Int_t fVarc
Int_t fVmm
Int_t fVaadc
Int_t fVaChip
Int_t fPlane
Int_t fShld
Int_t fNanosec
Int_t fVaParam
Int_t fVaChannel
Int_t fVaChannelWord
Int_t fVaChannelCount
VaChipStatus_t fStatus

Detailed Description

Definition at line 6 of file VaChip.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
kGood 
kBad 
kBusy 
kDead 
kCold 
kHot 

Definition at line 11 of file VaChip.h.

00011                              {
00012     kGood = 0x00,
00013     kBad  = 0x01,
00014     kBusy = 0x02,
00015     kDead = 0x03,
00016     kCold = 0x04,
00017     kHot  = 0x05
00018   } VaChipStatus_t;


Constructor & Destructor Documentation

VaChip::VaChip ( Int_t  crate,
Int_t  varc,
Int_t  vmm,
Int_t  vaadc,
Int_t  vachip,
Int_t  plane,
Int_t  shld,
Int_t  nanosec 
)

Definition at line 5 of file VaChip.cxx.

00007 {
00008   fCrate=crate;
00009   fVarc=varc;
00010   fVmm=vmm;
00011   fVaadc=vaadc;
00012   fVaChip=vachip;
00013   fPlane=plane;
00014   fShld=shld;
00015   fNanosec=nanosec;
00016   fVaParam=0;
00017   fVaChannel=-1;
00018   fVaChannelWord=0;
00019   fVaChannelCount=0;
00020 }

VaChip::VaChip ( const VaChip rhs  ) 

Definition at line 22 of file VaChip.cxx.

00022                                 :
00023   TObject(rhs),
00024   fCrate(rhs.fCrate), 
00025   fVarc(rhs.fVarc), 
00026   fVmm(rhs.fVmm), 
00027   fVaadc(rhs.fVaadc), 
00028   fVaChip(rhs.fVaChip),
00029   fPlane(rhs.fPlane),
00030   fShld(rhs.fShld),
00031   fNanosec(rhs.fNanosec),
00032   fVaParam(rhs.fVaParam),
00033   fVaChannel(rhs.fVaChannel),
00034   fVaChannelWord(rhs.fVaChannelWord),
00035   fVaChannelCount(rhs.fVaChannelCount), 
00036   fStatus(rhs.fStatus)
00037 {
00038 
00039 }
  

VaChip::~VaChip (  ) 

Definition at line 41 of file VaChip.cxx.

00042 {
00043 
00044 }


Member Function Documentation

void VaChip::AddVaChannel ( Int_t  vachannel,
Int_t  vaparam 
)

Definition at line 46 of file VaChip.cxx.

References fVaChannel, fVaChannelCount, and fVaParam.

Referenced by FarDetDataQualityModule::ProcessBlock().

00047 {
00048   
00049 
00050   if(vaparam>fVaParam){
00051     fVaChannel=vachannel; fVaParam=vaparam;
00052   }
00053 
00054   fVaChannelCount++;
00055 }

Int_t VaChip::GetCrate (  )  const

Definition at line 62 of file VaChip.cxx.

References fCrate.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00063 {
00064   return fCrate;
00065 }

Int_t VaChip::GetNanosec (  )  const

Definition at line 97 of file VaChip.cxx.

References fNanosec.

Referenced by FarDetDataQualityModule::ProcessBlock(), AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00098 {
00099   return fNanosec;
00100 }

Int_t VaChip::GetPlane (  )  const

Definition at line 87 of file VaChip.cxx.

References fPlane.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00088 {
00089   return fPlane;
00090 }

Int_t VaChip::GetShld (  )  const

Definition at line 92 of file VaChip.cxx.

References fShld.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00093 {
00094   return fShld;
00095 }

Int_t VaChip::GetVaadc (  )  const

Definition at line 77 of file VaChip.cxx.

References fVaadc.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00078 {
00079   return fVaadc;
00080 }

Int_t VaChip::GetVaChannel (  )  const

Definition at line 102 of file VaChip.cxx.

References fVaChannel.

Referenced by AlgFarDetDataQuality::RunAlg().

00103 {
00104   return fVaChannel;
00105 }

Int_t VaChip::GetVaChannelCount (  )  const

Definition at line 112 of file VaChip.cxx.

References fVaChannelCount.

00113 {
00114   return fVaChannelCount;
00115 }

Int_t VaChip::GetVaChannelWord (  )  const

Definition at line 107 of file VaChip.cxx.

References fVaChannelWord.

00108 {
00109   return fVaChannelWord;
00110 }

Int_t VaChip::GetVaChip (  )  const

Definition at line 82 of file VaChip.cxx.

References fVaChip.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00083 {
00084   return fVaChip;
00085 }

VaChip::VaChipStatus_t VaChip::GetVaChipStatus (  )  const

Definition at line 117 of file VaChip.cxx.

References fStatus.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00118 {
00119   return fStatus;
00120 }

Int_t VaChip::GetVarc (  )  const

Definition at line 67 of file VaChip.cxx.

References fVarc.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00068 {
00069   return fVarc;
00070 }

Int_t VaChip::GetVmm (  )  const

Definition at line 72 of file VaChip.cxx.

References fVmm.

Referenced by AlgFarDetDataQuality::RunAlg(), and FarDetDeadChipHandle::SetVaChip().

00073 {
00074   return fVmm;
00075 }

Bool_t VaChip::IsSameCrate ( Int_t  crate  )  const

Definition at line 122 of file VaChip.cxx.

References fCrate.

00123 {
00124   if(fCrate==crate) return 1; else return 0;
00125 }

Bool_t VaChip::IsSameVaadc ( Int_t  crate,
Int_t  varc,
Int_t  vmm,
Int_t  vaadc 
) const

Definition at line 137 of file VaChip.cxx.

References fCrate, fVaadc, fVarc, and fVmm.

00138 {
00139   if(fCrate==crate && fVarc==varc && fVmm==vmm && fVaadc==vaadc) return 1; else return 0;
00140 }

Bool_t VaChip::IsSameVaChip ( Int_t  crate,
Int_t  varc,
Int_t  vmm,
Int_t  vaadc,
Int_t  vachip 
) const

Definition at line 142 of file VaChip.cxx.

References fCrate, fVaadc, fVaChip, fVarc, and fVmm.

Referenced by FarDetDataQualityModule::ProcessBlock().

00143 {
00144   if(fCrate==crate && fVarc==varc && fVmm==vmm && fVaadc==vaadc && fVaChip==vachip) return 1; else return 0;
00145 }

Bool_t VaChip::IsSameVarc ( Int_t  crate,
Int_t  varc 
) const

Definition at line 127 of file VaChip.cxx.

References fCrate, and fVarc.

00128 {
00129   if(fCrate==crate && fVarc==varc) return 1; else return 0;
00130 }

Bool_t VaChip::IsSameVmm ( Int_t  crate,
Int_t  varc,
Int_t  vmm 
) const

Definition at line 132 of file VaChip.cxx.

References fCrate, fVarc, and fVmm.

Referenced by AlgFarDetDataQuality::RunAlg().

00133 {
00134   if(fCrate==crate && fVarc==varc && fVmm==vmm) return 1; else return 0;
00135 }

void VaChip::SetVaChipStatus ( VaChip::VaChipStatus_t  status  ) 

Definition at line 57 of file VaChip.cxx.

References fStatus.

Referenced by FarDetDataQualityModule::ProcessBlock().

00058 {
00059   fStatus=status;
00060 }


Member Data Documentation

Int_t VaChip::fCrate [private]

Definition at line 50 of file VaChip.h.

Referenced by GetCrate(), IsSameCrate(), IsSameVaadc(), IsSameVaChip(), IsSameVarc(), and IsSameVmm().

Int_t VaChip::fNanosec [private]

Definition at line 57 of file VaChip.h.

Referenced by GetNanosec().

Int_t VaChip::fPlane [private]

Definition at line 55 of file VaChip.h.

Referenced by GetPlane().

Int_t VaChip::fShld [private]

Definition at line 56 of file VaChip.h.

Referenced by GetShld().

Definition at line 64 of file VaChip.h.

Referenced by GetVaChipStatus(), and SetVaChipStatus().

Int_t VaChip::fVaadc [private]

Definition at line 53 of file VaChip.h.

Referenced by GetVaadc(), IsSameVaadc(), and IsSameVaChip().

Int_t VaChip::fVaChannel [private]

Definition at line 60 of file VaChip.h.

Referenced by AddVaChannel(), and GetVaChannel().

Int_t VaChip::fVaChannelCount [private]

Definition at line 62 of file VaChip.h.

Referenced by AddVaChannel(), and GetVaChannelCount().

Int_t VaChip::fVaChannelWord [private]

Definition at line 61 of file VaChip.h.

Referenced by GetVaChannelWord().

Int_t VaChip::fVaChip [private]

Definition at line 54 of file VaChip.h.

Referenced by GetVaChip(), and IsSameVaChip().

Int_t VaChip::fVaParam [private]

Definition at line 59 of file VaChip.h.

Referenced by AddVaChannel().

Int_t VaChip::fVarc [private]

Definition at line 51 of file VaChip.h.

Referenced by GetVarc(), IsSameVaadc(), IsSameVaChip(), IsSameVarc(), and IsSameVmm().

Int_t VaChip::fVmm [private]

Definition at line 52 of file VaChip.h.

Referenced by GetVmm(), IsSameVaadc(), IsSameVaChip(), and IsSameVmm().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1