CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ParticleReplacerParticleGun Class Reference

#include <ParticleReplacerParticleGun.h>

Inheritance diagram for ParticleReplacerParticleGun:
ParticleReplacerBase

Public Member Functions

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

Private Member Functions

void correctTauMass (const std::vector< reco::Particle > &, std::vector< HepMC::FourVector > &)
 
void forceTauolaTauDecays ()
 
float randomPolarization ()
 
float tauHelicity (int)
 
void tauola_forParticleGun (int, int, const HepMC::FourVector &)
 

Private Attributes

std::string forceTauDecay_
 
int forceTauMinusHelicity_
 
int forceTauPlusHelicity_
 
std::string forceTauPolarization_
 
std::string generatorMode_
 
int gunParticle_
 
std::string particleOrigin_
 
float pol1_ [4]
 
float pol2_ [4]
 
gen::Pythia6Service pythia_
 
gen::TauolaInterfaceBasetauola_
 

Additional Inherited Members

- Public Attributes inherited from ParticleReplacerBase
unsigned int passed_
 
unsigned int tried_
 
- Protected Attributes inherited from ParticleReplacerBase
const double tauMass_
 
int verbosity_
 

Detailed Description

Particle gun replacer algorithm

Author
Sami Lehti
Version
Revision:
1.2
Id:
ParticleReplacerParticleGun.h,v 1.2 2013/01/31 09:07:18 veelken Exp

Definition at line 25 of file ParticleReplacerParticleGun.h.

Constructor & Destructor Documentation

ParticleReplacerParticleGun::ParticleReplacerParticleGun ( const edm::ParameterSet iConfig)
explicit

Definition at line 14 of file ParticleReplacerParticleGun.cc.

virtual ParticleReplacerParticleGun::~ParticleReplacerParticleGun ( )
inlinevirtual

Definition at line 29 of file ParticleReplacerParticleGun.h.

29 {}

Member Function Documentation

void ParticleReplacerParticleGun::beginJob ( void  )
virtual

Reimplemented from ParticleReplacerBase.

Definition at line 51 of file ParticleReplacerParticleGun.cc.

void ParticleReplacerParticleGun::correctTauMass ( const std::vector< reco::Particle > &  muons,
std::vector< HepMC::FourVector > &  corrected 
)
private

Definition at line 225 of file ParticleReplacerParticleGun.cc.

void ParticleReplacerParticleGun::endJob ( void  )
virtual

Reimplemented from ParticleReplacerBase.

Definition at line 64 of file ParticleReplacerParticleGun.cc.

void ParticleReplacerParticleGun::forceTauolaTauDecays ( )
private

Definition at line 245 of file ParticleReplacerParticleGun.cc.

std::auto_ptr< HepMC::GenEvent > ParticleReplacerParticleGun::produce ( const std::vector< reco::Particle > &  muons,
const reco::Vertex evtVtx = 0,
const HepMC::GenEvent *  genEvt = 0,
MCParticleReplacer producer = 0 
)
virtual

Implements ParticleReplacerBase.

Definition at line 73 of file ParticleReplacerParticleGun.cc.

float ParticleReplacerParticleGun::randomPolarization ( )
private

Definition at line 415 of file ParticleReplacerParticleGun.cc.

float ParticleReplacerParticleGun::tauHelicity ( int  pdg_id)
private

Definition at line 367 of file ParticleReplacerParticleGun.cc.

void ParticleReplacerParticleGun::tauola_forParticleGun ( int  tau_idx,
int  pdg_id,
const HepMC::FourVector &  particle_momentum 
)
private

Definition at line 294 of file ParticleReplacerParticleGun.cc.

Member Data Documentation

std::string ParticleReplacerParticleGun::forceTauDecay_
private

Definition at line 48 of file ParticleReplacerParticleGun.h.

int ParticleReplacerParticleGun::forceTauMinusHelicity_
private

Definition at line 52 of file ParticleReplacerParticleGun.h.

int ParticleReplacerParticleGun::forceTauPlusHelicity_
private

Definition at line 51 of file ParticleReplacerParticleGun.h.

std::string ParticleReplacerParticleGun::forceTauPolarization_
private

Definition at line 47 of file ParticleReplacerParticleGun.h.

std::string ParticleReplacerParticleGun::generatorMode_
private

Definition at line 49 of file ParticleReplacerParticleGun.h.

int ParticleReplacerParticleGun::gunParticle_
private

Definition at line 50 of file ParticleReplacerParticleGun.h.

std::string ParticleReplacerParticleGun::particleOrigin_
private

Definition at line 46 of file ParticleReplacerParticleGun.h.

float ParticleReplacerParticleGun::pol1_[4]
private

Definition at line 54 of file ParticleReplacerParticleGun.h.

float ParticleReplacerParticleGun::pol2_[4]
private

Definition at line 55 of file ParticleReplacerParticleGun.h.

gen::Pythia6Service ParticleReplacerParticleGun::pythia_
private

Definition at line 44 of file ParticleReplacerParticleGun.h.

gen::TauolaInterfaceBase* ParticleReplacerParticleGun::tauola_
private

Definition at line 43 of file ParticleReplacerParticleGun.h.