24 bxBinEdges_{{1, 271, 541, 892, 1162, 1432, 1783, 2053, 2323, 2674, 2944, 3214, 3446, 3490, 3491, 3565}},
27 lhcStatusInfoCollectionTag_() {}
40 "lhcStatusInfoCollectionTag",
edm::InputTag(
"tcdsDigis",
"tcdsRecord"));
58 bool const& ByLumiResetSwitch,
64 if (ByLumiResetSwitch) {
72 MESet& meLHCStatusByLumi(static_cast<MESet&>(
MEs_.
at(
"LHCStatusByLumi")));
101 for (EcalTPGTowerStatusMap::const_iterator ttItr(towerMap.begin()); ttItr != towerMap.end(); ++ttItr) {
102 if ((*ttItr).second > 0) {
105 meTTMaskMap.fill(ttid, 1);
109 for (EcalTPGStripStatusMap::const_iterator stItr(stripMap.begin()); stItr != stripMap.end(); ++stItr) {
110 if ((*stItr).second > 0) {
113 meTTMaskMap.fill(stid, 1);
173 template <
typename DigiCollection>
175 for (
typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr) {
190 MESet& meEtSummaryByLumi(
MEs_.
at(
"EtSummaryByLumi"));
197 MESet& meTTFlags4ByLumi(
MEs_.
at(
"TTFlags4ByLumi"));
203 double nTP[] = {0., 0., 0.};
207 float et(tpItr->compressedEt());
212 else if (ttid.zside() < 0)
219 meEtReal.fill(ttid,
et);
220 meEtRealMap.fill(ttid,
et);
221 meEtSummary.fill(ttid,
et);
222 meEtSummaryByLumi.fill(ttid,
et);
224 int interest(tpItr->ttFlag() & 0x3);
228 meLowIntMap.fill(ttid);
231 meMedIntMap.fill(ttid);
234 meHighIntMap.fill(ttid);
241 int ttF(tpItr->ttFlag());
242 meTTFlags.fill(ttid, 1.0 * ttF);
243 meTTFlagsVsEt.fill(ttid,
et, 1.0 * ttF);
247 meTTFlags4.fill(ttid);
248 meTTFlags4ByLumi.fill(ttid);
251 meTTFMismatch.fill(ttid);
266 for (EcalTPGTowerStatusMap::const_iterator ttItr(TTStatusMap.begin()); ttItr != TTStatusMap.end(); ++ttItr) {
268 if (ttItr->second > 0)
269 meTTMaskMapAll.setBinContent(ttid, 1);
275 for (EcalTPGStripStatusMap::const_iterator stItr(StripStatusMap.begin()); stItr != StripStatusMap.end(); ++stItr) {
280 if (stItr->second > 0)
281 meTTMaskMapAll.setBinContent(ttid, 1);
297 int et(tpItr->compressedEt());
301 for (
int iDigi(0); iDigi < 5; iDigi++) {
302 float sampleEt((*tpItr)[iDigi].compressedEt());
304 if (sampleEt >
maxEt) {
310 meEtMaxEmul.fill(ttid,
maxEt);
312 meEmulMaxIndex.fill(ttid, iMax);
322 int realEt(realItr->compressedEt());
325 int ttF(realItr->ttFlag());
326 if ((ttF == 1 || ttF == 3) &&
330 if (tpItr->fineGrain() != realItr->fineGrain())
335 std::vector<int> matchedIndex(0);
338 for (
int iDigi(0); iDigi < 5; iDigi++) {
339 if ((*tpItr)[iDigi].compressedEt() == realEt) {
342 matchedIndex.push_back(iDigi + 1);
347 matchedIndex.clear();
348 matchedIndex.push_back(3);
353 if (matchedIndex.empty())
354 matchedIndex.push_back(0);
357 meRealvEmulEt.fill(ttid, realEt, (*tpItr)[2].compressedEt());
360 for (std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end();
362 meMatchedIndex.fill(ttid, *matchItr + 0.5);
376 meEtEmulError.fill(ttid);
378 meFGEmulError.fill(ttid);