|
Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/simulation/g4main/PHG4ParticleGeneratorD0.h>
Inheritance diagram for PHG4ParticleGeneratorD0:
Collaboration diagram for PHG4ParticleGeneratorD0:Public Member Functions | |
| PHG4ParticleGeneratorD0 (const std::string &name="D0GEN") | |
| virtual | ~PHG4ParticleGeneratorD0 () |
| int | InitRun (PHCompositeNode *topNode) |
| int | process_event (PHCompositeNode *topNode) |
| void | set_eta_range (const double eta_min, const double eta_max) |
| void | set_rapidity_range (const double y_min, const double y_max) |
| void | set_mom_range (const double mom_min, const double mom_max) |
| void | set_pt_range (const double pt_min, const double pt_max) |
| void | set_vtx_zrange (const double zmin, const double zmax) |
| void | set_mass (const double mass) |
Public Member Functions inherited from PHG4ParticleGeneratorBase | |
| virtual | ~PHG4ParticleGeneratorBase () |
| 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 |
Public Member Functions inherited from SubsysReco | |
| 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... | |
Public Member Functions inherited from Fun4AllBase | |
| 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 Attributes | |
| double | vtx_zmin |
| double | vtx_zmax |
| double | y_min |
| double | y_max |
| double | eta_min |
| double | eta_max |
| double | mom_min |
| double | mom_max |
| double | pt_min |
| double | pt_max |
| double | mass |
| double | m1 |
| double | m2 |
| TF1 * | fsin |
| TF1 * | frap |
| TF1 * | fpt |
Protected Attributes inherited from PHG4ParticleGeneratorBase | |
| 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 |
Protected Attributes inherited from Fun4AllBase | |
| std::string | ThisName |
| int | verbosity |
| The verbosity level. 0 means not verbose at all. More... | |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
| 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 } |
Protected Member Functions inherited from PHG4ParticleGeneratorBase | |
| 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) |
Protected Member Functions inherited from SubsysReco | |
| SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
| Fun4AllBase (const std::string &name="NONAME") | |
Definition at line 8 of file PHG4ParticleGeneratorD0.h.
| PHG4ParticleGeneratorD0::PHG4ParticleGeneratorD0 | ( | const std::string & | name = "D0GEN" | ) |
Definition at line 25 of file PHG4ParticleGeneratorD0.cc.
|
inlinevirtual |
Definition at line 12 of file PHG4ParticleGeneratorD0.h.
|
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 PHG4ParticleGeneratorBase.
Definition at line 98 of file PHG4ParticleGeneratorD0.cc.
References fpt, frap, fsin, Fun4AllBase::Name(), pt_max, pt_min, y_max, and y_min.
Here is the call graph for this function:
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from PHG4ParticleGeneratorBase.
Definition at line 124 of file PHG4ParticleGeneratorD0.cc.
References PHG4InEvent::AddEmbeddedParticle(), PHG4InEvent::AddParticle(), PHG4ParticleGeneratorBase::AddParticle(), PHG4InEvent::AddVtx(), PHG4ParticleGeneratorBase::embedflag, fpt, frap, fsin, PHG4InEvent::identify(), m1, m2, mass, PHG4ParticleGeneratorBase::particlelist, pt_max, pt_min, PHG4ParticleGeneratorBase::RandomGenerator, PHG4ParticleGeneratorBase::ReuseExistingVertex(), PHG4ParticleGeneratorBase::SetParticleId(), PHG4ParticleGeneratorBase::t0, Fun4AllBase::verbosity, PHG4ParticleGeneratorBase::vtx_x, PHG4ParticleGeneratorBase::vtx_y, PHG4ParticleGeneratorBase::vtx_z, vtx_zmax, vtx_zmin, y_max, and y_min.
Here is the call graph for this function:| void PHG4ParticleGeneratorD0::set_eta_range | ( | const double | eta_min, |
| const double | eta_max | ||
| ) |
Definition at line 48 of file PHG4ParticleGeneratorD0.cc.
| void PHG4ParticleGeneratorD0::set_mass | ( | const double | mass | ) |
Definition at line 91 of file PHG4ParticleGeneratorD0.cc.
References mass.
| void PHG4ParticleGeneratorD0::set_mom_range | ( | const double | mom_min, |
| const double | mom_max | ||
| ) |
Definition at line 66 of file PHG4ParticleGeneratorD0.cc.
| void PHG4ParticleGeneratorD0::set_pt_range | ( | const double | pt_min, |
| const double | pt_max | ||
| ) |
Definition at line 74 of file PHG4ParticleGeneratorD0.cc.
| void PHG4ParticleGeneratorD0::set_rapidity_range | ( | const double | y_min, |
| const double | y_max | ||
| ) |
Definition at line 57 of file PHG4ParticleGeneratorD0.cc.
| void PHG4ParticleGeneratorD0::set_vtx_zrange | ( | const double | zmin, |
| const double | zmax | ||
| ) |
Definition at line 82 of file PHG4ParticleGeneratorD0.cc.
|
protected |
Definition at line 30 of file PHG4ParticleGeneratorD0.h.
Referenced by set_eta_range().
|
protected |
Definition at line 29 of file PHG4ParticleGeneratorD0.h.
Referenced by set_eta_range().
|
protected |
Definition at line 41 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 40 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 39 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 36 of file PHG4ParticleGeneratorD0.h.
Referenced by process_event().
|
protected |
Definition at line 37 of file PHG4ParticleGeneratorD0.h.
Referenced by process_event().
|
protected |
Definition at line 35 of file PHG4ParticleGeneratorD0.h.
Referenced by process_event(), and set_mass().
|
protected |
Definition at line 32 of file PHG4ParticleGeneratorD0.h.
Referenced by set_mom_range().
|
protected |
Definition at line 31 of file PHG4ParticleGeneratorD0.h.
Referenced by set_mom_range().
|
protected |
Definition at line 34 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), process_event(), and set_pt_range().
|
protected |
Definition at line 33 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), process_event(), and set_pt_range().
|
protected |
Definition at line 26 of file PHG4ParticleGeneratorD0.h.
Referenced by process_event(), and set_vtx_zrange().
|
protected |
Definition at line 25 of file PHG4ParticleGeneratorD0.h.
Referenced by process_event(), and set_vtx_zrange().
|
protected |
Definition at line 28 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), process_event(), and set_rapidity_range().
|
protected |
Definition at line 27 of file PHG4ParticleGeneratorD0.h.
Referenced by InitRun(), process_event(), and set_rapidity_range().