73 #include "St_DataSetIter.h"
74 #include "TObjectSet.h"
75 #include "StDAQMaker/StSVTReader.h"
76 #include "StSvtDaqData.hh"
77 #include "StSvtDaqPed.hh"
78 #include "StSvtHybridDaqData.hh"
79 #include "StSvtDaqMaker.h"
80 #include "StMessMgr.h"
81 #include "StSvtClassLibrary/StSvtConfig.hh"
107 StSvtDaqMaker::~StSvtDaqMaker()
109 delete fData; fData = 0;
114 Int_t StSvtDaqMaker::Init()
116 if (Debug()) gMessMgr->Debug() <<
"StSvtDaqMaker::Init" << endm;
130 return StMaker::Init();
146 Int_t StSvtDaqMaker::SetSvtData()
152 dataSet = GetDataSet(
"StSvtConfig");
166 Int_t StSvtDaqMaker::SetSvtPed()
169 dataSet = (
TObjectSet*)GetDataSet(
"StSvtPedestal");
176 dataSet2 = GetDataSet(
"StSvtConfig");
196 Int_t StSvtDaqMaker::SetSvtRMSPed()
199 dataSet = (
TObjectSet*)GetDataSet(
"StSvtRMSPedestal");
202 fRMSPedSet =
new TObjectSet(
"StSvtRMSPedestal");
203 AddConst(fRMSPedSet);
206 dataSet2 = GetDataSet(
"StSvtConfig");
213 fRMSPedSet->
SetObject((TObject*)fSvtRMSPed);
226 Int_t StSvtDaqMaker::SetHybridData()
228 fHybridSet =
new TObjectSet(
"StHybridRawData");
238 if (Debug()) gMessMgr->Debug() <<
"StSvtDaqMaker::Make" << endm;
246 Int_t StSvtDaqMaker::GetDaqReader()
249 dataSet = GetDataSet(
"StDAQReader");
257 Int_t StSvtDaqMaker::GetSvtData()
261 gMessMgr->Warning() <<
"SVT -No SVT Present but trying to read it" << endm;
267 if( !fSvtSet) SetSvtData();
269 fSvtData->setData(svtReader, fDataType);
271 fSvtData->setRunNumber(
daqReader->getRunNumber());
272 fSvtData->setEventNumber(
daqReader->getEventNumber());
273 fSvtData->setTrigWord(
daqReader->getTrigWord());
274 fSvtData->setUnixTime(
daqReader->getUnixTime());
280 Int_t StSvtDaqMaker::GetSvtPed()
284 gMessMgr->Warning() <<
"SVT -No SVT Present but trying to read it" << endm;
285 if( fSvtPed) Reset();
291 if (!fSvtPed) SetSvtPed();
293 fSvtPed->setPed(svtReader);
295 fSvtPed->setRunNumber(
daqReader->getRunNumber());
301 Int_t StSvtDaqMaker::GetSvtRMSPed()
305 gMessMgr->Warning() <<
"SVT -No SVT Present but trying to read it" << endm;
306 if( fSvtRMSPed) Reset();
312 if (!fSvtRMSPed) SetSvtRMSPed();
314 fSvtRMSPed->setPed(svtReader,
"RMS");
316 fSvtRMSPed->setRunNumber(
daqReader->getRunNumber());
322 Int_t StSvtDaqMaker::GetHybridData(
int barrel,
int ladder,
int wafer,
int hybrid)
324 if (Debug()) gMessMgr->Debug() <<
"StSvtDaqMaker::Make" << endm;
336 if (fSvtData->getHybridIndex(barrel,ladder,wafer,hybrid) < 0)
339 status = fData->setHybridData(svtReader, fDataType);
345 Int_t StSvtDaqMaker::GetUnixTime()
354 void StSvtDaqMaker::PrintEventInfo()
361 void StSvtDaqMaker::Clear(
const char*)
363 if (Debug()) gMessMgr->Debug() <<
"StSvtDaqMaker::Clear" << endm;
374 Int_t StSvtDaqMaker::Reset()
376 if (Debug()) gMessMgr->Debug()<<
"StSvtDaqMaker::Reset" << endm;
383 if (Debug()) gMessMgr->Debug()<<
"StSvtDaqMaker::Finish" << endm;
389 void StSvtDaqMaker::PrintInfo()
392 "**************************************************************" << endm;
394 "* $Id: StSvtDaqMaker.cxx,v 1.21 2016/04/21 01:36:24 perev Exp $" << endm;
396 "**************************************************************" << endm;
397 if (Debug()) StMaker::PrintInfo();
401 void StSvtDaqMaker::UpdateReader()
virtual void AddData(TDataSet *data, const char *dir=".data")
User methods.
virtual void Clear(Option_t *option="")
User defined functions.
virtual void SetObject(TObject *obj)
The depricated method (left here for the sake of the backward compatibility)
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)