41 produces<reco::MuonTimeExtraMap>(
"combined");
42 produces<reco::MuonTimeExtraMap>(
"dt");
43 produces<reco::MuonTimeExtraMap>(
"csc");
63 auto muonTimeMap = std::make_unique<reco::MuonTimeExtraMap>();
65 auto muonTimeMapDT = std::make_unique<reco::MuonTimeExtraMap>();
67 auto muonTimeMapCSC = std::make_unique<reco::MuonTimeExtraMap>();
75 std::vector<reco::MuonTimeExtra> dtTimeColl(
nMuons);
76 std::vector<reco::MuonTimeExtra> cscTimeColl(
nMuons);
77 std::vector<reco::MuonTimeExtra> combinedTimeColl(
nMuons);
79 for (
unsigned int i = 0;
i <
nMuons; ++
i) {
89 dtTimeColl[
i] = dtTime;
90 cscTimeColl[
i] = cscTime;
91 combinedTimeColl[
i] = combinedTime;
94 filler.insert(
muons, combinedTimeColl.begin(), combinedTimeColl.end());
96 fillerDT.insert(
muons, dtTimeColl.begin(), dtTimeColl.end());
98 fillerCSC.insert(
muons, cscTimeColl.begin(), cscTimeColl.end());
T getParameter(std::string const &) const
MuonTimingProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
~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_