46 produces<reco::MuonTimeExtraMap>(
"combined");
47 produces<reco::MuonTimeExtraMap>(
"dt");
48 produces<reco::MuonTimeExtraMap>(
"csc");
93 unsigned int nMuons = muons->size();
95 std::vector<reco::MuonTimeExtra> dtTimeColl(nMuons);
96 std::vector<reco::MuonTimeExtra> cscTimeColl(nMuons);
97 std::vector<reco::MuonTimeExtra> combinedTimeColl(nMuons);
99 for (
unsigned int i=0;
i<nMuons; ++
i ) {
109 dtTimeColl[
i] = dtTime;
110 cscTimeColl[
i] = cscTime;
111 combinedTimeColl[
i] = combinedTime;
115 filler.
insert(muons, combinedTimeColl.begin(), combinedTimeColl.end());
117 fillerDT.
insert(muons, dtTimeColl.begin(), dtTimeColl.end());
119 fillerCSC.
insert(muons, cscTimeColl.begin(), cscTimeColl.end());
122 iEvent.
put(muonTimeMap,
"combined");
123 iEvent.
put(muonTimeMapDT,
"dt");
124 iEvent.
put(muonTimeMapCSC,
"csc");
T getParameter(std::string const &) const
MuonTimingProducer(const edm::ParameterSet &)
void insert(const H &h, I begin, I end)
MuonTimingFiller * theTimingFiller_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag m_muonCollection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void fillTiming(const reco::Muon &muon, reco::MuonTimeExtra &dtTime, reco::MuonTimeExtra &cscTime, reco::MuonTimeExtra &combinedTime, edm::Event &iEvent, const edm::EventSetup &iSetup)