Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4GenHit Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4GenHit.h>

+ Inheritance diagram for PHG4GenHit:
+ Collaboration diagram for PHG4GenHit:

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")
 

Detailed Description

Definition at line 13 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 13 of file PHG4GenHit.h

Constructor & Destructor Documentation

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

PHG4GenHit::~PHG4GenHit ( )
inlineoverride

Definition at line 17 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4GenHit.h

Member Function Documentation

void PHG4GenHit::Detector ( const std::string &  n)
inline

Definition at line 25 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4GenHit.h

References n.

int PHG4GenHit::process_event ( PHCompositeNode )
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.

+ Here is the call graph for this function:

void PHG4GenHit::set_eloss ( const double  d)
inline

Definition at line 23 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 23 of file PHG4GenHit.h

References eloss.

void PHG4GenHit::set_layer ( const int  i)
inline

Definition at line 24 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4GenHit.h

References i, and layer.

void PHG4GenHit::set_phi ( const double  d)
inline

Definition at line 21 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 21 of file PHG4GenHit.h

References phi.

void PHG4GenHit::set_theta ( const double  d)
inline

Definition at line 22 of file PHG4GenHit.h.

View newest version in sPHENIX GitHub at line 22 of file PHG4GenHit.h

References theta.

Member Data Documentation

std::string PHG4GenHit::detector
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().

double PHG4GenHit::eloss = NAN
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().

int PHG4GenHit::layer = -9999
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().

double PHG4GenHit::phi = NAN
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().

double PHG4GenHit::theta = NAN
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().


The documentation for this class was generated from the following files: