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  int bx = 0;
65  str<<" Number of candidates: "<<candidates->size(bx);
66  edm::LogInfo("OMTFOMTFProducer")<<str.str();
67 
68  iEvent.put(std::move(candidates), "OMTF");
69 }
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:127
virtual void produce(edm::Event &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
void beginRun(edm::Run const &run, edm::EventSetup const &iSetup)
int iEvent
Definition: GenABIO.cc:230
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
virtual void beginRun(edm::Run const &run, edm::EventSetup const &iSetup)
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
def move(src, dest)
Definition: eostools.py:510
Definition: Run.h:43
L1TMuonOverlapTrackProducer(const edm::ParameterSet &)