Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/simulation/g4main/PHG4ParticleGeneratorBase.h>
Public Member Functions | |
virtual | ~PHG4ParticleGeneratorBase () |
virtual int | InitRun (PHCompositeNode *topNode) |
virtual int | process_event (PHCompositeNode *topNode) |
virtual void | set_name (const std::string &particle="proton") |
virtual void | set_pid (const int pid) |
virtual void | set_mom (const double x, const double y, const double z) |
virtual void | set_vtx (const double x, const double y, const double z) |
virtual void | set_t0 (const double t) |
virtual double | get_vtx_x () const |
virtual double | get_vtx_y () const |
virtual double | get_vtx_z () const |
virtual double | get_t0 () const |
virtual void | Print (const std::string &what="ALL") const |
virtual void | AddParticle (const std::string &particle, const double x, const double y, const double z) |
virtual void | AddParticle (const int pid, const double x, const double y, const double z) |
virtual void | Embed (const int i=1) |
virtual int | ReuseExistingVertex (PHCompositeNode *topNode) |
int | get_reuse_existing_vertex () const |
void | set_reuse_existing_vertex (const int i=1) |
void | set_seed (const unsigned int iseed) |
unsigned int | get_seed () const |
![]() | |
virtual | ~SubsysReco () |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. More... | |
virtual int | EndRun (const int) |
Called at the end of each run. More... | |
virtual int | Init (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. More... | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. More... | |
![]() | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. More... | |
virtual void | Name (const std::string &name) |
Sets the name of this module. More... | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). More... | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). More... | |
virtual int | Verbosity () const |
Gets the verbosity of this module. More... | |
Protected Member Functions | |
PHG4ParticleGeneratorBase (const std::string &name="GENERATORBASE") | |
int | get_pdgcode (const std::string &name) const |
std::string | get_pdgname (const int pdgcode) const |
double | get_mass (const int pdgcode) const |
void | CheckAndCreateParticleVector () |
void | SetParticleId (PHG4Particle *particle, PHG4InEvent *ineve) |
![]() | |
SubsysReco (const std::string &name="NONAME") | |
![]() | |
Fun4AllBase (const std::string &name="NONAME") | |
Protected Attributes | |
int | embedflag |
int | reuse_existing_vertex |
double | vtx_x |
double | vtx_y |
double | vtx_z |
double | t0 |
std::vector< PHG4Particle * > | particlelist |
unsigned int | seed |
gsl_rng * | RandomGenerator |
![]() | |
std::string | ThisName |
int | verbosity |
The verbosity level. 0 means not verbose at all. More... | |
Additional Inherited Members | |
![]() | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0 , VERBOSITY_SOME = 1 , VERBOSITY_MORE = 2 , VERBOSITY_EVEN_MORE = 3 , VERBOSITY_A_LOT = 4 , VERBOSITY_MAX = INT_MAX - 10 } |
Definition at line 16 of file PHG4ParticleGeneratorBase.h.
|
virtual |
Definition at line 41 of file PHG4ParticleGeneratorBase.cc.
References particlelist, and RandomGenerator.
|
protected |
Definition at line 26 of file PHG4ParticleGeneratorBase.cc.
References RandomGenerator, and seed.
|
virtual |
Definition at line 160 of file PHG4ParticleGeneratorBase.cc.
References particlelist, PHG4Particle::set_pid(), PHG4Particle::set_px(), PHG4Particle::set_py(), and PHG4Particle::set_pz().
|
virtual |
Definition at line 154 of file PHG4ParticleGeneratorBase.cc.
References get_pdgcode(), and particlelist.
Referenced by PHG4ParticleGeneratorD0::process_event(), and PHG4ParticleGeneratorVectorMeson::process_event().
|
protected |
Definition at line 170 of file PHG4ParticleGeneratorBase.cc.
References particlelist.
Referenced by set_mom(), set_name(), and set_pid().
|
inlinevirtual |
Definition at line 38 of file PHG4ParticleGeneratorBase.h.
References embedflag.
|
protected |
Definition at line 78 of file PHG4ParticleGeneratorBase.cc.
References get_pdgname().
Referenced by PHG4PSScanGenerator::process_event(), and PHG4SimpleEventGenerator::process_event().
|
protected |
Definition at line 52 of file PHG4ParticleGeneratorBase.cc.
Referenced by AddParticle(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), set_name(), and SetParticleId().
|
protected |
Definition at line 65 of file PHG4ParticleGeneratorBase.cc.
Referenced by get_mass(), PHG4PSScanGenerator::InitRun(), PHG4SimpleEventGenerator::InitRun(), SQSingleMuonGen::process_event(), SQCosmicGen::process_event(), and SetParticleId().
|
inline |
Definition at line 41 of file PHG4ParticleGeneratorBase.h.
References reuse_existing_vertex.
Referenced by PHG4PSScanGenerator::InitRun(), and PHG4SimpleEventGenerator::InitRun().
|
inline |
Definition at line 44 of file PHG4ParticleGeneratorBase.h.
References seed.
Referenced by PHG4PSScanGenerator::InitRun(), and PHG4SimpleEventGenerator::InitRun().
|
inlinevirtual |
Definition at line 33 of file PHG4ParticleGeneratorBase.h.
References t0.
|
inlinevirtual |
Definition at line 30 of file PHG4ParticleGeneratorBase.h.
References vtx_x.
|
inlinevirtual |
Definition at line 31 of file PHG4ParticleGeneratorBase.h.
References vtx_y.
|
inlinevirtual |
Definition at line 32 of file PHG4ParticleGeneratorBase.h.
References vtx_z.
|
virtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Reimplemented in SQCosmicGen, PHG4SimpleEventGenerator, PHG4PSScanGenerator, PHG4PileupGenerator, PHG4ParticleGun, PHG4ParticleGeneratorVectorMeson, PHG4ParticleGeneratorD0, SQSingleMuonGen, SQPrimaryParticleGen, and SQPileupGen.
Definition at line 120 of file PHG4ParticleGeneratorBase.cc.
References PHCompositeNode::addNode(), and PHNodeIterator::findFirst().
Referenced by PHG4ParticleGun::InitRun(), and PHG4PileupGenerator::InitRun().
|
virtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from SubsysReco.
Definition at line 142 of file PHG4ParticleGeneratorBase.cc.
References particlelist.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Reimplemented in SQCosmicGen, PHG4SimpleEventGenerator, PHG4PSScanGenerator, PHG4PileupGenerator, PHG4ParticleGun, PHG4ParticleGeneratorVectorMeson, PHG4ParticleGeneratorD0, PHG4ParticleGenerator, SQSingleMuonGen, SQPrimaryParticleGen, and SQPileupGen.
Definition at line 136 of file PHG4ParticleGeneratorBase.cc.
References Fun4AllBase::Name(), and PHWHERE.
Referenced by PHG4PileupGenerator::process_event().
|
virtual |
Definition at line 204 of file PHG4ParticleGeneratorBase.cc.
References PHHepMCGenEvent::get_collision_vertex(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), PHG4InEvent::GetNVtx(), PHG4TruthInfoContainer::GetPrimaryVtx(), PHG4InEvent::GetVertices(), PHHepMCGenEvent::identify(), PHG4TruthInfoContainer::identify(), PHG4VtxPoint::identify(), PHWHERE, PHHepMCGenEventMap::rbegin(), PHHepMCGenEventMap::rend(), reuse_existing_vertex, set_vtx(), and Fun4AllBase::verbosity.
Referenced by PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), PHG4PSScanGenerator::process_event(), and PHG4SimpleEventGenerator::process_event().
|
virtual |
Definition at line 103 of file PHG4ParticleGeneratorBase.cc.
References CheckAndCreateParticleVector(), and particlelist.
|
virtual |
Definition at line 89 of file PHG4ParticleGeneratorBase.cc.
References CheckAndCreateParticleVector(), get_pdgcode(), and particlelist.
|
virtual |
Definition at line 97 of file PHG4ParticleGeneratorBase.cc.
References CheckAndCreateParticleVector(), and particlelist.
|
inline |
Definition at line 42 of file PHG4ParticleGeneratorBase.h.
References reuse_existing_vertex.
void PHG4ParticleGeneratorBase::set_seed | ( | const unsigned int | iseed | ) |
Definition at line 197 of file PHG4ParticleGeneratorBase.cc.
References Fun4AllBase::Name(), RandomGenerator, and seed.
|
inlinevirtual |
Reimplemented in PHG4SimpleEventGenerator, and PHG4PSScanGenerator.
Definition at line 28 of file PHG4ParticleGeneratorBase.h.
References t0.
Referenced by PHG4PileupGenerator::process_event().
|
virtual |
Definition at line 112 of file PHG4ParticleGeneratorBase.cc.
References vtx_x, vtx_y, and vtx_z.
Referenced by ReuseExistingVertex().
|
protected |
Definition at line 180 of file PHG4ParticleGeneratorBase.cc.
References PHG4InEvent::AddEmbeddedParticle(), embedflag, PHG4Particle::get_name(), get_pdgcode(), get_pdgname(), PHG4Particle::get_pid(), PHG4Particle::set_name(), and PHG4Particle::set_pid().
Referenced by PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), and PHG4ParticleGun::process_event().
|
protected |
Definition at line 53 of file PHG4ParticleGeneratorBase.h.
Referenced by Embed(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), and SetParticleId().
|
protected |
Definition at line 59 of file PHG4ParticleGeneratorBase.h.
Referenced by AddParticle(), CheckAndCreateParticleVector(), Print(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), set_mom(), set_name(), set_pid(), and ~PHG4ParticleGeneratorBase().
|
protected |
Definition at line 62 of file PHG4ParticleGeneratorBase.h.
Referenced by PHG4ParticleGeneratorBase(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4PileupGenerator::process_event(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), set_seed(), and ~PHG4ParticleGeneratorBase().
|
protected |
Definition at line 54 of file PHG4ParticleGeneratorBase.h.
Referenced by get_reuse_existing_vertex(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), ReuseExistingVertex(), and set_reuse_existing_vertex().
|
protected |
Definition at line 60 of file PHG4ParticleGeneratorBase.h.
Referenced by get_seed(), PHG4ParticleGeneratorBase(), and set_seed().
|
protected |
Definition at line 58 of file PHG4ParticleGeneratorBase.h.
Referenced by get_t0(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), set_t0(), PHG4PSScanGenerator::set_t0(), and PHG4SimpleEventGenerator::set_t0().
|
protected |
Definition at line 55 of file PHG4ParticleGeneratorBase.h.
Referenced by get_vtx_x(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), and set_vtx().
|
protected |
Definition at line 56 of file PHG4ParticleGeneratorBase.h.
Referenced by get_vtx_y(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), and set_vtx().
|
protected |
Definition at line 57 of file PHG4ParticleGeneratorBase.h.
Referenced by get_vtx_z(), PHG4ParticleGenerator::process_event(), PHG4ParticleGeneratorD0::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4ParticleGun::process_event(), PHG4PSScanGenerator::process_event(), PHG4SimpleEventGenerator::process_event(), and set_vtx().