File indexing completed on 2024-04-06 12:10:49
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 }
0019 }