29 swissCrossMaxThreshold_(3.),
31 trigTypeToME_{0, 1, 2, 3, 4},
32 L1GlobalTriggerReadoutRecordTag_(),
33 L1MuGMTReadoutCollectionTag_(),
34 L1GlobalTriggerReadoutRecordToken_(),
35 L1MuGMTReadoutCollectionToken_() {}
65 MESetMulti& occupancy(static_cast<MESetMulti&>(
MEs_.
at(
"SCSeedOccupancyTrig")));
67 repl[
"trig"] = triggerTypeNames[iT];
104 bool hcal_top =
false;
105 bool hcal_bot =
false;
107 std::vector<int> valid_phi;
108 if ((psb.
aData(4) & 0x3f) >= 1) {
109 valid_phi.push_back((psb.
aData(4) >> 10) & 0x1f);
111 if ((psb.
bData(4) & 0x3f) >= 1) {
112 valid_phi.push_back((psb.
bData(4) >> 10) & 0x1f);
114 if ((psb.
aData(5) & 0x3f) >= 1) {
115 valid_phi.push_back((psb.
aData(5) >> 10) & 0x1f);
117 if ((psb.
bData(5) & 0x3f) >= 1) {
118 valid_phi.push_back((psb.
bData(5) >> 10) & 0x1f);
120 std::vector<int>::const_iterator
iphi;
121 for (
iphi = valid_phi.begin();
iphi != valid_phi.end();
iphi++) {
127 if (hcal_top && hcal_bot)
134 std::vector<L1MuGMTReadoutRecord>
const& records(l1MuHndl->
getRecords());
136 for (
unsigned iR(0); iR != records.size(); ++iR) {
137 if (records[iR].getBxInEvent() != 0)
143 std::vector<L1MuRegionalCand> dtBXCands(records[iR].getDTBXCands());
144 for (iC = 0; iC != dtBXCands.size(); ++iC)
145 if (!dtBXCands[iC].
empty())
147 if (iC != dtBXCands.size())
151 std::vector<L1MuRegionalCand> brlRPCCands(records[iR].getBrlRPCCands());
152 for (iC = 0; iC != brlRPCCands.size(); ++iC)
153 if (!brlRPCCands[iC].
empty())
155 if (iC != brlRPCCands.size())
159 std::vector<L1MuRegionalCand> cscCands(records[iR].getCSCCands());
160 for (iC = 0; iC != cscCands.size(); ++iC)
161 if (!cscCands[iC].
empty())
163 if (iC != cscCands.size())
171 MESet& meExclusiveTriggers(
MEs_.
at(
"ExclusiveTriggers"));
176 meTriggers.
fill(iT + 0.5);
178 meExclusiveTriggers.fill(iT + 0.5);
190 for (
unsigned iFED(0); iFED !=
nDCC; iFED++) {
202 switch (_collection) {
219 MESet& meBCEtMapProjEta(
MEs_.
at(
"BCEtMapProjEta"));
220 MESet& meBCEtMapProjPhi(
MEs_.
at(
"BCEtMapProjPhi"));
222 MESet& meBCOccupancyProjEta(
MEs_.
at(
"BCOccupancyProjEta"));
223 MESet& meBCOccupancyProjPhi(
MEs_.
at(
"BCOccupancyProjPhi"));
227 MESet& meBCSizeMapProjEta(
MEs_.
at(
"BCSizeMapProjEta"));
228 MESet& meBCSizeMapProjPhi(
MEs_.
at(
"BCSizeMapProjPhi"));
238 if (bcItr->caloID().detectors() != 0) {
253 id = subgeom->getClosestCell(
gp);
259 float energy(bcItr->energy());
262 float et(
energy / std::cosh(posEta));
269 meBCEMap.fill(
id,
energy);
270 meBCEMapProjEta.fill(posEta,
energy);
271 meBCEMapProjPhi.fill(subdet, posPhi,
energy);
272 meBCEtMapProjEta.fill(posEta,
et);
273 meBCEtMapProjPhi.fill(subdet, posPhi,
et);
275 meBCOccupancy.fill(
id);
276 meBCOccupancyProjEta.fill(posEta);
277 meBCOccupancyProjPhi.fill(subdet, posPhi);
279 float size(bcItr->size());
281 meBCSize.fill(
id,
size);
284 meBCSizeMap.fill(
id,
size);
285 meBCSizeMapProjEta.fill(posEta,
size);
286 meBCSizeMapProjPhi.fill(subdet, posPhi,
size);
375 MESet& meSCClusterVsSeed(
MEs_.
at(
"SCClusterVsSeed"));
376 MESet& meSCSeedOccupancy(
MEs_.
at(
"SCSeedOccupancy"));
377 MESet& meSingleCrystalCluster(
MEs_.
at(
"SingleCrystalCluster"));
399 for (reco::SuperClusterCollection::const_iterator scItr(_scs.begin()); scItr != _scs.end(); ++scItr) {
400 DetId seedId(scItr->seed()->seed());
409 seedId = subgeom->getClosestCell(
gp);
412 if (seedId.null() || (seedId.subdetId() != subdet))
416 if (seedItr ==
hits->end())
421 float energy(scItr->energy());
422 float rawEnergy(scItr->rawEnergy());
423 float size(scItr->size());
425 meSCE.fill(seedId,
energy);
426 meSCELow.fill(seedId,
energy);
428 meSCRawE.fill(seedId, rawEnergy);
429 meSCRawELow.fill(seedId, rawEnergy);
431 meSCNBCs.fill(seedId, scItr->clustersSize());
432 meSCNcrystals.fill(seedId,
size);
439 meSCSeedEnergy.fill(seedId, seedItr->energy());
440 meSCClusterVsSeed.fill(seedId, seedItr->energy(),
energy);
442 meSCSeedOccupancy.fill(seedId);
444 meSCSeedOccupancyHighE->fill(seedId);
446 if (scItr->size() == 1)
447 meSingleCrystalCluster.fill(seedId);
449 float e3x3(EcalClusterTools::e3x3(*scItr->seed(),
hits,
getTopology()));
452 meSCR9.fill(seedId, e3x3 /
energy);
453 meSCR9Raw.fill(seedId, e3x3 / rawEnergy);
454 meSCR9Full.fill(seedId, e3x3Full /
energy);
455 meSCR9FullRaw.fill(seedId, e3x3Full / rawEnergy);
462 static_cast<MESetMulti*>(meSCSeedOccupancyTrig)->use(
trigTypeToME_[iT]);
463 meSCSeedOccupancyTrig->fill(seedId);
467 static_cast<MESetMulti*>(meSCSeedTimeTrigEx)->use(
trigTypeToME_[iT]);
468 static_cast<MESetMulti*>(meSCSeedTimeMapTrigEx)->use(
trigTypeToME_[iT]);
469 meSCSeedTimeTrigEx->fill(subdet, seedItr->time());
470 meSCSeedTimeMapTrigEx->fill(seedId, seedItr->time());
474 meSCOccupancyProjEta->fill(subdet, scItr->eta());
475 meSCOccupancyProjPhi->fill(subdet,
phi(scItr->phi()));
485 meSCSwissCross->fill(1. -
e4 /
e1);