00001 00002 #include "AlgDeadChip.h" 00003 00004 #include "Algorithm/AlgConfig.h" 00005 #include "Candidate/CandContext.h" 00006 #include "MessageService/MsgService.h" 00007 #include "JobControl/JobCModuleRegistry.h" 00008 00009 #include "CandDeadChipHandle.h" 00010 #include "RawChip.h" 00011 00012 #include "TObjArray.h" 00013 00014 // 00015 // $Log $ 00016 // 00017 00018 ClassImp(AlgDeadChip) 00019 00020 CVSID("$Id: AlgDeadChip.cxx,v 1.1 2006/03/19 17:24:34 blake Exp $"); 00021 00022 AlgDeadChip::AlgDeadChip() 00023 { 00024 00025 } 00026 00027 AlgDeadChip::~AlgDeadChip() 00028 { 00029 00030 } 00031 00032 void AlgDeadChip::RunAlg(AlgConfig & /*ac*/, CandHandle &ch, CandContext &cx) 00033 { 00034 MSG("AlgDeadChip", Msg::kDebug) << " AlgDeadChip::RunAlg(...) " << endl; 00035 00036 CandDeadChipHandle& cdh = dynamic_cast<CandDeadChipHandle&>(ch); 00037 00038 TObjArray* tmparray = (TObjArray*)(cx.GetDataIn()); 00039 00040 for(Int_t i=0;i<1+tmparray->GetLast();i++){ 00041 RawChip* chip = (RawChip*)(tmparray->At(i)); 00042 cdh.AddRawChip(chip); 00043 } 00044 00045 MSG("DataQuality", Msg::kVerbose) << endl 00046 << " NEW CANDDEADCHIPHANDLE " << endl 00047 << " ====================== " << endl 00048 << " Entries=" << 1+tmparray->GetLast() << "|" << cdh.GetEntries() << endl 00049 << " RawChannelId=" << cdh.GetChannelId().GetChAdd() << endl 00050 << " Adc=" << cdh.GetAdc() << endl 00051 << " Tdc=" << cdh.GetTdc() << endl 00052 << " ErrorCode=" << cdh.GetErrorCode() << endl 00053 << " TriggerRate=" << cdh.GetTriggerRate() << endl 00054 << " ChipStatus=" << cdh.GetChipStatus() << endl; 00055 00056 return; 00057 } 00058 00059 void AlgDeadChip::Trace(const char * /* c */) const 00060 { 00061 00062 } 00063 00064
1.3.9.1