#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::TauolaInterface * | 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 56 of file ParticleReplacerClass.h.
|
explicit |
Definition at line 23 of file ParticleReplacerClass.cc.
References attempts, GOODCOLL_filter_cfg::cut, hpstanc_transforms::cuts, decayRandomEngine, ParticleReplacerClass::MinVisPtCut::ELEC, edm::hlt::Exception, generatorMode_, 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::TauolaInterface::setPSet(), AlCaHLTBitMon_QueryRunRegistry::string, ParticleReplacerClass::MinVisPtCut::TAU, tauola_, transformationMode_, and ParticleReplacerClass::MinVisPtCut::type_.
ParticleReplacerClass::~ParticleReplacerClass | ( | ) |
Definition at line 157 of file ParticleReplacerClass.cc.
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 448 of file ParticleReplacerClass.cc.
References gen::TauolaInterface::init(), and tauola_.
|
private |
Definition at line 547 of file ParticleReplacerClass.cc.
References L1Trigger_dataformats::reco, and repairBarcodes().
Referenced by produce().
|
virtual |
Reimplemented from ParticleReplacerBase.
Definition at line 455 of file ParticleReplacerClass.cc.
References gen::TauolaInterface::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 164 of file ParticleReplacerClass.cc.
References abs, attempts, reco::LeafCandidate::charge(), cleanEvent(), conv, gather_cfg::cout, gen::TauolaInterface::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 605 of file ParticleReplacerClass.cc.
Referenced by cleanEvent(), and produce().
|
private |
Definition at line 460 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 686 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 628 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 103 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 78 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 104 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
Definition at line 96 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and testEvent().
|
private |
Definition at line 86 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 79 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass().
|
private |
Definition at line 102 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 93 of file ParticleReplacerClass.h.
Referenced by produce().
|
private |
Definition at line 99 of file ParticleReplacerClass.h.
Referenced by produce(), transformMuMu2TauNu(), and transformMuMu2TauTau().
|
private |
Definition at line 100 of file ParticleReplacerClass.h.
Referenced by produce(), and transformMuMu2TauTau().
|
private |
Definition at line 91 of file ParticleReplacerClass.h.
Referenced by beginRun(), endJob(), ParticleReplacerClass(), and produce().
|
private |
Definition at line 84 of file ParticleReplacerClass.h.
Referenced by ParticleReplacerClass(), and produce().
|
private |
Definition at line 87 of file ParticleReplacerClass.h.
|
private |
Definition at line 88 of file ParticleReplacerClass.h.
|
private |
Definition at line 89 of file ParticleReplacerClass.h.