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_);
207 descriptions.
add(
"hltGetDigi",desc);
229 if (getGctEtDigis_) {
231 iEvent.
getByToken(GctEtMissToken_,GctEtMiss) ;
232 iEvent.
getByToken(GctEtTotalToken_,GctEtTotal) ;
233 etHad = GctEtHad.product() ;
234 etMiss = GctEtMiss.product() ;
235 etTotal = GctEtTotal.product() ;
237 LogDebug(
"DigiInfo") <<
"Value of L1GctEtHad::et(): " << etHad->et() ;
238 LogDebug(
"DigiInfo") <<
"Value of L1GctEtMiss::et(): " << etMiss->et() <<
", phi(): " << etMiss->phi() ;
239 LogDebug(
"DigiInfo") <<
"Value of L1GctEtTotal::et(): " << etTotal->et() ;
247 if (getGctEmDigis_) {
249 isoEMdigis = GctIsoEM.product() ;
250 iEvent.
getByToken(GctNonIsoEmToken_,GctNonIsoEM) ;
251 nonIsoEMdigis = GctNonIsoEM.product() ;
252 LogDebug(
"DigiInfo") <<
"total # Gct Iso EM digis: " << isoEMdigis->size() ;
253 LogDebug(
"DigiInfo") <<
"total # Gct non-Iso EM digis: " << nonIsoEMdigis->size() ;
267 if (getGctJetDigis_) {
268 iEvent.
getByToken(GctCenJetToken_,GctCenJets) ;
269 cenJetDigis = GctCenJets.product() ;
270 iEvent.
getByToken(GctForJetToken_,GctForJets) ;
271 forJetDigis = GctForJets.product() ;
272 iEvent.
getByToken(GctTauJetToken_,GctTauJets) ;
273 tauJetDigis = GctTauJets.product() ;
274 LogDebug(
"DigiInfo") <<
"total # Gct central Jet digis: " << cenJetDigis->size() ;
275 LogDebug(
"DigiInfo") <<
"total # Gct forward Jet digis: " << forJetDigis->size() ;
276 LogDebug(
"DigiInfo") <<
"total # Gct tau Jet digis: " << tauJetDigis->size() ;
279 if (getGctJetCounts_) {
280 iEvent.
getByToken(GctJetCountsToken_,GctJetCounts) ;
281 *counts = *GctJetCounts.product() ;
291 iEvent.
getByToken(GctCaloEmToken_,GctCaloEm) ;
292 iEvent.
getByToken(GctCaloRegionToken_,GctCaloRegion) ;
294 caloEm = GctCaloEm.product() ;
295 caloRegion = GctCaloRegion.product() ;
297 LogDebug(
"DigiInfo") <<
"Calo EM size: " << caloEm->size() ;
298 LogDebug(
"DigiInfo") <<
"Calo region size: " << caloRegion->size() ;
307 int nBx = l1GtPar->gtTotalBxInEvent() ;
318 *evm = *gtEvmRR.product() ;
320 if (getGtObjectMap_) {
322 *map = *gtMap.product() ;
326 *
rr = *gtRR.product() ;
331 std::auto_ptr<std::vector<L1MuGMTCand> > cands(
new std::vector<L1MuGMTCand> ) ;
336 *cands = *GmtCands.product() ;
339 iEvent.
getByToken(GmtReadoutToken_,GmtMuCollection) ;
340 *muCollection = *GmtMuCollection.product() ;
341 std::vector<L1MuGMTExtendedCand>
muons = muCollection->getRecord().getGMTCands() ;
342 LogDebug(
"DigiInfo") <<
"GMT muons present: " << muons.size() ;
348 if (getPixelDigis_) {
356 if (getStripDigis_) {
369 iEvent.
getByToken( EBdigiToken_, EcalDigiEB );
370 EBdigis = EcalDigiEB.product();
371 LogDebug(
"DigiInfo") <<
"total # EBdigis: " << EBdigis->size() ;
373 iEvent.
getByToken( EEdigiToken_, EcalDigiEE );
374 EEdigis = EcalDigiEE.product();
375 LogDebug(
"DigiInfo") <<
"total # EEdigis: " << EEdigis->size() ;
378 if (getEcalESDigis_) {
379 iEvent.
getByToken( ESdigiToken_, EcalDigiES );
380 ESdigis = EcalDigiES.product();
381 LogDebug(
"DigiInfo") <<
"total # ESdigis: " << ESdigis->size() ;
392 iEvent.
getByToken( HBHEdigiToken_, HcalDigiHBHE );
393 HBHEdigis = HcalDigiHBHE.product();
394 LogDebug(
"DigiInfo") <<
"total # HBHEdigis: " << HBHEdigis->size() ;
396 iEvent.
getByToken( HOdigiToken_, HcalDigiHO );
397 HOdigis = HcalDigiHO.product();
398 LogDebug(
"DigiInfo") <<
"total # HOdigis: " << HOdigis->size() ;
400 iEvent.
getByToken( HFdigiToken_, HcalDigiHF );
401 HFdigis = HcalDigiHF.product();
402 LogDebug(
"DigiInfo") <<
"total # HFdigis: " << HFdigis->size() ;
409 iEvent.
getByToken( CSCStripdigiToken_, CSCDigiStrip );
410 iEvent.
getByToken( CSCWiredigiToken_, CSCDigiWire );
414 iter!=CSCDigiStrip->end(); iter++) {
415 for ( vector<CSCStripDigi>::const_iterator digiIter = (*iter).second.first;
416 digiIter != (*iter).second.second; digiIter++) numDigis++ ;
418 LogDebug(
"DigiInfo") <<
"total # CSCstripdigis: " << numDigis ;
421 iter!=CSCDigiWire->end(); iter++) {
422 for ( vector<CSCWireDigi>::const_iterator digiIter = (*iter).second.first;
423 digiIter != (*iter).second.second; digiIter++) numDigis++ ;
425 LogDebug(
"DigiInfo") <<
"total # CSCwiredigis: " << numDigis ;
431 iEvent.
getByToken( DTdigiToken_, DTDigiHandle );
435 iter!=DTDigiHandle->end(); iter++) {
436 for ( vector<DTDigi>::const_iterator digiIter = (*iter).second.first;
437 digiIter != (*iter).second.second; digiIter++) numDigis++ ;
439 LogDebug(
"DigiInfo") <<
"total # DTdigis: " << numDigis ;
445 iEvent.
getByToken( RPCdigiToken_, RPCDigiHandle );
449 iter!=RPCDigiHandle->end(); iter++) {
450 for ( vector<RPCDigi>::const_iterator digiIter = (*iter).second.first;
451 digiIter != (*iter).second.second; digiIter++) numDigis++ ;
453 LogDebug(
"DigiInfo") <<
"total # RPCdigis: " << numDigis ;
456 LogDebug(
"DigiInfo") <<
"***--------------- End of Event -----------------***" ;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1CaloEmCand > L1CaloEmCollection
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Persistable copy of missing Et measured at Level-1.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static std::string const input
std::vector< L1GctJetCand > L1GctJetCandCollection
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.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void analyze(const edm::Event &, const edm::EventSetup &)
HLTGetDigi(const edm::ParameterSet &)
std::vector< L1CaloRegion > L1CaloRegionCollection
std::vector< L1GctEmCand > L1GctEmCandCollection