#include <RecoMuon/MuPFIsoEmbedder/src/MuPFIsoEmbedder.cc>
Public Member Functions | |
MuPFIsoEmbedder (const edm::ParameterSet &) | |
~MuPFIsoEmbedder () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &) |
virtual void | beginRun (edm::Run &, edm::EventSetup const &) |
virtual void | endJob () |
virtual void | endLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &) |
virtual void | endRun (edm::Run &, edm::EventSetup const &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
MuPFIsoHelper * | helper_ |
edm::InputTag | muons_ |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 40 of file MuPFIsoEmbedder.cc.
MuPFIsoEmbedder::MuPFIsoEmbedder | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 69 of file MuPFIsoEmbedder.cc.
References helper_.
: muons_(iConfig.getParameter<edm::InputTag>("src")) { helper_ = new MuPFIsoHelper(iConfig); produces<reco::MuonCollection>(); }
MuPFIsoEmbedder::~MuPFIsoEmbedder | ( | ) |
Definition at line 78 of file MuPFIsoEmbedder.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void MuPFIsoEmbedder::beginJob | ( | void | ) | [private, virtual] |
void MuPFIsoEmbedder::beginLuminosityBlock | ( | edm::LuminosityBlock & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void MuPFIsoEmbedder::beginRun | ( | edm::Run & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void MuPFIsoEmbedder::endJob | ( | void | ) | [private, virtual] |
void MuPFIsoEmbedder::endLuminosityBlock | ( | edm::LuminosityBlock & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void MuPFIsoEmbedder::endRun | ( | edm::Run & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void MuPFIsoEmbedder::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDProducer.
Definition at line 154 of file MuPFIsoEmbedder.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
{ //The following says we do not know what parameters are allowed so do no validation // Please change this to state exactly what you do use, even if it is no parameters edm::ParameterSetDescription desc; desc.setUnknown(); descriptions.addDefault(desc); }
void MuPFIsoEmbedder::produce | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDProducer.
Definition at line 93 of file MuPFIsoEmbedder.cc.
References MuPFIsoHelper::beginEvent(), MuPFIsoHelper::embedPFIsolation(), edm::Event::getByLabel(), helper_, i, metsig::muon, patZpeak::muons, muons_, dbtoconf::out, edm::Event::put(), and dt_dqm_sourceclient_common_cff::reco.
{ using namespace edm; using namespace reco; helper_->beginEvent(iEvent); edm::Handle<reco::MuonCollection > muons; iEvent.getByLabel(muons_,muons); std::auto_ptr<MuonCollection> out(new MuonCollection); for(unsigned int i=0;i<muons->size();++i) { MuonRef muonRef(muons,i); Muon muon = muons->at(i); helper_->embedPFIsolation(muon,muonRef); out->push_back(muon); } iEvent.put(out); }
MuPFIsoHelper* MuPFIsoEmbedder::helper_ [private] |
Definition at line 61 of file MuPFIsoEmbedder.cc.
Referenced by MuPFIsoEmbedder(), and produce().
edm::InputTag MuPFIsoEmbedder::muons_ [private] |
Definition at line 59 of file MuPFIsoEmbedder.cc.
Referenced by produce().