45 produces<reco::MuonTimeExtraMap>(
"combined");
46 produces<reco::MuonTimeExtraMap>(
"dt");
47 produces<reco::MuonTimeExtraMap>(
"csc");
81 unsigned int nMuons = muons->size();
83 std::vector<reco::MuonTimeExtra> dtTimeColl(nMuons);
84 std::vector<reco::MuonTimeExtra> cscTimeColl(nMuons);
85 std::vector<reco::MuonTimeExtra> combinedTimeColl(nMuons);
87 for (
unsigned int i=0;
i<nMuons; ++
i ) {
97 dtTimeColl[
i] = dtTime;
98 cscTimeColl[
i] = cscTime;
99 combinedTimeColl[
i] = combinedTime;
103 filler.
insert(muons, combinedTimeColl.begin(), combinedTimeColl.end());
105 fillerDT.
insert(muons, dtTimeColl.begin(), dtTimeColl.end());
107 fillerCSC.
insert(muons, cscTimeColl.begin(), cscTimeColl.end());
110 iEvent.
put(muonTimeMap,
"combined");
111 iEvent.
put(muonTimeMapDT,
"dt");
112 iEvent.
put(muonTimeMapCSC,
"csc");
T getParameter(std::string const &) const
MuonTimingProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void insert(const H &h, I begin, I end)
MuonTimingFiller * theTimingFiller_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::InputTag m_muonCollection
edm::EDGetTokenT< reco::MuonCollection > muonToken_
void fillTiming(const reco::Muon &muon, reco::MuonTimeExtra &dtTime, reco::MuonTimeExtra &cscTime, reco::MuonTimeExtra &combinedTime, edm::Event &iEvent, const edm::EventSetup &iSetup)