87 EBdigiToken_ = consumes<EBDigiCollection>(EBdigiCollection_);
88 EEdigiToken_ = consumes<EEDigiCollection>(EEdigiCollection_);
90 if (getEcalESDigis_) {
91 ESdigiToken_ = consumes<ESDigiCollection>(ESdigiCollection_);
94 HBHEdigiToken_ = consumes<HBHEDigiCollection>(HBHEdigiCollection_);
95 HOdigiToken_ = consumes<HODigiCollection>(HOdigiCollection_);
96 HFdigiToken_ = consumes<HFDigiCollection>(HFdigiCollection_);
99 PXLdigiToken_ = consumes<edm::DetSetVector<PixelDigi> >(PXLdigiCollection_);
101 if (getStripDigis_) {
102 SSTdigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(SSTdigiCollection_);
105 CSCStripdigiToken_ = consumes<CSCStripDigiCollection>(CSCStripdigiCollection_);
106 CSCWiredigiToken_ = consumes<CSCWireDigiCollection>(CSCWiredigiCollection_);
109 DTdigiToken_ = consumes<DTDigiCollection>(DTdigiCollection_);
112 RPCdigiToken_ = consumes<RPCDigiCollection>(RPCdigiCollection_);
114 if (getGctEmDigis_) {
115 GctIsoEmToken_ = consumes<L1GctEmCandCollection>(GctIsoEmLabel_);
116 GctNonIsoEmToken_ = consumes<L1GctEmCandCollection>(GctNonIsoEmLabel_);
118 if (getGctJetDigis_) {
119 GctCenJetToken_ = consumes<L1GctJetCandCollection>(GctCenJetLabel_);
120 GctForJetToken_ = consumes<L1GctJetCandCollection>(GctForJetLabel_);
121 GctTauJetToken_ = consumes<L1GctJetCandCollection>(GctTauJetLabel_);
123 if (getGctJetCounts_) {
124 GctJetCountsToken_ = consumes<L1GctJetCounts>(GctJetCountsLabel_);
126 if (getGctEtDigis_) {
127 GctEtHadToken_ = consumes<L1GctEtHad>(GctEtHadLabel_);
128 GctEtMissToken_ = consumes<L1GctEtMiss>(GctEtMissLabel_);
129 GctEtTotalToken_ = consumes<L1GctEtTotal>(GctEtTotalLabel_);
132 GctCaloEmToken_ = consumes<L1CaloEmCollection>(GctCaloEmLabel_);
133 GctCaloRegionToken_ = consumes<L1CaloRegionCollection>(GctCaloRegionLabel_);
136 GtEvmRRToken_ = consumes<L1GlobalTriggerEvmReadoutRecord>(GtEvmRRLabel_);
138 if (getGtObjectMap_) {
139 GtObjectMapToken_ = consumes<L1GlobalTriggerObjectMapRecord>(GtObjectMapLabel_);
142 GtRRToken_ = consumes<L1GlobalTriggerReadoutRecord>(GtRRLabel_);
145 GmtCandsToken_ = consumes<std::vector<L1MuGMTCand> >(GmtCandsLabel_);
148 GmtReadoutToken_ = consumes<L1MuGMTReadoutCollection>(GmtReadoutCollection_);
184 desc.addUntracked<
bool>(
"getGctEt",
true);
185 desc.addUntracked<
bool>(
"getGtReadoutRecord",
true);
186 desc.addUntracked<
bool>(
"getGtEvmRR",
true);
187 desc.addUntracked<
bool>(
"getGctEm",
true);
188 desc.addUntracked<
bool>(
"getPixels",
true);
189 desc.addUntracked<
bool>(
"getGctJet",
true);
190 desc.addUntracked<
bool>(
"getHcal",
true);
191 desc.addUntracked<
bool>(
"getGctJetCounts",
true);
192 desc.addUntracked<
bool>(
"getL1Calo",
false);
193 desc.addUntracked<
bool>(
"getStrips",
true);
194 desc.addUntracked<
bool>(
"getDT",
true);
195 desc.addUntracked<
bool>(
"getGtObjectMap",
true);
196 desc.addUntracked<
bool>(
"getGmtCands",
true);
197 desc.addUntracked<
bool>(
"getRPC",
true);
198 desc.addUntracked<
bool>(
"getEcal",
true);
199 desc.addUntracked<
bool>(
"getGmtReadout",
true);
200 desc.addUntracked<
bool>(
"getEcalES",
true);
201 desc.addUntracked<
bool>(
"getCSC",
true);
202 descriptions.
add(
"hltGetDigi",
desc);
222 if (getGctEtDigis_) {
223 iEvent.getByToken(GctEtHadToken_, GctEtHad);
224 iEvent.getByToken(GctEtMissToken_, GctEtMiss);
225 iEvent.getByToken(GctEtTotalToken_, GctEtTotal);
228 etTotal = GctEtTotal.
product();
230 LogDebug(
"DigiInfo") <<
"Value of L1GctEtHad::et(): " << etHad->
et();
231 LogDebug(
"DigiInfo") <<
"Value of L1GctEtMiss::et(): " << etMiss->
et() <<
", phi(): " << etMiss->
phi();
232 LogDebug(
"DigiInfo") <<
"Value of L1GctEtTotal::et(): " << etTotal->
et();
240 if (getGctEmDigis_) {
241 iEvent.getByToken(GctIsoEmToken_, GctIsoEM);
242 isoEMdigis = GctIsoEM.
product();
243 iEvent.getByToken(GctNonIsoEmToken_, GctNonIsoEM);
244 nonIsoEMdigis = GctNonIsoEM.
product();
245 LogDebug(
"DigiInfo") <<
"total # Gct Iso EM digis: " << isoEMdigis->size();
246 LogDebug(
"DigiInfo") <<
"total # Gct non-Iso EM digis: " << nonIsoEMdigis->size();
260 if (getGctJetDigis_) {
261 iEvent.getByToken(GctCenJetToken_, GctCenJets);
262 cenJetDigis = GctCenJets.
product();
263 iEvent.getByToken(GctForJetToken_, GctForJets);
264 forJetDigis = GctForJets.
product();
265 iEvent.getByToken(GctTauJetToken_, GctTauJets);
266 tauJetDigis = GctTauJets.
product();
267 LogDebug(
"DigiInfo") <<
"total # Gct central Jet digis: " << cenJetDigis->size();
268 LogDebug(
"DigiInfo") <<
"total # Gct forward Jet digis: " << forJetDigis->size();
269 LogDebug(
"DigiInfo") <<
"total # Gct tau Jet digis: " << tauJetDigis->size();
272 if (getGctJetCounts_) {
284 iEvent.getByToken(GctCaloEmToken_, GctCaloEm);
285 iEvent.getByToken(GctCaloRegionToken_, GctCaloRegion);
288 caloRegion = GctCaloRegion.
product();
290 LogDebug(
"DigiInfo") <<
"Calo EM size: " << caloEm->size();
291 LogDebug(
"DigiInfo") <<
"Calo region size: " << caloRegion->size();
310 iEvent.getByToken(GtEvmRRToken_, gtEvmRR);
313 if (getGtObjectMap_) {
314 iEvent.getByToken(GtObjectMapToken_, gtMap);
318 iEvent.getByToken(GtRRToken_, gtRR);
324 std::unique_ptr<std::vector<L1MuGMTCand> >
cands(
new std::vector<L1MuGMTCand>);
332 iEvent.getByToken(GmtReadoutToken_, GmtMuCollection);
333 *muCollection = *GmtMuCollection.
product();
334 std::vector<L1MuGMTExtendedCand>
muons = muCollection->getRecord().getGMTCands();
335 LogDebug(
"DigiInfo") <<
"GMT muons present: " <<
muons.size();
341 if (getPixelDigis_) {
349 if (getStripDigis_) {
362 iEvent.getByToken(EBdigiToken_, EcalDigiEB);
363 EBdigis = EcalDigiEB.
product();
364 LogDebug(
"DigiInfo") <<
"total # EBdigis: " << EBdigis->
size();
366 iEvent.getByToken(EEdigiToken_, EcalDigiEE);
367 EEdigis = EcalDigiEE.
product();
368 LogDebug(
"DigiInfo") <<
"total # EEdigis: " << EEdigis->
size();
371 if (getEcalESDigis_) {
372 iEvent.getByToken(ESdigiToken_, EcalDigiES);
373 ESdigis = EcalDigiES.
product();
374 LogDebug(
"DigiInfo") <<
"total # ESdigis: " << ESdigis->
size();
385 iEvent.getByToken(HBHEdigiToken_, HcalDigiHBHE);
386 HBHEdigis = HcalDigiHBHE.
product();
387 LogDebug(
"DigiInfo") <<
"total # HBHEdigis: " << HBHEdigis->
size();
389 iEvent.getByToken(HOdigiToken_, HcalDigiHO);
390 HOdigis = HcalDigiHO.
product();
391 LogDebug(
"DigiInfo") <<
"total # HOdigis: " << HOdigis->
size();
393 iEvent.getByToken(HFdigiToken_, HcalDigiHF);
394 HFdigis = HcalDigiHF.
product();
395 LogDebug(
"DigiInfo") <<
"total # HFdigis: " << HFdigis->
size();
402 iEvent.getByToken(CSCStripdigiToken_, CSCDigiStrip);
403 iEvent.getByToken(CSCWiredigiToken_, CSCDigiWire);
406 for (
auto&& iter : *CSCDigiStrip) {
407 for (
auto digiIter = iter.second.first; digiIter != iter.second.second; digiIter++)
410 LogDebug(
"DigiInfo") <<
"total # CSCstripdigis: " << numDigis;
412 for (
auto&& iter : *CSCDigiWire) {
413 for (
auto digiIter = iter.second.first; digiIter != iter.second.second; digiIter++)
416 LogDebug(
"DigiInfo") <<
"total # CSCwiredigis: " << numDigis;
422 iEvent.getByToken(DTdigiToken_, DTDigiHandle);
425 for (
auto&& iter : *DTDigiHandle) {
426 for (
auto digiIter = iter.second.first; digiIter != iter.second.second; digiIter++)
429 LogDebug(
"DigiInfo") <<
"total # DTdigis: " << numDigis;
435 iEvent.getByToken(RPCdigiToken_, RPCDigiHandle);
438 for (
auto&& iter : *RPCDigiHandle) {
439 for (
auto digiIter = iter.second.first; digiIter != iter.second.second; digiIter++)
442 LogDebug(
"DigiInfo") <<
"total # RPCdigis: " << numDigis;
445 LogDebug(
"DigiInfo") <<
"***--------------- End of Event -----------------***";