test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Attributes
ParticleReplacerBase Class Referenceabstract

#include <ParticleReplacerBase.h>

Inheritance diagram for ParticleReplacerBase:
ParticleReplacerParticleGun ParticleReplacerZtautau

Public Member Functions

virtual void beginJob ()
 
virtual void beginRun (edm::Run &run, const edm::EventSetup &es)
 
virtual void declareExtraProducts (MCParticleReplacer *)
 
virtual void endJob ()
 
virtual void endRun ()
 
 ParticleReplacerBase (const edm::ParameterSet &)
 
virtual std::auto_ptr
< HepMC::GenEvent > 
produce (const std::vector< reco::Particle > &, const reco::Vertex *evtVtx=0, const HepMC::GenEvent *genEvt=0, MCParticleReplacer *=0)=0
 
virtual ~ParticleReplacerBase ()
 

Public Attributes

unsigned int passed_
 
unsigned int tried_
 

Protected Attributes

const double tauMass_
 
int verbosity_
 

Detailed Description

Base class for particle replacer algorithms

Author
Matti Kortelainen
Version
Revision:
1.7
Id:
ParticleReplacerBase.h,v 1.7 2013/01/31 09:07:17 veelken Exp

Definition at line 27 of file ParticleReplacerBase.h.

Constructor & Destructor Documentation

ParticleReplacerBase::ParticleReplacerBase ( const edm::ParameterSet cfg)
explicit

Definition at line 3 of file ParticleReplacerBase.cc.

References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and verbosity_.

4  : tried_(0),
5  passed_(0),
6  tauMass_(1.7769)
7 {
8  verbosity_ = ( cfg.exists("verbosity") ) ?
9  cfg.getParameter<int>("verbosity") : 0;
10 }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
virtual ParticleReplacerBase::~ParticleReplacerBase ( )
inlinevirtual

Definition at line 31 of file ParticleReplacerBase.h.

31 {}

Member Function Documentation

virtual void ParticleReplacerBase::beginJob ( void  )
inlinevirtual

Reimplemented in ParticleReplacerZtautau, and ParticleReplacerParticleGun.

Definition at line 35 of file ParticleReplacerBase.h.

Referenced by MCParticleReplacer::beginJob().

35 {}
virtual void ParticleReplacerBase::beginRun ( edm::Run run,
const edm::EventSetup es 
)
inlinevirtual

Reimplemented in ParticleReplacerZtautau.

Definition at line 36 of file ParticleReplacerBase.h.

Referenced by MCParticleReplacer::beginRun().

36 {}
virtual void ParticleReplacerBase::declareExtraProducts ( MCParticleReplacer )
inlinevirtual

Reimplemented in ParticleReplacerZtautau.

Definition at line 33 of file ParticleReplacerBase.h.

33 {}
virtual void ParticleReplacerBase::endJob ( void  )
inlinevirtual

Reimplemented in ParticleReplacerZtautau, and ParticleReplacerParticleGun.

Definition at line 38 of file ParticleReplacerBase.h.

Referenced by MCParticleReplacer::endJob().

38 {}
virtual void ParticleReplacerBase::endRun ( void  )
inlinevirtual

Definition at line 37 of file ParticleReplacerBase.h.

Referenced by MCParticleReplacer::endRun().

37 {}
virtual std::auto_ptr<HepMC::GenEvent> ParticleReplacerBase::produce ( const std::vector< reco::Particle > &  ,
const reco::Vertex evtVtx = 0,
const HepMC::GenEvent *  genEvt = 0,
MCParticleReplacer = 0 
)
pure virtual

Member Data Documentation

unsigned int ParticleReplacerBase::passed_
const double ParticleReplacerBase::tauMass_
protected

Definition at line 46 of file ParticleReplacerBase.h.

unsigned int ParticleReplacerBase::tried_
int ParticleReplacerBase::verbosity_
protected