Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4GenHit.h>
Public Member Functions | |
PHG4GenHit (const std::string &name="PHG4GenHit") | |
~PHG4GenHit () override | |
int | process_event (PHCompositeNode *topNode) override |
void | set_phi (const double d) |
void | set_theta (const double d) |
void | set_eloss (const double d) |
void | set_layer (const int i) |
void | Detector (const std::string &n) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Init (PHCompositeNode *) |
virtual int | InitRun (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Protected Attributes | |
double | phi = NAN |
double | theta = NAN |
double | eloss = NAN |
int | layer = -9999 |
std::string | detector |
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 = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 13 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 13 of file PHG4GenHit.h
PHG4GenHit::PHG4GenHit | ( | const std::string & | name = "PHG4GenHit" | ) |
Definition at line 19 of file PHG4GenHit.cc.
View newest version in sPHENIX GitHub at line 19 of file PHG4GenHit.cc
|
inlineoverride |
Definition at line 17 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 17 of file PHG4GenHit.h
|
inline |
Definition at line 25 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 25 of file PHG4GenHit.h
References n.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 24 of file PHG4GenHit.cc.
View newest version in sPHENIX GitHub at line 24 of file PHG4GenHit.cc
References PHG4HitContainer::AddHit(), detector, eloss, Fun4AllReturnCodes::EVENT_OK, PHG4CylinderGeom::get_radius(), PHG4CylinderGeom::get_thickness(), PHG4CylinderGeomContainer::GetLayerGeom(), G4CEMCALBEDO::inner_radius, layer, G4HCALOUT::outer_radius, phi, PHG4Hit::set_edep(), PHG4Hit::set_layer(), PHG4Hit::set_trkid(), PHG4Hit::set_x(), PHG4Hit::set_y(), PHG4Hit::set_z(), theta, Fun4AllBase::Verbosity(), and x0.
|
inline |
Definition at line 23 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 23 of file PHG4GenHit.h
References eloss.
|
inline |
Definition at line 24 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 24 of file PHG4GenHit.h
|
inline |
Definition at line 21 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 21 of file PHG4GenHit.h
References phi.
|
inline |
Definition at line 22 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 22 of file PHG4GenHit.h
References theta.
|
protected |
Definition at line 32 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 32 of file PHG4GenHit.h
Referenced by process_event().
|
protected |
Definition at line 30 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 30 of file PHG4GenHit.h
Referenced by process_event(), and set_eloss().
|
protected |
Definition at line 31 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 31 of file PHG4GenHit.h
Referenced by process_event(), and set_layer().
|
protected |
Definition at line 28 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 28 of file PHG4GenHit.h
Referenced by process_event(), and set_phi().
|
protected |
Definition at line 29 of file PHG4GenHit.h.
View newest version in sPHENIX GitHub at line 29 of file PHG4GenHit.h
Referenced by process_event(), and set_theta().