CMS 3D CMS Logo

Public Member Functions | Private Attributes

EgammaHLTPixelMatchElectronProducers Class Reference

#include <EgammaHLTPixelMatchElectronProducers.h>

Inheritance diagram for EgammaHLTPixelMatchElectronProducers:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual void beginJob (void)
 EgammaHLTPixelMatchElectronProducers (const edm::ParameterSet &conf)
virtual void produce (edm::Event &e, const edm::EventSetup &c)
virtual ~EgammaHLTPixelMatchElectronProducers ()

Private Attributes

EgammaHLTPixelMatchElectronAlgoalgo_
const edm::ParameterSet conf_
std::string seedProducer_

Detailed Description

Description: EDProducer of HLT Electron objects

Definition at line 23 of file EgammaHLTPixelMatchElectronProducers.h.


Constructor & Destructor Documentation

EgammaHLTPixelMatchElectronProducers::EgammaHLTPixelMatchElectronProducers ( const edm::ParameterSet conf) [explicit]

Definition at line 43 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_, and conf_.

                                                                                                         : conf_(iConfig)
{
  //register your products
  produces<ElectronCollection>();

  //create algo
  algo_ = new EgammaHLTPixelMatchElectronAlgo(conf_);

}
EgammaHLTPixelMatchElectronProducers::~EgammaHLTPixelMatchElectronProducers ( ) [virtual]

Definition at line 54 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_.

{
  delete algo_;
}

Member Function Documentation

void EgammaHLTPixelMatchElectronProducers::beginJob ( void  ) [virtual]

Reimplemented from edm::EDProducer.

Definition at line 59 of file EgammaHLTPixelMatchElectronProducers.cc.

{     
}
void EgammaHLTPixelMatchElectronProducers::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 64 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_, edm::Event::put(), EgammaHLTPixelMatchElectronAlgo::run(), and EgammaHLTPixelMatchElectronAlgo::setupES().

{
  // Update the algorithm conditions
  algo_->setupES(iSetup);  

  // Create the output collections   
  std::auto_ptr<ElectronCollection> pOutEle(new ElectronCollection);
  
  // invoke algorithm
    algo_->run(e,*pOutEle);

  // put result into the Event
    e.put(pOutEle);
  
}

Member Data Documentation

Definition at line 39 of file EgammaHLTPixelMatchElectronProducers.h.