CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_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(candidates, "OMTF");
69 }
T getParameter(std::string const &) const
tuple cfg
Definition: looper.py:293
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
std::auto_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
Definition: Run.h:43
L1TMuonOverlapTrackProducer(const edm::ParameterSet &)