74 #include "StRTSBaseMaker.h"
76 #include "StRtsTable.h"
78 const char *StRTSBaseMaker::fRTSRootDataset=
"RTS/";
90 :
StMaker((makerName && makerName[0] ? makerName : detectorName))
91 ,fDaq_Dta(0), fDetectorName(detectorName)
93 LOG_DEBUG <<
"StRTSBaseMaker::ctor" << endm;
132 if (elementPath && elementPath[0]) {
133 TString path = fRTSRootDataset;
135 fDaq_Dta =
dynamic_cast<StRtsTable *
>(GetDataSet((
const char*)path));
157 if (bank && bank[0]) {
158 TString query = DetectorName();
159 query +=
"/"; query += bank;
162 LOG_ERROR <<
"No bank name was provided to query DAQ data from "
163 << DetectorName() <<
" detector" << endm;
197 assert(sec > 0 &&
"Only positive value is allowed");
198 return GetNext(Form(
"raw[%i]",sec));
228 assert(sec > 0 &&
"Only positive value is allowed");
229 return GetNext(Form(
"adc[%i]",sec));
260 assert(sec > 0 &&
"Only positive value is allowed");
261 return GetNext(Form(
"legacy[%i]",sec));
265 Int_t StRTSBaseMaker::Sector ()
const
267 return fDaq_Dta ? fDaq_Dta->Sector() : -1;
270 Int_t StRTSBaseMaker::Pad ()
const
272 return fDaq_Dta ? fDaq_Dta->Pad() : -1;
276 Int_t StRTSBaseMaker::Rdo ()
const
278 return fDaq_Dta ? fDaq_Dta->Rdo() : -1;
282 Int_t StRTSBaseMaker::Row ()
const
284 return fDaq_Dta ? fDaq_Dta->Row() : -1;
290 return StRtsTable::Token();
295 return StRtsTable::Trgcmd();
301 return StRtsTable::Daqcmd();
307 return StRtsTable::Trgword();
313 return StRtsTable::Phyword();
319 return StRtsTable::Daqbits();
325 return StRtsTable::Daqbits_l1();
331 return StRtsTable::Daqbits_l2();
338 return StRtsTable::Evpgroups();
344 return StRtsTable::Detectors();
static UInt_t Evpgroups()
evp groups aka L3 summary[2]
StRtsTable * GetNextDaqElement(const char *elementPath)
Query the STAR production chain for the DAQ data.
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
static UInt_t Trgcmd()
current trigger command
static UInt_t Phyword()
the Physics Word
static UInt_t Daqbits_l2()
triggers satisfying l2
StRTSBaseMaker(const char *detectorName, const char *makerName="")
StRTSBaseMaker( const char *detectorName,TVirtualPad *pad) ctor.
static UInt_t Daqcmd()
current DAQ command
virtual StRtsTable * GetNextRaw()
This is an overloaded member function, provided for convenience.
static UInt_t Daqbits_l1()
triggers satisfying l1
static UInt_t Trgword()
the Trigger Word
StRtsTable * GetNext(const char *bank)
This is an overloaded member function, provided for convenience.
virtual StRtsTable * GetNextAdc()
This is an overloaded member function, provided for convenience.
UInt_t Detectors() const
detectors present bit mask according to DAQ!
static UInt_t Token()
current token
virtual StRtsTable * GetNextLegacy()
This is an overloaded member function, provided for convenience.
virtual ~StRTSBaseMaker()
StRTSBaseMaker class dtor.
static UInt_t Daqbits()
"offline" bits aka L3 summary...