52 bool statusTIBTID(
true), statusTOB(
true), statusTECF(
true), statusTECB(
true);
53 bool dcsTIBTID(
true), dcsTOB(
true), dcsTECF(
true), dcsTECB(
true);
59 if ((*dcsStatus).empty()) {
60 if (
e.eventAuxiliary().isRealData()) {
76 statusTIBTID = dcsTIBTID;
91 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Detectors in DAQ (TIBTID, TOB, TEC+ TEC-)" <<
TIBTIDinDAQ <<
" " 93 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Detectors in ON (TIBTID, TOB, TEC+ TEC-)" << dcsTIBTID <<
" " 94 << dcsTOB <<
" " << dcsTECF <<
" " << dcsTECB << std::endl;
96 LogDebug(
"SiStripDCSStatus") <<
" SiStripDCSStatus :: Final Flags (TIBTID, TOB, TEC+ TEC-)" << statusTIBTID <<
" " 97 << statusTOB <<
" " << statusTECF <<
" " << statusTECB << std::endl;
98 if (statusTIBTID && statusTOB && statusTECF && statusTECB)
102 LogDebug(
"SiStripDCSStatus") <<
" Return Value " << retVal;
113 auto connectedFEDs = fedCabling_.fedIds();
119 if (!rawDataHandle.
isValid()) {
126 for (std::vector<unsigned short>::const_iterator ifed = connectedFEDs.begin(); ifed != connectedFEDs.end(); ifed++) {
127 auto fedChannels = fedCabling_.fedConnections(*ifed);
131 for (std::vector<FedChannelConnection>::const_iterator iconn = fedChannels.begin(); iconn < fedChannels.end();
133 if (!iconn->isConnected())
135 uint32_t
detId = iconn->detId();
144 if (tTopo.tecSide(
detId) == 2)
146 else if (tTopo.tecSide(
detId) == 1)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
static constexpr auto TEC
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
size_t size() const
Lenght of the data buffer in bytes.
Class to contain DCS information from soft FED 1022.
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
bool getStatus(edm::Event const &e, edm::EventSetup const &eSetup)
edm::EDGetTokenT< DCSRecord > dcsRecordToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
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...
edm::EDGetTokenT< DcsStatusCollection > dcsStatusToken_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
static constexpr auto TID