55 virtual void endJob()
override ;
72 patMuons_( iConfig.getParameter<bool>(
"PatMuons" ) ),
77 produces<pat::MuonCollection>();
79 produces<reco::MuonCollection>();
92 std::unique_ptr<T> pOut(
new T);
95 for(
typename T::const_iterator
muon = allMuons->begin();
muon != allMuons->end(); ++
muon ) {
98 double pt = (*corrector_)(*muon);
100 double eta = muon->eta();
101 double phi = muon->phi();
106 pOut->push_back(*newMuon);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void endJob() override
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)
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::vector< Muon > MuonCollection
collection of Muon objects
Container::value_type value_type
edm::ESHandle< MuScleFitDBobject > dbObject_
virtual void beginJob() override
boost::shared_ptr< MomentumScaleCorrector > corrector_
unsigned long long dbObjectCacheId_
edm::EDGetTokenT< reco::MuonCollection > theRecoMuonToken_
edm::InputTag theMuonLabel_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
MuScleFitMuonProducer(const edm::ParameterSet &)
edm::EDGetTokenT< pat::MuonCollection > thePatMuonToken_
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
T const * product() const