#include <RecoEgamma/EgammaElectronProducers/plugins/GsfElectronProducer.h>
Public Member Functions | |
virtual void | beginJob (edm::EventSetup const &iSetup) |
GsfElectronProducer (const edm::ParameterSet &conf) | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
virtual | ~GsfElectronProducer () |
Private Attributes | |
GsfElectronAlgo * | algo_ |
Implementation: <Notes on="" implementation>="">
Definition at line 22 of file GsfElectronProducer.h.
GsfElectronProducer::GsfElectronProducer | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 38 of file GsfElectronProducer.cc.
References algo_, and edm::ParameterSet::getParameter().
00039 { 00040 //register your products 00041 produces<GsfElectronCollection>(); 00042 00043 //create algo 00044 algo_ = new 00045 GsfElectronAlgo(iConfig, 00046 iConfig.getParameter<double>("maxEOverPBarrel"), 00047 iConfig.getParameter<double>("maxEOverPEndcaps"), 00048 iConfig.getParameter<double>("minEOverPBarrel"), 00049 iConfig.getParameter<double>("minEOverPEndcaps"), 00050 iConfig.getParameter<double>("maxDeltaEta"), 00051 iConfig.getParameter<double>("maxDeltaPhi"), 00052 iConfig.getParameter<bool>("highPtPreselection"), 00053 iConfig.getParameter<double>("highPtMin"), 00054 iConfig.getParameter<bool>("applyEtaCorrection"), 00055 iConfig.getParameter<bool>("applyAmbResolution") 00056 ); 00057 00058 }
GsfElectronProducer::~GsfElectronProducer | ( | ) | [virtual] |
Definition at line 60 of file GsfElectronProducer.cc.
References algo_.
00061 { 00062 delete algo_; 00063 }
void GsfElectronProducer::beginJob | ( | edm::EventSetup const & | iSetup | ) | [virtual] |
void GsfElectronProducer::produce | ( | edm::Event & | e, | |
const edm::EventSetup & | c | |||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 70 of file GsfElectronProducer.cc.
References algo_, edm::Event::put(), GsfElectronAlgo::run(), and GsfElectronAlgo::setupES().
00071 { 00072 algo_->setupES(iSetup); 00073 00074 // Create the output collections 00075 std::auto_ptr<GsfElectronCollection> pOutEle(new GsfElectronCollection); 00076 00077 // invoke algorithm 00078 algo_->run(e,*pOutEle); 00079 00080 // put result into the Event 00081 e.put(pOutEle); 00082 00083 }
GsfElectronAlgo* GsfElectronProducer::algo_ [private] |
Definition at line 35 of file GsfElectronProducer.h.
Referenced by GsfElectronProducer(), produce(), and ~GsfElectronProducer().