File indexing completed on 2023-03-17 11:00:04
0001 #include "FWCore/Framework/interface/ConsumesCollector.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 #include "FWCore/Utilities/interface/InputTag.h"
0004
0005 #include "GMTTokens.h"
0006
0007 namespace l1t {
0008 namespace stage2 {
0009 GMTTokens::GMTTokens(const edm::ParameterSet& cfg, edm::ConsumesCollector& cc) {
0010 auto bmtfTag = cfg.getParameter<edm::InputTag>("BMTFInputLabel");
0011 auto omtfTag = cfg.getParameter<edm::InputTag>("OMTFInputLabel");
0012 auto emtfTag = cfg.getParameter<edm::InputTag>("EMTFInputLabel");
0013 auto tag = cfg.getParameter<edm::InputTag>("InputLabel");
0014 auto imdBmtfTag = cfg.getParameter<edm::InputTag>("ImdInputLabelBMTF");
0015 auto imdEmtfNegTag = cfg.getParameter<edm::InputTag>("ImdInputLabelEMTFNeg");
0016 auto imdEmtfPosTag = cfg.getParameter<edm::InputTag>("ImdInputLabelEMTFPos");
0017 auto imdOmtfNegTag = cfg.getParameter<edm::InputTag>("ImdInputLabelOMTFNeg");
0018 auto imdOmtfPosTag = cfg.getParameter<edm::InputTag>("ImdInputLabelOMTFPos");
0019
0020 regionalMuonCandTokenBMTF_ = cc.consumes<RegionalMuonCandBxCollection>(bmtfTag);
0021 regionalMuonCandTokenOMTF_ = cc.consumes<RegionalMuonCandBxCollection>(omtfTag);
0022 regionalMuonCandTokenEMTF_ = cc.consumes<RegionalMuonCandBxCollection>(emtfTag);
0023 muonToken_ = cc.consumes<MuonBxCollection>(tag);
0024 imdMuonTokenBMTF_ = cc.consumes<MuonBxCollection>(imdBmtfTag);
0025 imdMuonTokenEMTFNeg_ = cc.consumes<MuonBxCollection>(imdEmtfNegTag);
0026 imdMuonTokenEMTFPos_ = cc.consumes<MuonBxCollection>(imdEmtfPosTag);
0027 imdMuonTokenOMTFNeg_ = cc.consumes<MuonBxCollection>(imdOmtfNegTag);
0028 imdMuonTokenOMTFPos_ = cc.consumes<MuonBxCollection>(imdOmtfPosTag);
0029
0030 auto emtfShowerTag = cfg.getParameter<edm::InputTag>("EMTFShowerInputLabel");
0031 auto showerTag = cfg.getParameter<edm::InputTag>("ShowerInputLabel");
0032
0033 regionalMuonShowerTokenEMTF_ = cc.consumes<RegionalMuonShowerBxCollection>(emtfShowerTag);
0034 muonShowerToken_ = cc.consumes<MuonShowerBxCollection>(showerTag);
0035 }
0036 }
0037 }