#include <ParticleReplacerClass.h>
Classes | |
struct | MinVisPtCut |
Public Member Functions | |
virtual void | beginRun (edm::Run &iRun, const edm::EventSetup &iSetup) |
virtual void | endJob () |
ParticleReplacerClass (const edm::ParameterSet &, bool) | |
virtual std::auto_ptr < HepMC::GenEvent > | produce (const reco::MuonCollection &muons, const reco::Vertex *pvtx=0, const HepMC::GenEvent *genEvt=0) |
~ParticleReplacerClass () | |
Public Member Functions inherited from ParticleReplacerBase | |
virtual void | beginJob () |
virtual void | endRun () |
ParticleReplacerBase (const edm::ParameterSet &iConfig) | |
virtual | ~ParticleReplacerBase () |
Private Member Functions | |
void | cleanEvent (HepMC::GenEvent *evt, HepMC::GenVertex *vtx) |
HepMC::GenEvent * | processEventWithPythia (HepMC::GenEvent *evt) |
HepMC::GenEvent * | processEventWithTauola (HepMC::GenEvent *evt) |
void | repairBarcodes (HepMC::GenEvent *evt) |
bool | testEvent (HepMC::GenEvent *evt) |
void | transformMuMu2TauNu (reco::Particle *muon1, reco::Particle *muon2) |
transform a muon pair into tau nu (as coming from a W boson) More... | |
void | transformMuMu2TauTau (reco::Particle *muon1, reco::Particle *muon2) |
transform a muon pair into a tau pair More... | |
Private Attributes | |
int | attempts |
std::string | generatorMode_ |
int | maxNumberOfAttempts_ |
std::vector< std::vector < MinVisPtCut > > | minVisPtCuts_ |
int | motherParticleID_ |
bool | noInitialisation_ |
TTree * | outTree |
bool | printEvent_ |
unsigned int | replacementMode_ |
replace mode: More... | |
double | targetParticleMass_ |
int | targetParticlePdgID_ |
gen::TauolaInterfaceBase * | tauola_ |
unsigned int | transformationMode_ |
bool | useExternalGenerators_ |
bool | useTauola_ |
bool | useTauolaPolarization_ |
Additional Inherited Members | |
Public Attributes inherited from ParticleReplacerBase | |
double | eventWeight |
Protected Attributes inherited from ParticleReplacerBase | |
const double | tauMass |
Definition at line 56 of file ParticleReplacerClass.h.
|
explicit |
Definition at line 25 of file ParticleReplacerClass.cc.
References attempts, GOODCOLL_filter_cfg::cut, hpstanc_transforms::cuts, decayRandomEngine, ParticleReplacerClass::MinVisPtCut::ELEC, edm::hlt::Exception, generatorMode_, reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ParticleReplacerClass::MinVisPtCut::HAD, ParticleReplacerClass::MinVisPtCut::index_, minVisPtCuts_, motherParticleID_, ParticleReplacerClass::MinVisPtCut::MU, noInitialisation_, NULL, outTree, pos, ParticleReplacerClass::MinVisPtCut::pt_, replacementMode_, gen::TauolaInterfaceBase::SetDecayRandomEngine(), ParticleReplacerClass::MinVisPtCut::TAU, tauola_, transformationMode_, and ParticleReplacerClass::MinVisPtCut::type_.
ParticleReplacerClass::~ParticleReplacerClass | ( | ) |
Definition at line 161 of file ParticleReplacerClass.cc.
References tauola_.
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 451 of file ParticleReplacerClass.cc.
References gen::TauolaInterfaceBase::init(), and tauola_.
|
private |
Definition at line 550 of file ParticleReplacerClass.cc.
References dt_dqm_sourceclient_common_cff::reco, and repairBarcodes().
Referenced by produce().
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 458 of file ParticleReplacerClass.cc.
References gen::TauolaInterfaceBase::statistics(), and tauola_.
|
private |
|
private |
|
virtual |
2) transform the muons to the desired particles
3) prepare the event
3) process the event
Implements ParticleReplacerBase.
Definition at line 169 of file ParticleReplacerClass.cc.
References abs, attempts, reco::LeafCandidate::charge(), cleanEvent(), conv, gather_cfg::cout, gen::TauolaInterfaceBase::decay(), ParticleReplacerBase::eventWeight, edm::hlt::Exception, generatorMode_, configurableAnalysis::GenParticle, i, prof2calltree::l, maxNumberOfAttempts_, motherParticleID_, outTree, AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::p4(), reco::LeafCandidate::pdgId(), printEvent_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), repairBarcodes(), replacementMode_, run_regression::ret, reco::Particle::setStatus(), mathSSE::sqrt(), targetParticleMass_, targetParticlePdgID_, tauola_, testEvent(), transformationMode_, transformMuMu2TauNu(), transformMuMu2TauTau(), funct::true, and reco::LeafCandidate::vertex().
|
private |
Definition at line 608 of file ParticleReplacerClass.cc.
Referenced by cleanEvent(), and produce().
|
private |
Definition at line 463 of file ParticleReplacerClass.cc.
References abs, runEdmFileComparison::collection, ParticleReplacerClass::MinVisPtCut::ELEC, prof2calltree::front, configurableAnalysis::GenParticle, ParticleReplacerClass::MinVisPtCut::HAD, minVisPtCuts_, ParticleReplacerClass::MinVisPtCut::MU, benchmark_cfg::pdgId, python.multivaluedict::sort(), lumiQTWidget::t, and ParticleReplacerClass::MinVisPtCut::TAU.
Referenced by produce().
|
private |
transform a muon pair into tau nu (as coming from a W boson)
Definition at line 683 of file ParticleReplacerClass.cc.
References abs, gather_cfg::cout, reco::Particle::p4(), reco::Particle::pdgId(), dt_dqm_sourceclient_common_cff::reco, reco::Particle::setP4(), reco::Particle::setPdgId(), reco::Particle::setStatus(), mathSSE::sqrt(), and targetParticleMass_.
Referenced by produce().
|
private |
transform a muon pair into a tau pair
Definition at line 625 of file ParticleReplacerClass.cc.
References abs, scaleCards::mass, reco::Particle::p4(), reco::Particle::pdgId(), dt_dqm_sourceclient_common_cff::reco, reco::Particle::setP4(), reco::Particle::setPdgId(), reco::Particle::setStatus(), mathSSE::sqrt(), targetParticleMass_, and targetParticlePdgID_.
Referenced by produce().
|
private |
Definition at line 107 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 82 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 108 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
Definition at line 100 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and testEvent().
|
private |
Definition at line 90 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 83 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass().
|
private |
Definition at line 106 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 97 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
replace mode:
Definition at line 81 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 103 of file ParticleReplacerClass.h.
Referenced by produce(), transformMuMu2TauNu(), and transformMuMu2TauTau().
|
private |
Definition at line 104 of file ParticleReplacerClass.h.
Referenced by produce(), and transformMuMu2TauTau().
|
private |
Definition at line 95 of file ParticleReplacerClass.h.
Referenced by beginRun(), endJob(), ParticleReplacerClass(), produce(), and ~ParticleReplacerClass().
|
private |
Definition at line 88 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 91 of file ParticleReplacerClass.h.
|
private |
Definition at line 92 of file ParticleReplacerClass.h.
|
private |
Definition at line 93 of file ParticleReplacerClass.h.