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_);
202 descriptions.
add(
"hltGetDigi", desc);
222 if (getGctEtDigis_) {
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_) {
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_) {
273 iEvent.
getByToken(GctJetCountsToken_, GctJetCounts);
274 *counts = *GctJetCounts.
product();
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();
313 if (getGtObjectMap_) {
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_) {
363 EBdigis = EcalDigiEB.
product();
364 LogDebug(
"DigiInfo") <<
"total # EBdigis: " << EBdigis->
size();
367 EEdigis = EcalDigiEE.
product();
368 LogDebug(
"DigiInfo") <<
"total # EEdigis: " << EEdigis->
size();
371 if (getEcalESDigis_) {
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();
390 HOdigis = HcalDigiHO.
product();
391 LogDebug(
"DigiInfo") <<
"total # HOdigis: " << HOdigis->
size();
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 -----------------***";
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
#define DEFINE_FWK_MODULE(type)
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