38 if (ByLumiResetSwitch) {
50 if (gtFED.size() >
sizeof(
uint64_t)) {
51 const uint32_t* halfHeader =
reinterpret_cast<const uint32_t*
>(gtFED.data());
52 l1A_ = *(halfHeader + 1) & 0xffffff;
55 for (
int iFED(601); iFED <= 654; iFED++) {
57 unsigned length(fedData.size() /
sizeof(
uint64_t));
59 const uint64_t* pData(reinterpret_cast<uint64_t const*>(fedData.data()));
60 if ((pData[length - 1] & 0x4) != 0)
81 MESet& meFEStatusErrMapByLumi(
MEs_.
at(
"FEStatusErrMapByLumi"));
95 MESet& meEventTypePreCalib(
MEs_.
at(
"EventTypePreCalib"));
97 MESet& meEventTypePostCalib(
MEs_.
at(
"EventTypePostCalib"));
101 map<int, int> l1aCounts;
103 l1aCounts[dcchItr->getLV1()]++;
106 for (map<int, int>::iterator l1aItr(l1aCounts.begin()); l1aItr != l1aCounts.end(); ++l1aItr) {
107 if (l1aItr->second > maxVote) {
108 maxVote = l1aItr->second;
109 l1A_ = l1aItr->first;
115 int dccId(dcchItr->id());
117 int dccL1A(dcchItr->getLV1());
118 short dccL1AShort(dccL1A & 0xfff);
119 int dccBX(dcchItr->getBX());
128 if (dcchItr->getOrbit() !=
orbit_)
137 const vector<short>& feStatus(dcchItr->getFEStatus());
138 const vector<short>& feBxs(dcchItr->getFEBxs());
139 const vector<short>& feL1s(dcchItr->getFELv1());
142 double statusError(0.);
144 for (
unsigned iFE(0); iFE < feStatus.size(); iFE++) {
148 short status(feStatus[iFE]);
150 if (feBxs[iFE] != -1 && dccBX != -1) {
153 if (feBxs[iFE] == -1)
157 if (feBxs[iFE] != dccBX && feBxs[iFE] != -1 && dccBX != -1) {
164 if (feL1s[iFE] +
feL1Offset_ != dccL1AShort && feL1s[iFE] != -1 && dccL1AShort != 0) {
177 else if (iFE + 1 == 70)
212 if (statusError > 0.)
215 const vector<short>& tccBx(dcchItr->getTCCBx());
216 const vector<short>& tccL1(dcchItr->getTCCLv1());
218 if (tccBx.size() == 4) {
219 if (dccId <= kEEmHigh + 1 || dccId >=
kEEpLow + 1) {
220 for (
int iTCC(0); iTCC < 4; iTCC++) {
221 if (tccBx[iTCC] != dccBX && tccBx[iTCC] != -1 && dccBX != -1) {
226 if (tccL1[iTCC] != dccL1AShort && tccL1[iTCC] != -1 && dccL1AShort != 0) {
232 if (tccBx[0] != dccBX && tccBx[0] != -1 && dccBX != -1) {
237 if (tccL1[0] != dccL1AShort && tccL1[0] != -1 && dccL1AShort != 0) {
244 short srpBx(dcchItr->getSRPBx());
245 short srpL1(dcchItr->getSRPLv1());
247 if (srpBx != dccBX && srpBx != -1 && dccBX != -1) {
250 if (dccId <= kEEmHigh + 1 || dccId >=
kEEpLow + 1) {
257 if (srpL1 != dccL1AShort && srpL1 != -1 && dccL1AShort != 0) {
260 if (dccId <= kEEmHigh + 1 || dccId >=
kEEpLow + 1) {
267 const int calibBX(3490);
269 short runType(dcchItr->getRunType() + 1);
270 if (runType < 0 || runType > 22)
274 else if (dccBX == calibBX)
static const char runNumber_[]
#define DEFINE_ECALDQM_WORKER(TYPE)
edm::LuminosityBlockNumber_t iLumi
void runOnRawData(EcalRawDataCollection const &)
MESet & at(const std::string &key)
std::vector< T >::const_iterator const_iterator
static const unsigned int numBX
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
bool ccuExists(unsigned, unsigned)
void addDependencies(DependencySet &) override
edm::RunNumber_t runNumber_
void beginRun(edm::Run const &, edm::EventSetup const &) override
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
void runOnSource(FEDRawDataCollection const &)
const_iterator begin() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
const_iterator end() const
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
unsigned long long uint64_t
int bunchCrossing() const
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
void push_back(Dependency const &_d)
edm::EventAuxiliary::ExperimentType experimentType() const