#include <TauAnalysis/MCEmbeddingTools/src/ParticleReplacerParticleGun.cc>
Public Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
ParticleReplacerParticleGun (const edm::ParameterSet &, bool) | |
std::auto_ptr< HepMC::GenEvent > | produce (const reco::MuonCollection &muons, const reco::Vertex *pvtx=0, const HepMC::GenEvent *genEvt=0) |
virtual | ~ParticleReplacerParticleGun () |
Public Member Functions inherited from ParticleReplacerBase | |
virtual void | beginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) |
virtual void | endRun () |
ParticleReplacerBase (const edm::ParameterSet &iConfig) | |
virtual | ~ParticleReplacerBase () |
Private Member Functions | |
void | correctTauMass (const reco::MuonCollection &muons, std::vector< HepMC::FourVector > &corrected) |
void | forceTauolaTauDecays () |
float | randomPolarization () |
float | tauHelicity (int pdg_id) |
void | tauola_forParticleGun (int tau_idx, int pdg_id, const HepMC::FourVector &particle_momentum) |
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] |
bool | printout_ |
gen::Pythia6Service | pythia_ |
gen::TauolaInterface * | tauola_ |
Additional Inherited Members | |
Public Attributes inherited from ParticleReplacerBase | |
unsigned int | passed |
unsigned int | tried |
Protected Attributes inherited from ParticleReplacerBase | |
const double | tauMass |
Description: Particle gun replacer algorithm
Implementation: <Notes on="" implementation>="">
Definition at line 29 of file ParticleReplacerParticleGun.h.
|
explicit |
Definition at line 9 of file ParticleReplacerParticleGun.cc.
References edm::hlt::Exception, forceTauDecay_, forceTauMinusHelicity_, forceTauPlusHelicity_, forceTauPolarization_, generatorMode_, edm::ParameterSet::getParameter(), NULL, pol1_, pol2_, gen::TauolaInterface::setPSet(), tauola_, and cond::rpcobgas::time.
|
virtual |
Definition at line 46 of file ParticleReplacerParticleGun.cc.
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 48 of file ParticleReplacerParticleGun.cc.
References abs, gunParticle_, pythia_, and gen::Pythia6Service::setGeneralParams().
|
private |
Definition at line 219 of file ParticleReplacerParticleGun.cc.
References abs, gunParticle_, mathSSE::sqrt(), and ParticleReplacerBase::tauMass.
Referenced by produce().
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 60 of file ParticleReplacerParticleGun.cc.
References abs, and gunParticle_.
|
private |
Definition at line 238 of file ParticleReplacerParticleGun.cc.
References forceTauDecay_.
Referenced by produce().
|
virtual |
Implements ParticleReplacerBase.
Definition at line 68 of file ParticleReplacerParticleGun.cc.
References abs, call_py1ent(), call_pyexec(), gen::call_pylist(), DeDxDiscriminatorTools::charge(), conv, correctTauMass(), gather_cfg::cout, edm::hlt::Exception, forceTauolaTauDecays(), gunParticle_, i, metsig::muon, particleOrigin_, pi, point, printout_, pythia_, edm::shift, lumiQTWidget::t, tauola_forParticleGun(), reco::LeafCandidate::vx(), reco::LeafCandidate::vy(), reco::LeafCandidate::vz(), x, reco::Vertex::x(), detailsBasic3DVector::y, reco::Vertex::y(), detailsBasic3DVector::z, and reco::Vertex::z().
|
private |
Definition at line 406 of file ParticleReplacerParticleGun.cc.
References rand().
Referenced by tauHelicity().
|
private |
Definition at line 359 of file ParticleReplacerParticleGun.cc.
References forceTauMinusHelicity_, forceTauPlusHelicity_, forceTauPolarization_, pol1_, pol2_, and randomPolarization().
Referenced by tauola_forParticleGun().
|
private |
Definition at line 287 of file ParticleReplacerParticleGun.cc.
References abs, pol1_, pol2_, and tauHelicity().
Referenced by produce().
|
private |
Definition at line 53 of file ParticleReplacerParticleGun.h.
Referenced by forceTauolaTauDecays(), and ParticleReplacerParticleGun().
|
private |
Definition at line 57 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun(), and tauHelicity().
|
private |
Definition at line 56 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun(), and tauHelicity().
|
private |
Definition at line 52 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun(), and tauHelicity().
|
private |
Definition at line 54 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun().
|
private |
Definition at line 55 of file ParticleReplacerParticleGun.h.
Referenced by beginJob(), correctTauMass(), endJob(), and produce().
|
private |
Definition at line 51 of file ParticleReplacerParticleGun.h.
Referenced by produce().
|
private |
Definition at line 59 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun(), tauHelicity(), and tauola_forParticleGun().
|
private |
Definition at line 60 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun(), tauHelicity(), and tauola_forParticleGun().
|
private |
Definition at line 62 of file ParticleReplacerParticleGun.h.
Referenced by produce().
|
private |
Definition at line 49 of file ParticleReplacerParticleGun.h.
Referenced by beginJob(), and produce().
|
private |
Definition at line 48 of file ParticleReplacerParticleGun.h.
Referenced by ParticleReplacerParticleGun().