FarDetDeadChipHandle Class Reference

#include <FarDetDeadChipHandle.h>

Inheritance diagram for FarDetDeadChipHandle:
CandHandle

List of all members.

Public Member Functions

 FarDetDeadChipHandle ()
 FarDetDeadChipHandle (const FarDetDeadChipHandle &rhs)
 FarDetDeadChipHandle (FarDetDeadChip *candidate)
virtual ~FarDetDeadChipHandle ()
virtual FarDetDeadChipHandleDupHandle () 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 GetPlane (Int_t i) const
Int_t GetShld () const
Int_t GetNanosec () const
VaChip::VaChipStatus_t GetVaChipStatus () const
void SetVaChipId (Int_t crate, Int_t varc, Int_t vmm, Int_t vaadc, Int_t vachip)
void SetNanosec (Int_t nanosec)
void SetVaChipStatus (VaChip::VaChipStatus_t status)
void SetVaChip (VaChip *chip)
 ClassDef (FarDetDeadChipHandle, 1)

Detailed Description

Definition at line 9 of file FarDetDeadChipHandle.h.


Constructor & Destructor Documentation

FarDetDeadChipHandle::FarDetDeadChipHandle (  ) 

Definition at line 8 of file FarDetDeadChipHandle.cxx.

Referenced by DupHandle().

00009 {
00010 
00011 }

FarDetDeadChipHandle::FarDetDeadChipHandle ( const FarDetDeadChipHandle rhs  ) 

Definition at line 13 of file FarDetDeadChipHandle.cxx.

00013                                                                           :
00014   CandHandle(cdh)
00015 {
00016 
00017 }
FarDetDeadChipHandle::FarDetDeadChipHandle(FarDetDeadChip* cd) :

FarDetDeadChipHandle::FarDetDeadChipHandle ( FarDetDeadChip candidate  ) 

Definition at line 18 of file FarDetDeadChipHandle.cxx.

00018                                                              :
00019   CandHandle(cd)
00020 {
00021 
00022 }

FarDetDeadChipHandle::~FarDetDeadChipHandle (  )  [virtual]

Definition at line 24 of file FarDetDeadChipHandle.cxx.

00025 {
00026 
00027 }


Member Function Documentation

FarDetDeadChipHandle::ClassDef ( FarDetDeadChipHandle  ,
 
)
FarDetDeadChipHandle * FarDetDeadChipHandle::DupHandle (  )  const [virtual]

Reimplemented from CandHandle.

Definition at line 29 of file FarDetDeadChipHandle.cxx.

References FarDetDeadChipHandle().

00030 {
00031   return new FarDetDeadChipHandle(*this);
00032 }

Int_t FarDetDeadChipHandle::GetCrate (  )  const

Definition at line 35 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00036 {
00037   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fCrate;
00038 }

Int_t FarDetDeadChipHandle::GetNanosec (  )  const

Definition at line 82 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00083 {
00084   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fNanosec;
00085 }

Int_t FarDetDeadChipHandle::GetPlane ( Int_t  i  )  const

Definition at line 65 of file FarDetDeadChipHandle.cxx.

References GetPlane(), and GetVaChip().

00066 {
00067   Int_t plane=-999;
00068   Int_t baseplane=this->GetPlane();
00069   Int_t vachip=this->GetVaChip();
00070   if( vachip>=0 && baseplane>=0 ){
00071     if( i==0 && (vachip==0||vachip==2) ) plane=baseplane;
00072     if( i==1 && (vachip==1||vachip==2) ) plane=baseplane+2;
00073   }
00074   return plane;
00075 }

Int_t FarDetDeadChipHandle::GetPlane (  )  const

Definition at line 60 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

Referenced by GetPlane().

00061 {
00062   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fBasePlane;
00063 }

Int_t FarDetDeadChipHandle::GetShld (  )  const

Definition at line 77 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00078 {
00079   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fBaseShld;
00080 }

Int_t FarDetDeadChipHandle::GetVaadc (  )  const

Definition at line 50 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00051 {
00052   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fVaadc;
00053 }

Int_t FarDetDeadChipHandle::GetVaChip (  )  const

Definition at line 55 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

Referenced by GetPlane().

00056 {
00057   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fVaChip;
00058 }

VaChip::VaChipStatus_t FarDetDeadChipHandle::GetVaChipStatus (  )  const

Definition at line 87 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00088 {
00089   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fStatus;
00090 }

Int_t FarDetDeadChipHandle::GetVarc (  )  const

Definition at line 40 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00041 {
00042   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fVarc;
00043 }

Int_t FarDetDeadChipHandle::GetVmm (  )  const

Definition at line 45 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetCandBase().

00046 {
00047   return dynamic_cast<const FarDetDeadChip*>(GetCandBase())->fVmm;
00048 }

void FarDetDeadChipHandle::SetNanosec ( Int_t  nanosec  ) 

Definition at line 101 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetOwnedCandBase().

00102 {
00103   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fNanosec=nanosec;
00104 }

void FarDetDeadChipHandle::SetVaChip ( VaChip chip  ) 

Definition at line 111 of file FarDetDeadChipHandle.cxx.

References VaChip::GetCrate(), VaChip::GetNanosec(), CandHandle::GetOwnedCandBase(), VaChip::GetPlane(), VaChip::GetShld(), VaChip::GetVaadc(), VaChip::GetVaChip(), VaChip::GetVaChipStatus(), VaChip::GetVarc(), and VaChip::GetVmm().

Referenced by AlgFarDetDeadChip::RunAlg().

00112 {
00113   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fCrate=chip->GetCrate();
00114   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVarc=chip->GetVarc();
00115   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVmm=chip->GetVmm();
00116   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVaadc=chip->GetVaadc();
00117   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVaChip=chip->GetVaChip();
00118   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fNanosec=chip->GetNanosec();
00119   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fBasePlane=chip->GetPlane();
00120   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fBaseShld=chip->GetShld();
00121   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fStatus=chip->GetVaChipStatus();
00122 }

void FarDetDeadChipHandle::SetVaChipId ( Int_t  crate,
Int_t  varc,
Int_t  vmm,
Int_t  vaadc,
Int_t  vachip 
)

Definition at line 92 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetOwnedCandBase().

00093 {
00094   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fCrate=crate;
00095   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVarc=varc;
00096   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVmm=vmm;
00097   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVaadc=vaadc;
00098   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fVaChip=vachip;
00099 }

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

Definition at line 106 of file FarDetDeadChipHandle.cxx.

References CandHandle::GetOwnedCandBase().

00107 {
00108   dynamic_cast<FarDetDeadChip*>(GetOwnedCandBase())->fStatus=status;
00109 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1