88 EBdigiToken_ = consumes<EBDigiCollection>(EBdigiCollection_);
89 EEdigiToken_ = consumes<EEDigiCollection>(EEdigiCollection_);
91 if (getEcalESDigis_) {
92 ESdigiToken_ = consumes<ESDigiCollection>(ESdigiCollection_);
95 HBHEdigiToken_ = consumes<HBHEDigiCollection>(HBHEdigiCollection_);
96 HOdigiToken_ = consumes<HODigiCollection>(HOdigiCollection_);
97 HFdigiToken_ = consumes<HFDigiCollection>(HFdigiCollection_);
100 PXLdigiToken_ = consumes<edm::DetSetVector<PixelDigi> >(PXLdigiCollection_);
102 if (getStripDigis_) {
103 SSTdigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(SSTdigiCollection_);
106 CSCStripdigiToken_ = consumes<CSCStripDigiCollection>(CSCStripdigiCollection_);
107 CSCWiredigiToken_ = consumes<CSCWireDigiCollection>(CSCWiredigiCollection_);
110 DTdigiToken_ = consumes<DTDigiCollection>(DTdigiCollection_);
113 RPCdigiToken_ = consumes<RPCDigiCollection>(RPCdigiCollection_);
115 if (getGctEmDigis_) {
116 GctIsoEmToken_ = consumes<L1GctEmCandCollection>(GctIsoEmLabel_);
117 GctNonIsoEmToken_ = consumes<L1GctEmCandCollection>(GctNonIsoEmLabel_);
119 if (getGctJetDigis_) {
120 GctCenJetToken_ = consumes<L1GctJetCandCollection>(GctCenJetLabel_);
121 GctForJetToken_ = consumes<L1GctJetCandCollection>(GctForJetLabel_);
122 GctTauJetToken_ = consumes<L1GctJetCandCollection>(GctTauJetLabel_);
124 if (getGctJetCounts_) {
125 GctJetCountsToken_ = consumes<L1GctJetCounts>(GctJetCountsLabel_);
127 if (getGctEtDigis_) {
128 GctEtHadToken_ = consumes<L1GctEtHad>(GctEtHadLabel_);
129 GctEtMissToken_ = consumes<L1GctEtMiss>(GctEtMissLabel_);
130 GctEtTotalToken_ = consumes<L1GctEtTotal>(GctEtTotalLabel_);
133 GctCaloEmToken_ = consumes<L1CaloEmCollection>(GctCaloEmLabel_);
134 GctCaloRegionToken_ = consumes<L1CaloRegionCollection>(GctCaloRegionLabel_);
137 GtEvmRRToken_ = consumes<L1GlobalTriggerEvmReadoutRecord>(GtEvmRRLabel_);
139 if (getGtObjectMap_) {
140 GtObjectMapToken_ = consumes<L1GlobalTriggerObjectMapRecord>(GtObjectMapLabel_);
143 GtRRToken_ = consumes<L1GlobalTriggerReadoutRecord>(GtRRLabel_);
146 GmtCandsToken_ = consumes<std::vector<L1MuGMTCand> >(GmtCandsLabel_);
149 GmtReadoutToken_ = consumes<L1MuGMTReadoutCollection>(GmtReadoutCollection_);
205 descriptions.
add(
"hltGetDigi",desc);
227 if (getGctEtDigis_) {
229 iEvent.
getByToken(GctEtMissToken_,GctEtMiss) ;
230 iEvent.
getByToken(GctEtTotalToken_,GctEtTotal) ;
233 etTotal = GctEtTotal.
product() ;
235 LogDebug(
"DigiInfo") <<
"Value of L1GctEtHad::et(): " << etHad->
et() ;
236 LogDebug(
"DigiInfo") <<
"Value of L1GctEtMiss::et(): " << etMiss->
et() <<
", phi(): " << etMiss->
phi() ;
237 LogDebug(
"DigiInfo") <<
"Value of L1GctEtTotal::et(): " << etTotal->
et() ;
245 if (getGctEmDigis_) {
247 isoEMdigis = GctIsoEM.
product() ;
248 iEvent.
getByToken(GctNonIsoEmToken_,GctNonIsoEM) ;
249 nonIsoEMdigis = GctNonIsoEM.
product() ;
250 LogDebug(
"DigiInfo") <<
"total # Gct Iso EM digis: " << isoEMdigis->size() ;
251 LogDebug(
"DigiInfo") <<
"total # Gct non-Iso EM digis: " << nonIsoEMdigis->size() ;
262 std::unique_ptr<L1GctJetCounts> newCounts(
new L1GctJetCounts() ) ;
265 if (getGctJetDigis_) {
266 iEvent.
getByToken(GctCenJetToken_,GctCenJets) ;
267 cenJetDigis = GctCenJets.
product() ;
268 iEvent.
getByToken(GctForJetToken_,GctForJets) ;
269 forJetDigis = GctForJets.
product() ;
270 iEvent.
getByToken(GctTauJetToken_,GctTauJets) ;
271 tauJetDigis = GctTauJets.
product() ;
272 LogDebug(
"DigiInfo") <<
"total # Gct central Jet digis: " << cenJetDigis->size() ;
273 LogDebug(
"DigiInfo") <<
"total # Gct forward Jet digis: " << forJetDigis->size() ;
274 LogDebug(
"DigiInfo") <<
"total # Gct tau Jet digis: " << tauJetDigis->size() ;
277 if (getGctJetCounts_) {
278 iEvent.
getByToken(GctJetCountsToken_,GctJetCounts) ;
279 *counts = *GctJetCounts.
product() ;
289 iEvent.
getByToken(GctCaloEmToken_,GctCaloEm) ;
290 iEvent.
getByToken(GctCaloRegionToken_,GctCaloRegion) ;
293 caloRegion = GctCaloRegion.
product() ;
295 LogDebug(
"DigiInfo") <<
"Calo EM size: " << caloEm->size() ;
296 LogDebug(
"DigiInfo") <<
"Calo region size: " << caloRegion->size() ;
318 if (getGtObjectMap_) {
329 std::unique_ptr<std::vector<L1MuGMTCand> >
cands(
new std::vector<L1MuGMTCand> ) ;
337 iEvent.
getByToken(GmtReadoutToken_,GmtMuCollection) ;
338 *muCollection = *GmtMuCollection.
product() ;
339 std::vector<L1MuGMTExtendedCand>
muons = muCollection->getRecord().getGMTCands() ;
340 LogDebug(
"DigiInfo") <<
"GMT muons present: " << muons.size() ;
346 if (getPixelDigis_) {
354 if (getStripDigis_) {
367 iEvent.
getByToken( EBdigiToken_, EcalDigiEB );
368 EBdigis = EcalDigiEB.
product();
369 LogDebug(
"DigiInfo") <<
"total # EBdigis: " << EBdigis->
size() ;
371 iEvent.
getByToken( EEdigiToken_, EcalDigiEE );
372 EEdigis = EcalDigiEE.
product();
373 LogDebug(
"DigiInfo") <<
"total # EEdigis: " << EEdigis->
size() ;
376 if (getEcalESDigis_) {
377 iEvent.
getByToken( ESdigiToken_, EcalDigiES );
378 ESdigis = EcalDigiES.
product();
379 LogDebug(
"DigiInfo") <<
"total # ESdigis: " << ESdigis->
size() ;
390 iEvent.
getByToken( HBHEdigiToken_, HcalDigiHBHE );
391 HBHEdigis = HcalDigiHBHE.
product();
392 LogDebug(
"DigiInfo") <<
"total # HBHEdigis: " << HBHEdigis->
size() ;
394 iEvent.
getByToken( HOdigiToken_, HcalDigiHO );
395 HOdigis = HcalDigiHO.
product();
396 LogDebug(
"DigiInfo") <<
"total # HOdigis: " << HOdigis->
size() ;
398 iEvent.
getByToken( HFdigiToken_, HcalDigiHF );
399 HFdigis = HcalDigiHF.
product();
400 LogDebug(
"DigiInfo") <<
"total # HFdigis: " << HFdigis->
size() ;
407 iEvent.
getByToken( CSCStripdigiToken_, CSCDigiStrip );
408 iEvent.
getByToken( CSCWiredigiToken_, CSCDigiWire );
411 for (
auto && iter : *CSCDigiStrip) {
412 for (
auto digiIter = iter.second.first;
413 digiIter != iter.second.second; digiIter++) numDigis++ ;
415 LogDebug(
"DigiInfo") <<
"total # CSCstripdigis: " << numDigis ;
417 for (
auto && iter : *CSCDigiWire) {
418 for (
auto digiIter = iter.second.first;
419 digiIter != iter.second.second; digiIter++) numDigis++ ;
421 LogDebug(
"DigiInfo") <<
"total # CSCwiredigis: " << numDigis ;
427 iEvent.
getByToken( DTdigiToken_, DTDigiHandle );
430 for (
auto && iter : *DTDigiHandle) {
431 for (
auto digiIter = iter.second.first;
432 digiIter != iter.second.second; digiIter++) numDigis++ ;
434 LogDebug(
"DigiInfo") <<
"total # DTdigis: " << numDigis ;
440 iEvent.
getByToken( RPCdigiToken_, RPCDigiHandle );
443 for (
auto && iter : *RPCDigiHandle) {
444 for (
auto digiIter = iter.second.first;
445 digiIter != iter.second.second; digiIter++) numDigis++ ;
447 LogDebug(
"DigiInfo") <<
"total # RPCdigis: " << numDigis ;
450 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
#define DEFINE_FWK_MODULE(type)
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