16#include <fairlogger/Logger.h>
27 return (mSTUEMCal ==
other.mSTUEMCal) && (mSTUDCAL ==
other.mSTUDCAL) && (mTRUArr ==
other.mTRUArr);
33 return std::bitset<32>(mSTUEMCal.
getRegion()).test(itru);
35 return std::bitset<32>(mSTUDCAL.
getRegion()).test(itru - 32);
41 stream <<
"EMCAL trigger DCS config:" << std::endl;
42 stream <<
"================================" << std::endl;
45 stream <<
"TRU" <<
i <<
": " << tru;
49 stream <<
"EMCAL STU: " << emcalstu;
50 stream <<
"DCAL STU: " << dcalstu;
56 std::stringstream jsonstring;
58 jsonstring <<
"\"mSTUEMCal\":" << mSTUEMCal.
toJSON() <<
",";
59 jsonstring <<
"\"mSTUDCAL\":" << mSTUDCAL.
toJSON() <<
",";
60 jsonstring <<
"mTRUArr:[";
61 for (
int ien = 0; ien < mTRUArr.size(); ien++) {
62 jsonstring <<
"{\"TRU" << ien <<
"\":" << mTRUArr.at(ien).toJSON() <<
"}";
63 if (ien != mTRUArr.size() - 1) {
68 return jsonstring.str();
CCDB container for the DCS data in EMCAL.
bool isTRUEnabled(int iTRU) const
Check whether TRU is enabled.
std::array< TriggerTRUDCS, 46 > getTRUArr() const
TriggerSTUDCS getSTUDCSEMCal() const
TriggerSTUDCS getSTUDCSDCal() const
bool operator==(const TriggerDCS &other) const
Comparison of two DCS data.
TriggerTRUDCS getTRUDCS(Int_t iTRU) const
std::string toJSON() const
Serialize object to JSON format.
CCDB container for STU DCS data in EMCAL.
std::string toJSON() const
Serialize object to JSON format.
CCDB container for TRU DCS data in EMCAL.
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
VectorOfTObjectPtrs other