45 produces<reco::MuonTimeExtraMap>(
"combined");
46 produces<reco::MuonTimeExtraMap>(
"dt");
47 produces<reco::MuonTimeExtraMap>(
"csc");
71 auto muonTimeMap = std::make_unique<reco::MuonTimeExtraMap>();
73 auto muonTimeMapDT = std::make_unique<reco::MuonTimeExtraMap>();
75 auto muonTimeMapCSC = std::make_unique<reco::MuonTimeExtraMap>();
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);
98 dtTimeColl[
i] = dtTime;
99 cscTimeColl[
i] = cscTime;
100 combinedTimeColl[
i] = combinedTime;
104 filler.insert(muons, combinedTimeColl.begin(), combinedTimeColl.end());
106 fillerDT.insert(muons, dtTimeColl.begin(), dtTimeColl.end());
108 fillerCSC.insert(muons, cscTimeColl.begin(), cscTimeColl.end());
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
MuonTimingProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~MuonTimingProducer() override
void fillTiming(const reco::Muon &muon, reco::MuonTimeExtra &dtTime, reco::MuonTimeExtra &cscTime, reco::MuonTime &rpcTime, reco::MuonTimeExtra &combinedTime, edm::Event &iEvent, const edm::EventSetup &iSetup)
MuonTimingFiller * theTimingFiller_
edm::InputTag m_muonCollection
edm::EDGetTokenT< reco::MuonCollection > muonToken_