#include <Generator.h>
Public Member Functions | |
virtual const double | eventWeight () const |
Generator (const edm::ParameterSet &p) | |
virtual const HepMC::GenEvent * | genEvent () const |
virtual const math::XYZTLorentzVector * | genVertex () const |
void | HepMC2G4 (const HepMC::GenEvent *g, G4Event *e) |
void | nonBeamEvent2G4 (const HepMC::GenEvent *g, G4Event *e) |
void | setGenEvent (const HepMC::GenEvent *inpevt) |
virtual | ~Generator () |
Private Member Functions | |
bool | isExotic (int pdgcode) const |
bool | isExoticNonDetectable (int pdgcode) const |
bool | IsInTheFilterList (int pdgcode) const |
void | particleAssignDaughters (G4PrimaryParticle *p, HepMC::GenParticle *hp, double length) |
bool | particlePassesPrimaryCuts (const G4ThreeVector &p) const |
void | setGenId (G4PrimaryParticle *p, int id) const |
Private Attributes | |
HepMC::GenEvent * | evt_ |
bool | fEtaCuts |
bool | fFiductialCuts |
LumiMonitorFilter * | fLumiFilter |
bool | fPCuts |
bool | fPDGFilter |
bool | fPhiCuts |
bool | fPtransCut |
std::vector< int > | pdgFilter |
bool | pdgFilterSel |
double | theDecLenCut |
double | theDecRCut2 |
double | theEtaCutForHector |
double | theMaxEtaCut |
double | theMaxPCut |
double | theMaxPhiCut |
double | theMinEtaCut |
double | theMinPCut |
double | theMinPhiCut |
double | theMinPtCut2 |
int | verbose |
math::XYZTLorentzVector * | vtx_ |
double | weight_ |
double | Z_hector |
double | Z_lmax |
double | Z_lmin |
Definition at line 19 of file Generator.h.
Generator::Generator | ( | const edm::ParameterSet & | p | ) |
Definition at line 24 of file Generator.cc.
References LumiMonitorFilter::Describe(), edm::ParameterSet::exists(), JetChargeProducer_cfi::exp, fEtaCuts, fFiductialCuts, fLumiFilter, fPCuts, fPDGFilter, fPhiCuts, fPtransCut, edm::ParameterSet::getParameter(), cuy::ii, csvLumiCalc::lumi, pdgFilter, pdgFilterSel, theDecLenCut, theDecRCut2, theEtaCutForHector, theMaxEtaCut, theMinEtaCut, theMinPCut, theMinPtCut2, Z_hector, Z_lmax, and Z_lmin.
|
virtual |
|
inlinevirtual |
Definition at line 31 of file Generator.h.
References GenParticle::GenParticle, AnalysisDataFormats_SUSYBSMObjects::hp, isExotic(), isExoticNonDetectable(), IsInTheFilterList(), particleAssignDaughters(), particlePassesPrimaryCuts(), and weight_.
Referenced by RunManagerMTWorker::produce(), and RunManager::produce().
|
inlinevirtual |
Definition at line 29 of file Generator.h.
References evt_.
Referenced by RunManagerMTWorker::produce(), and RunManager::produce().
|
inlinevirtual |
Definition at line 30 of file Generator.h.
References vtx_.
Referenced by RunManagerMTWorker::produce(), and RunManager::produce().
void Generator::HepMC2G4 | ( | const HepMC::GenEvent * | g, |
G4Event * | e | ||
) |
Definition at line 107 of file Generator.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, class-composition::children, fEtaCuts, fFiductialCuts, fLumiFilter, fPCuts, fPDGFilter, fPhiCuts, fPtransCut, GenParticle::GenParticle, GeV, isExotic(), isExoticNonDetectable(), LumiMonitorFilter::isGoodForLumiMonitor(), IsInTheFilterList(), LogDebug, nullptr, AlCaHLTBitMon_ParallelJobs::p, particleAssignDaughters(), pdgFilterSel, phi, setGenId(), mathSSE::sqrt(), mps_update::status, theDecRCut2, theMaxPCut, theMaxPhiCut, theMinPtCut2, vtx_, weight_, globals_cff::x1, globals_cff::x2, hybridSuperClusters_cfi::xi, geometryCSVtoXML::xx, geometryCSVtoXML::yy, Z_hector, Z_lmax, and Z_lmin.
Referenced by RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), and setGenEvent().
|
private |
Definition at line 546 of file Generator.cc.
References funct::abs(), and BPhysicsValidation_cfi::pdgid.
Referenced by eventWeight(), and HepMC2G4().
|
private |
Definition at line 556 of file Generator.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, source_particleGun_cfi::ParticleID, BPhysicsValidation_cfi::pdgid, and sysUtil::pid.
Referenced by eventWeight(), and HepMC2G4().
|
private |
Definition at line 565 of file Generator.cc.
References funct::abs(), pdgFilter, and BPhysicsValidation_cfi::pdgid.
Referenced by eventWeight(), and HepMC2G4().
void Generator::nonBeamEvent2G4 | ( | const HepMC::GenEvent * | g, |
G4Event * | e | ||
) |
Definition at line 572 of file Generator.cc.
References GenParticle::GenParticle, GeV, runTauDisplay::gp, mps_fire::i, particlePassesPrimaryCuts(), setGenId(), and findQualityFiles::v.
Referenced by RunManagerMTWorker::generateEvent(), RunManager::generateEvent(), and setGenEvent().
|
private |
Definition at line 436 of file Generator.cc.
References class-composition::children, GeV, LogDebug, nullptr, AlCaHLTBitMon_ParallelJobs::p, setGenId(), mathSSE::sqrt(), globals_cff::x1, and globals_cff::x2.
Referenced by eventWeight(), and HepMC2G4().
|
private |
Definition at line 513 of file Generator.cc.
References MillePedeFileConverter_cfg::e, PVValHelper::eta, fEtaCuts, RemoveAddSevLevel::flag, fPCuts, fPhiCuts, GeV, LogDebug, phi, theMaxEtaCut, theMaxPCut, and theMaxPhiCut.
Referenced by eventWeight(), and nonBeamEvent2G4().
|
inline |
Definition at line 25 of file Generator.h.
References MillePedeFileConverter_cfg::e, evt_, g, HepMC2G4(), nonBeamEvent2G4(), and mathSSE::return().
Referenced by RunManagerMTWorker::generateEvent(), and RunManager::generateEvent().
|
inlineprivate |
Definition at line 41 of file Generator.h.
Referenced by HepMC2G4(), nonBeamEvent2G4(), and particleAssignDaughters().
|
private |
Definition at line 62 of file Generator.h.
Referenced by genEvent(), and setGenEvent().
|
private |
Definition at line 47 of file Generator.h.
Referenced by Generator(), HepMC2G4(), and particlePassesPrimaryCuts().
|
private |
Definition at line 49 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 61 of file Generator.h.
Referenced by Generator(), HepMC2G4(), and ~Generator().
|
private |
Definition at line 45 of file Generator.h.
Referenced by Generator(), HepMC2G4(), and particlePassesPrimaryCuts().
|
private |
Definition at line 68 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 48 of file Generator.h.
Referenced by Generator(), HepMC2G4(), and particlePassesPrimaryCuts().
|
private |
Definition at line 46 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 66 of file Generator.h.
Referenced by Generator(), and IsInTheFilterList().
|
private |
Definition at line 67 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 59 of file Generator.h.
Referenced by Generator().
|
private |
Definition at line 57 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 58 of file Generator.h.
Referenced by Generator().
|
private |
Definition at line 53 of file Generator.h.
Referenced by Generator(), and particlePassesPrimaryCuts().
|
private |
Definition at line 56 of file Generator.h.
Referenced by HepMC2G4(), and particlePassesPrimaryCuts().
|
private |
Definition at line 51 of file Generator.h.
Referenced by HepMC2G4(), and particlePassesPrimaryCuts().
|
private |
Definition at line 52 of file Generator.h.
Referenced by Generator().
|
private |
Definition at line 54 of file Generator.h.
Referenced by Generator().
|
private |
Definition at line 50 of file Generator.h.
|
private |
Definition at line 55 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 60 of file Generator.h.
|
private |
Definition at line 63 of file Generator.h.
Referenced by genVertex(), and HepMC2G4().
|
private |
Definition at line 64 of file Generator.h.
Referenced by eventWeight(), and HepMC2G4().
|
private |
Definition at line 65 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 65 of file Generator.h.
Referenced by Generator(), and HepMC2G4().
|
private |
Definition at line 65 of file Generator.h.
Referenced by Generator(), and HepMC2G4().