Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:15:09

0001 #include "FWCore/Framework/interface/ConsumesCollector.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 #include "FWCore/Utilities/interface/InputTag.h"
0004 
0005 #include "CaloTokens.h"
0006 
0007 namespace l1t {
0008   namespace stage1 {
0009     CaloTokens::CaloTokens(const edm::ParameterSet& cfg, edm::ConsumesCollector& cc) {
0010       auto tag = cfg.getParameter<edm::InputTag>("InputLabel");
0011       auto tautag = cfg.getParameter<edm::InputTag>("TauInputLabel");
0012       auto isotautag = cfg.getParameter<edm::InputTag>("IsoTauInputLabel");
0013       auto tagHFBitCounts = cfg.getParameter<edm::InputTag>("HFBitCountsInputLabel");
0014       auto tagHFRingSums = cfg.getParameter<edm::InputTag>("HFRingSumsInputLabel");
0015       auto tagRegion = cfg.getParameter<edm::InputTag>("RegionInputLabel");
0016       auto tagEmCand = cfg.getParameter<edm::InputTag>("EmCandInputLabel");
0017 
0018       towerToken_ = cc.consumes<CaloTowerBxCollection>(tag);
0019       egammaToken_ = cc.consumes<EGammaBxCollection>(tag);
0020       etSumToken_ = cc.consumes<EtSumBxCollection>(tag);
0021       jetToken_ = cc.consumes<JetBxCollection>(tag);
0022       tauToken_ = cc.consumes<TauBxCollection>(tautag);
0023       isotauToken_ = cc.consumes<TauBxCollection>(isotautag);
0024       calospareHFBitCountsToken_ = cc.consumes<CaloSpareBxCollection>(tagHFBitCounts);
0025       calospareHFRingSumsToken_ = cc.consumes<CaloSpareBxCollection>(tagHFRingSums);
0026       caloregionToken_ = cc.consumes<L1CaloRegionCollection>(tagRegion);
0027       caloemCandToken_ = cc.consumes<L1CaloEmCollection>(tagEmCand);
0028     }
0029   }  // namespace stage1
0030 }  // namespace l1t