70 : theMuonLabel_(iConfig.getParameter<edm::
InputTag>(
"MuonLabel")),
73 patMuons_(iConfig.getParameter<bool>(
"PatMuons")),
74 dbObjectLabel_(iConfig.getUntrackedParameter<std::
string>(
"DbObjectLabel",
"")),
77 produces<pat::MuonCollection>();
79 produces<reco::MuonCollection>();
87 std::unique_ptr<T> pOut(
new T);
90 for (
typename T::const_iterator
muon = allMuons->begin();
muon != allMuons->end(); ++
muon) {
92 double pt = (*corrector_)(*muon);
94 double eta = muon->eta();
95 double phi = muon->phi();
100 pOut->push_back(*newMuon);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string dbObjectLabel_
std::unique_ptr< T > applyCorrection(const edm::Handle< T > &allMuons)
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< Muon > MuonCollection
collection of Muon objects
~MuScleFitMuonProducer() override
Container::value_type value_type
edm::ESHandle< MuScleFitDBobject > dbObject_
unsigned long long dbObjectCacheId_
edm::EDGetTokenT< reco::MuonCollection > theRecoMuonToken_
edm::InputTag theMuonLabel_
T const * product() const
std::shared_ptr< MomentumScaleCorrector > corrector_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
MuScleFitMuonProducer(const edm::ParameterSet &)
edm::EDGetTokenT< pat::MuonCollection > thePatMuonToken_