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

FarDetDeadChip.cxx

Go to the documentation of this file.
00001 
00002 #include "MessageService/MsgService.h"  
00003 #include "JobControl/JobCModuleRegistry.h"
00004 #include "Algorithm/AlgHandle.h"
00005 #include "FarDetDeadChip.h"
00006 #include "FarDetDeadChipHandle.h"
00007 
00008 ClassImp(FarDetDeadChip)
00009 
00010 FarDetDeadChip::FarDetDeadChip() :
00011   fCrate(-1), fVarc(-1), fVmm(-1), fVaadc(-1), fVaChip(-1), 
00012   fBasePlane(-999), fBaseShld(-999),
00013   fNanosec(0), fStatus(VaChip::kGood)
00014 {
00015 
00016 }
00017 
00018 FarDetDeadChip::FarDetDeadChip(AlgHandle& ah) : 
00019   CandBase(ah),
00020   fCrate(-1), fVarc(-1), fVmm(-1), fVaadc(-1), fVaChip(-1), 
00021   fBasePlane(-999), fBaseShld(-999),
00022   fNanosec(0), fStatus(VaChip::kGood)
00023 {
00024 
00025 }
00026 
00027 FarDetDeadChip::FarDetDeadChip(AlgHandle& ah, CandHandle& ch, CandContext& cx) :
00028   CandBase(ah),
00029   fCrate(-1), fVarc(-1), fVmm(-1), fVaadc(-1), fVaChip(-1), 
00030   fBasePlane(-999), fBaseShld(-999),
00031   fNanosec(0), fStatus(VaChip::kGood)
00032 {
00033   SetLocalHandle(new FarDetDeadChipHandle(this));
00034   { FarDetDeadChipHandle cth(this); ch = cth; }
00035   ah.RunAlg(ch, cx);
00036 }
00037 
00038 FarDetDeadChip::FarDetDeadChip(const FarDetDeadChip& rhs) : 
00039   CandBase(rhs),
00040   fCrate(rhs.fCrate), fVarc(rhs.fVarc), fVmm(rhs.fVmm), fVaadc(rhs.fVaadc), fVaChip(rhs.fVaChip),
00041   fBasePlane(rhs.fBasePlane), fBaseShld(fBaseShld),
00042   fNanosec(rhs.fNanosec), fStatus(rhs.fStatus)
00043 {
00044 
00045 }
00046 
00047 FarDetDeadChip::~FarDetDeadChip()
00048 {
00049 
00050 }
00051 
00052 FarDetDeadChip* FarDetDeadChip::Dup() const
00053 {
00054   FarDetDeadChip *cb = new FarDetDeadChip(*this);
00055   cb->CreateLocalHandle();
00056   TIter iterdau = GetDaughterIterator();
00057   CandHandle *dau;
00058   while ((dau=(CandHandle *) iterdau())) cb->AddDaughterLink(*dau);
00059   return cb;
00060 }
00061 
00062 void FarDetDeadChip::CreateLocalHandle()
00063 {
00064   this->SetLocalHandle(new FarDetDeadChipHandle(this));
00065 }
00066 
00067 FarDetDeadChipHandle FarDetDeadChip::MakeCandidate(AlgHandle& ah, CandContext& cx)
00068 {
00069   FarDetDeadChipHandle cdh;
00070   new FarDetDeadChip(ah,cdh,cx);
00071   return cdh;
00072 }
00073 
00074 
00075 

Generated on Mon Feb 15 11:06:40 2010 for loon by  doxygen 1.3.9.1