EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4GenHit Class Reference

#include <fun4all_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
 
double theta
 
double eloss
 
int layer
 
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 = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 12 of file PHG4GenHit.h.

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

Constructor & Destructor Documentation

PHG4GenHit::PHG4GenHit ( const std::string &  name = "PHG4GenHit")

Definition at line 21 of file PHG4GenHit.cc.

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

PHG4GenHit::~PHG4GenHit ( )
inlineoverride

Definition at line 16 of file PHG4GenHit.h.

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

Member Function Documentation

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

Definition at line 24 of file PHG4GenHit.h.

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

References detector, and 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 30 of file PHG4GenHit.cc.

View newest version in sPHENIX GitHub at line 30 of file PHG4GenHit.cc

References PHG4HitContainer::AddHit(), cos(), detector, eloss, Fun4AllReturnCodes::EVENT_OK, PHG4CylinderGeom::get_radius(), PHG4CylinderGeom::get_thickness(), PHG4CylinderGeomContainer::GetLayerGeom(), G4BARRELHCAL::inner_radius, layer, M_PI, G4BARRELHCAL::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 z1.

+ Here is the call graph for this function:

void PHG4GenHit::set_eloss ( 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 d, and eloss.

void PHG4GenHit::set_layer ( const int  i)
inline

Definition at line 23 of file PHG4GenHit.h.

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

References layer.

void PHG4GenHit::set_phi ( const double  d)
inline

Definition at line 20 of file PHG4GenHit.h.

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

References d, and phi.

void PHG4GenHit::set_theta ( 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 d, and theta.

Member Data Documentation

std::string PHG4GenHit::detector
protected

Definition at line 31 of file PHG4GenHit.h.

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

Referenced by Detector(), and process_event().

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

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

double PHG4GenHit::phi
protected

Definition at line 27 of file PHG4GenHit.h.

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

Referenced by process_event(), and set_phi().

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


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