#include <ParticleReplacerClass.h>
Classes | |
struct | MinVisPtCut |
Public Member Functions | |
virtual void | beginRun (const 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_ |
double | targetParticleMass_ |
int | targetParticlePdgID_ |
gen::TauolaInterfaceBase * | tauola_ |
unsigned int | transformationMode_ |
bool | useExternalGenerators_ |
bool | useTauola_ |
bool | useTauolaPolarization_ |
Additional Inherited Members | |
Public Attributes inherited from ParticleReplacerBase | |
unsigned int | passed |
unsigned int | tried |
Protected Attributes inherited from ParticleReplacerBase | |
const double | tauMass |
Definition at line 58 of file ParticleReplacerClass.h.
|
explicit |
Definition at line 26 of file ParticleReplacerClass.cc.
References attempts, GOODCOLL_filter_cfg::cut, hpstanc_transforms::cuts, ParticleReplacerVar::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_, gen::TauolaInterfaceBase::SetDecayRandomEngine(), AlCaHLTBitMon_QueryRunRegistry::string, ParticleReplacerClass::MinVisPtCut::TAU, tauola_, transformationMode_, and ParticleReplacerClass::MinVisPtCut::type_.
ParticleReplacerClass::~ParticleReplacerClass | ( | ) |
Definition at line 159 of file ParticleReplacerClass.cc.
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 450 of file ParticleReplacerClass.cc.
References gen::TauolaInterfaceBase::init(), and tauola_.
|
private |
Definition at line 549 of file ParticleReplacerClass.cc.
References L1Trigger_dataformats::reco, and repairBarcodes().
Referenced by produce().
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 457 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 166 of file ParticleReplacerClass.cc.
References abs, attempts, reco::LeafCandidate::charge(), cleanEvent(), conv, gather_cfg::cout, gen::TauolaInterfaceBase::decay(), edm::hlt::Exception, generatorMode_, configurableAnalysis::GenParticle, i, prof2calltree::l, maxNumberOfAttempts_, motherParticleID_, outTree, AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::p4(), ParticleReplacerBase::passed, reco::LeafCandidate::pdgId(), printEvent_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), repairBarcodes(), run_regression::ret, reco::Particle::setStatus(), mathSSE::sqrt(), targetParticleMass_, targetParticlePdgID_, tauola_, testEvent(), transformationMode_, transformMuMu2TauNu(), transformMuMu2TauTau(), ParticleReplacerBase::tried, funct::true, and reco::LeafCandidate::vertex().
|
private |
Definition at line 607 of file ParticleReplacerClass.cc.
Referenced by cleanEvent(), and produce().
|
private |
Definition at line 462 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 688 of file ParticleReplacerClass.cc.
References abs, gather_cfg::cout, reco::Particle::p4(), reco::Particle::pdgId(), L1Trigger_dataformats::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 630 of file ParticleReplacerClass.cc.
References abs, reco::Particle::p4(), reco::Particle::pdgId(), L1Trigger_dataformats::reco, reco::Particle::setP4(), reco::Particle::setPdgId(), reco::Particle::setStatus(), mathSSE::sqrt(), targetParticleMass_, and targetParticlePdgID_.
Referenced by produce().
|
private |
Definition at line 105 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 80 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 106 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
Definition at line 98 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and testEvent().
|
private |
Definition at line 88 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 81 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass().
|
private |
Definition at line 104 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 95 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
Definition at line 101 of file ParticleReplacerClass.h.
Referenced by produce(), transformMuMu2TauNu(), and transformMuMu2TauTau().
|
private |
Definition at line 102 of file ParticleReplacerClass.h.
Referenced by produce(), and transformMuMu2TauTau().
|
private |
Definition at line 93 of file ParticleReplacerClass.h.
Referenced by beginRun(), endJob(), ParticleReplacerClass(), and produce().
|
private |
Definition at line 86 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 89 of file ParticleReplacerClass.h.
|
private |
Definition at line 90 of file ParticleReplacerClass.h.
|
private |
Definition at line 91 of file ParticleReplacerClass.h.