Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:02

0001 #include "FWCore/Framework/interface/ConsumesCollector.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 #include "FWCore/Utilities/interface/InputTag.h"
0004 
0005 #include "CaloLayer1Tokens.h"
0006 
0007 namespace l1t {
0008   namespace stage2 {
0009     CaloLayer1Tokens::CaloLayer1Tokens(const edm::ParameterSet& cfg, edm::ConsumesCollector& cc) {
0010       auto ecalTag = cfg.getParameter<edm::InputTag>("ecalDigis");
0011       auto hcalTag = cfg.getParameter<edm::InputTag>("hcalDigis");
0012       auto regionTag = cfg.getParameter<edm::InputTag>("caloRegions");
0013 
0014       ecalDigiToken_ = cc.consumes<EcalTrigPrimDigiCollection>(ecalTag);
0015       hcalDigiToken_ = cc.consumes<HcalTrigPrimDigiCollection>(hcalTag);
0016       caloRegionToken_ = cc.consumes<L1CaloRegionCollection>(regionTag);
0017     }
0018   }  // namespace stage2
0019 }  // namespace l1t