51 if ((*dcsStatus).empty())
54 bool statusTIBTID =
true;
55 bool statusTOB =
true;
56 bool statusTECF =
true;
57 bool statusTECB =
true;
64 statusTIBTID = dcsTIBTID;
79 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Detectors in DAQ (TIBTID, TOB, TEC+ TEC-)" <<
TIBTIDinDAQ <<
" " 81 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Detectors in ON (TIBTID, TOB, TEC+ TEC-)" << dcsTIBTID <<
" " 82 << dcsTOB <<
" " << dcsTECF <<
" " << dcsTECB << std::endl;
84 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Final Flags (TIBTID, TOB, TEC+ TEC-)" << statusTIBTID <<
" " 85 << statusTOB <<
" " << statusTECF <<
" " << statusTECB << std::endl;
86 if (statusTIBTID && statusTOB && statusTECF && statusTECB)
90 LogDebug(
"SiStripDCSStatus") <<
" Return Value " << retVal;
101 auto connectedFEDs = fedCabling_.fedIds();
107 if (!rawDataHandle.
isValid()) {
114 for (std::vector<unsigned short>::const_iterator ifed = connectedFEDs.begin(); ifed != connectedFEDs.end(); ifed++) {
115 auto fedChannels = fedCabling_.fedConnections(*ifed);
119 for (std::vector<FedChannelConnection>::const_iterator iconn = fedChannels.begin(); iconn < fedChannels.end();
121 if (!iconn->isConnected())
123 uint32_t detId = iconn->detId();
132 if (tTopo.tecSide(detId) == 2)
134 else if (tTopo.tecSide(detId) == 1)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
static constexpr auto TEC
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
size_t size() const
Lenght of the data buffer in bytes.
bool getData(T &iHolder) const
bool getStatus(edm::Event const &e, edm::EventSetup const &eSetup)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
static constexpr auto TOB
std::vector< DcsStatus > DcsStatusCollection
static constexpr auto TIB
void initialise(edm::Event const &e, edm::EventSetup const &eSetup)
SiStripDCSStatus(edm::ConsumesCollector &&iC)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
edm::EDGetTokenT< DcsStatusCollection > dcsStatusToken_
static constexpr auto TID