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

#include <coresoftware/blob/master/simulation/g4simulation/g4main/CosmicSpray.h>

+ Inheritance diagram for CosmicSpray:
+ Collaboration diagram for CosmicSpray:

Public Member Functions

bool InDetector (double x, double y, double z)
 
 CosmicSpray (const std::string &name="COSMICS", const double R=650)
 
 ~CosmicSpray () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
- 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 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.
 

Private Attributes

EcoMug gen
 
double _gun_e = NAN
 
double _x_min = NAN
 
double _x_max = NAN
 
double _z_min = NAN
 
double _z_max = NAN
 
double _y_fix = NAN
 
double _R = NAN
 

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 16 of file CosmicSpray.h.

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

Constructor & Destructor Documentation

CosmicSpray::CosmicSpray ( const std::string &  name = "COSMICS",
const double  R = 650 
)

Definition at line 43 of file CosmicSpray.cc.

View newest version in sPHENIX GitHub at line 43 of file CosmicSpray.cc

References _R, _x_max, _x_min, _y_fix, _z_max, _z_min, gen, Acts::IntegrationTest::R, seed, EcoMug::SetHSphereCenterPosition(), EcoMug::SetHSphereRadius(), EcoMug::SetMinimumMomentum(), EcoMug::SetSeed(), and EcoMug::SetUseHSphere().

+ Here is the call graph for this function:

CosmicSpray::~CosmicSpray ( )
inlineoverride

Definition at line 21 of file CosmicSpray.h.

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

Member Function Documentation

bool CosmicSpray::InDetector ( double  x,
double  y,
double  z 
)

Definition at line 31 of file CosmicSpray.cc.

View newest version in sPHENIX GitHub at line 31 of file CosmicSpray.cc

References _x_max, _y_fix, _z_max, and BlackHoleGeometry::gap.

Referenced by process_event().

+ Here is the caller graph for this function:

int CosmicSpray::InitRun ( PHCompositeNode )
overridevirtual

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.

Definition at line 62 of file CosmicSpray.cc.

View newest version in sPHENIX GitHub at line 62 of file CosmicSpray.cc

References PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, and PHNodeIterator::findFirst().

+ Here is the call graph for this function:

int CosmicSpray::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 78 of file CosmicSpray.cc.

View newest version in sPHENIX GitHub at line 78 of file CosmicSpray.cc

References _gun_e, _R, _y_fix, PHG4InEvent::AddParticle(), PHG4InEvent::AddVtx(), gen, EcoMug::Generate(), EcoMug::GetCharge(), EcoMug::GetGenerationMomentum(), EcoMug::GetGenerationPhi(), EcoMug::GetGenerationPosition(), EcoMug::GetGenerationTheta(), InDetector(), Acts::IntegrationTest::L, particle, PHG4Particle::set_e(), PHG4Particle::set_name(), PHG4Particle::set_parent_id(), PHG4Particle::set_pid(), PHG4Particle::set_px(), PHG4Particle::set_py(), PHG4Particle::set_pz(), PHG4Particle::set_track_id(), PHG4Particle::set_vtx_id(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Member Data Documentation

double CosmicSpray::_gun_e = NAN
private

Definition at line 28 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 28 of file CosmicSpray.h

Referenced by process_event().

double CosmicSpray::_R = NAN
private

Definition at line 35 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 35 of file CosmicSpray.h

Referenced by CosmicSpray(), and process_event().

double CosmicSpray::_x_max = NAN
private

Definition at line 30 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 30 of file CosmicSpray.h

Referenced by CosmicSpray(), and InDetector().

double CosmicSpray::_x_min = NAN
private

Definition at line 29 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 29 of file CosmicSpray.h

Referenced by CosmicSpray().

double CosmicSpray::_y_fix = NAN
private

Definition at line 33 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 33 of file CosmicSpray.h

Referenced by CosmicSpray(), InDetector(), and process_event().

double CosmicSpray::_z_max = NAN
private

Definition at line 32 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 32 of file CosmicSpray.h

Referenced by CosmicSpray(), and InDetector().

double CosmicSpray::_z_min = NAN
private

Definition at line 31 of file CosmicSpray.h.

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

Referenced by CosmicSpray().

EcoMug CosmicSpray::gen
private

Definition at line 26 of file CosmicSpray.h.

View newest version in sPHENIX GitHub at line 26 of file CosmicSpray.h

Referenced by CosmicSpray(), and process_event().


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