42 produces<reco::MuonTimeExtraMap>(
"combined");
43 produces<reco::MuonTimeExtraMap>(
"dt");
44 produces<reco::MuonTimeExtraMap>(
"csc");
64 auto muonTimeMap = std::make_unique<reco::MuonTimeExtraMap>();
66 auto muonTimeMapDT = std::make_unique<reco::MuonTimeExtraMap>();
68 auto muonTimeMapCSC = std::make_unique<reco::MuonTimeExtraMap>();
74 unsigned int nMuons = muons->size();
76 std::vector<reco::MuonTimeExtra> dtTimeColl(nMuons);
77 std::vector<reco::MuonTimeExtra> cscTimeColl(nMuons);
78 std::vector<reco::MuonTimeExtra> combinedTimeColl(nMuons);
80 for (
unsigned int i = 0;
i < nMuons; ++
i) {
90 dtTimeColl[
i] = dtTime;
91 cscTimeColl[
i] = cscTime;
92 combinedTimeColl[
i] = combinedTime;
95 filler.insert(muons, combinedTimeColl.begin(), combinedTimeColl.end());
97 fillerDT.insert(muons, dtTimeColl.begin(), dtTimeColl.end());
99 fillerCSC.insert(muons, cscTimeColl.begin(), cscTimeColl.end());
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_
T getParameter(std::string const &) const