CMS 3D CMS Logo

L1TMuonOverlapTrackProducer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <strstream>
3 #include <vector>
4 
6 
9 
12 
18 
20 
22  :theConfig(cfg), m_Reconstruction(cfg) {
23 
24  produces<l1t::RegionalMuonCandBxCollection >("OMTF");
25 
26  inputTokenDTPh = consumes<L1MuDTChambPhContainer>(theConfig.getParameter<edm::InputTag>("srcDTPh"));
27  inputTokenDTTh = consumes<L1MuDTChambThContainer>(theConfig.getParameter<edm::InputTag>("srcDTTh"));
28  inputTokenCSC = consumes<CSCCorrelatedLCTDigiCollection>(theConfig.getParameter<edm::InputTag>("srcCSC"));
29  inputTokenRPC = consumes<RPCDigiCollection>(theConfig.getParameter<edm::InputTag>("srcRPC"));
30 
31 }
35 }
39 
41 
42 }
46 
48 
49 }
53 
54  m_Reconstruction.beginRun(run, iSetup);
55 }
59 
60  std::ostringstream str;
61 
62  std::unique_ptr<l1t::RegionalMuonCandBxCollection > candidates = m_Reconstruction.reconstruct(iEvent, evSetup);
63 
64  iEvent.put(std::move(candidates), "OMTF");
65 }
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
void beginRun(edm::Run const &run, edm::EventSetup const &iSetup)
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
#define str(s)
void beginRun(edm::Run const &run, edm::EventSetup const &iSetup) override
def move(src, dest)
Definition: eostools.py:511
Definition: Run.h:45
L1TMuonOverlapTrackProducer(const edm::ParameterSet &)