89 EBdigiToken_ = consumes<EBDigiCollection>(EBdigiCollection_);
90 EEdigiToken_ = consumes<EEDigiCollection>(EEdigiCollection_);
92 if (getEcalESDigis_) {
93 ESdigiToken_ = consumes<ESDigiCollection>(ESdigiCollection_);
96 HBHEdigiToken_ = consumes<HBHEDigiCollection>(HBHEdigiCollection_);
97 HOdigiToken_ = consumes<HODigiCollection>(HOdigiCollection_);
98 HFdigiToken_ = consumes<HFDigiCollection>(HFdigiCollection_);
100 if (getPixelDigis_) {
101 PXLdigiToken_ = consumes<edm::DetSetVector<PixelDigi> >(PXLdigiCollection_);
103 if (getStripDigis_) {
104 SSTdigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(SSTdigiCollection_);
107 CSCStripdigiToken_ = consumes<CSCStripDigiCollection>(CSCStripdigiCollection_);
108 CSCWiredigiToken_ = consumes<CSCWireDigiCollection>(CSCWiredigiCollection_);
111 DTdigiToken_ = consumes<DTDigiCollection>(DTdigiCollection_);
114 RPCdigiToken_ = consumes<RPCDigiCollection>(RPCdigiCollection_);
116 if (getGctEmDigis_) {
117 GctIsoEmToken_ = consumes<L1GctEmCandCollection>(GctIsoEmLabel_);
118 GctNonIsoEmToken_ = consumes<L1GctEmCandCollection>(GctNonIsoEmLabel_);
120 if (getGctJetDigis_) {
121 GctCenJetToken_ = consumes<L1GctJetCandCollection>(GctCenJetLabel_);
122 GctForJetToken_ = consumes<L1GctJetCandCollection>(GctForJetLabel_);
123 GctTauJetToken_ = consumes<L1GctJetCandCollection>(GctTauJetLabel_);
125 if (getGctJetCounts_) {
126 GctJetCountsToken_ = consumes<L1GctJetCounts>(GctJetCountsLabel_);
128 if (getGctEtDigis_) {
129 GctEtHadToken_ = consumes<L1GctEtHad>(GctEtHadLabel_);
130 GctEtMissToken_ = consumes<L1GctEtMiss>(GctEtMissLabel_);
131 GctEtTotalToken_ = consumes<L1GctEtTotal>(GctEtTotalLabel_);
134 GctCaloEmToken_ = consumes<L1CaloEmCollection>(GctCaloEmLabel_);
135 GctCaloRegionToken_ = consumes<L1CaloRegionCollection>(GctCaloRegionLabel_);
138 GtEvmRRToken_ = consumes<L1GlobalTriggerEvmReadoutRecord>(GtEvmRRLabel_);
140 if (getGtObjectMap_) {
141 GtObjectMapToken_ = consumes<L1GlobalTriggerObjectMapRecord>(GtObjectMapLabel_);
144 GtRRToken_ = consumes<L1GlobalTriggerReadoutRecord>(GtRRLabel_);
147 GmtCandsToken_ = consumes<std::vector<L1MuGMTCand> >(GmtCandsLabel_);
150 GmtReadoutToken_ = consumes<L1MuGMTReadoutCollection>(GmtReadoutCollection_);
206 descriptions.
add(
"hltGetDigi",desc);
228 if (getGctEtDigis_) {
230 iEvent.
getByToken(GctEtMissToken_,GctEtMiss) ;
231 iEvent.
getByToken(GctEtTotalToken_,GctEtTotal) ;
234 etTotal = GctEtTotal.
product() ;
236 LogDebug(
"DigiInfo") <<
"Value of L1GctEtHad::et(): " << etHad->
et() ;
237 LogDebug(
"DigiInfo") <<
"Value of L1GctEtMiss::et(): " << etMiss->
et() <<
", phi(): " << etMiss->
phi() ;
238 LogDebug(
"DigiInfo") <<
"Value of L1GctEtTotal::et(): " << etTotal->
et() ;
246 if (getGctEmDigis_) {
248 isoEMdigis = GctIsoEM.
product() ;
249 iEvent.
getByToken(GctNonIsoEmToken_,GctNonIsoEM) ;
250 nonIsoEMdigis = GctNonIsoEM.
product() ;
251 LogDebug(
"DigiInfo") <<
"total # Gct Iso EM digis: " << isoEMdigis->size() ;
252 LogDebug(
"DigiInfo") <<
"total # Gct non-Iso EM digis: " << nonIsoEMdigis->size() ;
263 std::unique_ptr<L1GctJetCounts> newCounts(
new L1GctJetCounts() ) ;
266 if (getGctJetDigis_) {
267 iEvent.
getByToken(GctCenJetToken_,GctCenJets) ;
268 cenJetDigis = GctCenJets.
product() ;
269 iEvent.
getByToken(GctForJetToken_,GctForJets) ;
270 forJetDigis = GctForJets.
product() ;
271 iEvent.
getByToken(GctTauJetToken_,GctTauJets) ;
272 tauJetDigis = GctTauJets.
product() ;
273 LogDebug(
"DigiInfo") <<
"total # Gct central Jet digis: " << cenJetDigis->size() ;
274 LogDebug(
"DigiInfo") <<
"total # Gct forward Jet digis: " << forJetDigis->size() ;
275 LogDebug(
"DigiInfo") <<
"total # Gct tau Jet digis: " << tauJetDigis->size() ;
278 if (getGctJetCounts_) {
279 iEvent.
getByToken(GctJetCountsToken_,GctJetCounts) ;
280 *counts = *GctJetCounts.
product() ;
290 iEvent.
getByToken(GctCaloEmToken_,GctCaloEm) ;
291 iEvent.
getByToken(GctCaloRegionToken_,GctCaloRegion) ;
294 caloRegion = GctCaloRegion.
product() ;
296 LogDebug(
"DigiInfo") <<
"Calo EM size: " << caloEm->size() ;
297 LogDebug(
"DigiInfo") <<
"Calo region size: " << caloRegion->size() ;
319 if (getGtObjectMap_) {
330 std::unique_ptr<std::vector<L1MuGMTCand> > cands(
new std::vector<L1MuGMTCand> ) ;
338 iEvent.
getByToken(GmtReadoutToken_,GmtMuCollection) ;
339 *muCollection = *GmtMuCollection.
product() ;
340 std::vector<L1MuGMTExtendedCand>
muons = muCollection->getRecord().getGMTCands() ;
341 LogDebug(
"DigiInfo") <<
"GMT muons present: " << muons.size() ;
347 if (getPixelDigis_) {
355 if (getStripDigis_) {
368 iEvent.
getByToken( EBdigiToken_, EcalDigiEB );
369 EBdigis = EcalDigiEB.
product();
370 LogDebug(
"DigiInfo") <<
"total # EBdigis: " << EBdigis->
size() ;
372 iEvent.
getByToken( EEdigiToken_, EcalDigiEE );
373 EEdigis = EcalDigiEE.
product();
374 LogDebug(
"DigiInfo") <<
"total # EEdigis: " << EEdigis->
size() ;
377 if (getEcalESDigis_) {
378 iEvent.
getByToken( ESdigiToken_, EcalDigiES );
379 ESdigis = EcalDigiES.
product();
380 LogDebug(
"DigiInfo") <<
"total # ESdigis: " << ESdigis->
size() ;
391 iEvent.
getByToken( HBHEdigiToken_, HcalDigiHBHE );
392 HBHEdigis = HcalDigiHBHE.
product();
393 LogDebug(
"DigiInfo") <<
"total # HBHEdigis: " << HBHEdigis->
size() ;
395 iEvent.
getByToken( HOdigiToken_, HcalDigiHO );
396 HOdigis = HcalDigiHO.
product();
397 LogDebug(
"DigiInfo") <<
"total # HOdigis: " << HOdigis->
size() ;
399 iEvent.
getByToken( HFdigiToken_, HcalDigiHF );
400 HFdigis = HcalDigiHF.
product();
401 LogDebug(
"DigiInfo") <<
"total # HFdigis: " << HFdigis->
size() ;
408 iEvent.
getByToken( CSCStripdigiToken_, CSCDigiStrip );
409 iEvent.
getByToken( CSCWiredigiToken_, CSCDigiWire );
412 for (
auto && iter : *CSCDigiStrip) {
413 for (
auto digiIter = iter.second.first;
414 digiIter != iter.second.second; digiIter++) numDigis++ ;
416 LogDebug(
"DigiInfo") <<
"total # CSCstripdigis: " << numDigis ;
418 for (
auto && iter : *CSCDigiWire) {
419 for (
auto digiIter = iter.second.first;
420 digiIter != iter.second.second; digiIter++) numDigis++ ;
422 LogDebug(
"DigiInfo") <<
"total # CSCwiredigis: " << numDigis ;
428 iEvent.
getByToken( DTdigiToken_, DTDigiHandle );
431 for (
auto && iter : *DTDigiHandle) {
432 for (
auto digiIter = iter.second.first;
433 digiIter != iter.second.second; digiIter++) numDigis++ ;
435 LogDebug(
"DigiInfo") <<
"total # DTdigis: " << numDigis ;
441 iEvent.
getByToken( RPCdigiToken_, RPCDigiHandle );
444 for (
auto && iter : *RPCDigiHandle) {
445 for (
auto digiIter = iter.second.first;
446 digiIter != iter.second.second; digiIter++) numDigis++ ;
448 LogDebug(
"DigiInfo") <<
"total # RPCdigis: " << numDigis ;
451 LogDebug(
"DigiInfo") <<
"***--------------- End of Event -----------------***" ;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1CaloEmCand > L1CaloEmCollection
unsigned et() const
get the Et
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const int gtTotalBxInEvent() const
get / set the total Bx's in the event
Persistable copy of missing Et measured at Level-1.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned phi() const
get the Et
static std::string const input
std::vector< L1GctJetCand > L1GctJetCandCollection
unsigned et() const
get the Et
Persistable copy of total Et measured at Level-1.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Persistable copy of total Ht measured at Level-1.
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned et() const
get the magnitude
HLTGetDigi(const edm::ParameterSet &)
std::vector< L1CaloRegion > L1CaloRegionCollection
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< L1GctEmCand > L1GctEmCandCollection