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

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

+ Inheritance diagram for PHG4CEmcTestBeamSubsystem:
+ Collaboration diagram for PHG4CEmcTestBeamSubsystem:

Public Member Functions

 PHG4CEmcTestBeamSubsystem (const std::string &name="BLOCK", const int layer=0)
 constructor
 
 ~PHG4CEmcTestBeamSubsystem (void) override
 destructor
 
int Init (PHCompositeNode *) override
 init
 
int process_event (PHCompositeNode *) override
 event processing
 
PHG4DetectorGetDetector (void) const override
 accessors (reimplemented)
 
PHG4SteppingActionGetSteppingAction (void) const override
 return pointer to this subsystem stepping action
 
void SetSize (const G4double sizex, const G4double sizey, const G4double sizez)
 
void SetPlaceZ (const G4double dbl)
 
void SetPlace (const G4double place_x, const G4double place_y, const G4double place_z)
 
void SetXRot (const G4double dbl)
 
void SetYRot (const G4double dbl)
 
void SetZRot (const G4double dbl)
 
PHG4EventActionGetEventAction () const override
 return pointer to this subsystem event action
 
void SetActive (const int i=1)
 
void SetAbsorberActive (const int i=1)
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector ()
 
void BlackHole (const int i=1)
 
- Public Member Functions inherited from PHG4Subsystem
 PHG4Subsystem (const std::string &name="Generic Subsystem")
 constructor
 
 ~PHG4Subsystem (void) override
 destructor
 
virtual int process_after_geant (PHCompositeNode *)
 event processing
 
virtual PHG4TrackingActionGetTrackingAction (void) const
 return pointer to this subsystem stepping action
 
virtual PHG4DisplayActionGetDisplayAction () const
 return pointer to this subsystem display setting
 
virtual PHG4StackingActionGetStackingAction () const
 
void OverlapCheck (const bool chk=true)
 
bool CheckOverlap () const
 
void SetMotherSubsystem (PHG4Subsystem *subsys)
 
PHG4SubsystemGetMotherSubsystem () const
 
void SetLogicalVolume (G4LogicalVolume *vol)
 
G4LogicalVolume * GetLogicalVolume () const
 
virtual bool CanBeMotherSubsystem () const
 
virtual void AddProcesses (G4ParticleDefinition *)
 
virtual void DefineMaterials ()
 
- 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 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.
 

Private Attributes

PHG4CEmcTestBeamDetectordetector_
 detector geometry
 
PHG4CEmcTestBeamSteppingActionsteppingAction_
 particle tracking "stepping" action
 
PHG4EventActioneventAction_
 
G4double dimension [3]
 
G4double place_in_x
 
G4double place_in_y
 
G4double place_in_z
 
G4double rot_in_x
 
G4double rot_in_y
 
G4double rot_in_z
 
int active
 
int absorberactive
 
int layer
 
int blackhole
 
std::string detector_type
 
std::string superdetector
 

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 19 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 19 of file PHG4CEmcTestBeamSubsystem.h

Constructor & Destructor Documentation

PHG4CEmcTestBeamSubsystem::PHG4CEmcTestBeamSubsystem ( const std::string &  name = "BLOCK",
const int  layer = 0 
)

constructor

Definition at line 28 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 28 of file PHG4CEmcTestBeamSubsystem.cc

References Acts::UnitConstants::cm, dimension, i, and Fun4AllBase::Name().

+ Here is the call graph for this function:

PHG4CEmcTestBeamSubsystem::~PHG4CEmcTestBeamSubsystem ( void  )
inlineoverride

destructor

Definition at line 26 of file PHG4CEmcTestBeamSubsystem.h.

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

Member Function Documentation

void PHG4CEmcTestBeamSubsystem::BlackHole ( const int  i = 1)
inline

Definition at line 66 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 66 of file PHG4CEmcTestBeamSubsystem.h

References blackhole, and i.

PHG4Detector * PHG4CEmcTestBeamSubsystem::GetDetector ( void  ) const
overridevirtual

accessors (reimplemented)

Reimplemented from PHG4Subsystem.

Definition at line 133 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 133 of file PHG4CEmcTestBeamSubsystem.cc

References detector_.

PHG4EventAction* PHG4CEmcTestBeamSubsystem::GetEventAction ( void  ) const
inlineoverridevirtual

return pointer to this subsystem event action

Reimplemented from PHG4Subsystem.

Definition at line 60 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 60 of file PHG4CEmcTestBeamSubsystem.h

References eventAction_.

PHG4SteppingAction * PHG4CEmcTestBeamSubsystem::GetSteppingAction ( void  ) const
overridevirtual

return pointer to this subsystem stepping action

Reimplemented from PHG4Subsystem.

Definition at line 139 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 139 of file PHG4CEmcTestBeamSubsystem.cc

References steppingAction_.

int PHG4CEmcTestBeamSubsystem::Init ( PHCompositeNode topNode)
overridevirtual

init

creates the detector_ object and place it on the node tree, under "DETECTORS" node (or whatever) reates the stepping action and place it on the node tree, under "ACTIONS" node creates relevant hit nodes that will be populated by the stepping action and stored in the output DST

Reimplemented from SubsysReco.

Definition at line 58 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 58 of file PHG4CEmcTestBeamSubsystem.cc

References absorberactive, active, PHCompositeNode::addNode(), PHG4CEmcTestBeamDetector::BlackHole(), blackhole, PHG4Subsystem::CheckOverlap(), detector_, detector_type, eventAction_, PHNodeIterator::findFirst(), layer, Fun4AllBase::Name(), PHG4Detector::OverlapCheck(), place_in_x, place_in_y, place_in_z, rot_in_x, rot_in_y, rot_in_z, PHG4CEmcTestBeamDetector::SetAbsorberActive(), PHG4CEmcTestBeamDetector::SetActive(), PHG4CEmcTestBeamDetector::SetPlace(), PHG4CEmcTestBeamDetector::SetXRot(), PHG4CEmcTestBeamDetector::SetYRot(), PHG4CEmcTestBeamDetector::SetZRot(), steppingAction_, PHG4CEmcTestBeamDetector::SuperDetector(), and superdetector.

+ Here is the call graph for this function:

int PHG4CEmcTestBeamSubsystem::process_event ( PHCompositeNode topNode)
overridevirtual

event processing

get all relevant nodes from top nodes (namely hit list) and pass that to the stepping action

Reimplemented from SubsysReco.

Definition at line 121 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 121 of file PHG4CEmcTestBeamSubsystem.cc

References PHG4CEmcTestBeamSteppingAction::SetInterfacePointers(), and steppingAction_.

+ Here is the call graph for this function:

void PHG4CEmcTestBeamSubsystem::SetAbsorberActive ( const int  i = 1)
inline

Definition at line 62 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4CEmcTestBeamSubsystem.h

References absorberactive, and i.

void PHG4CEmcTestBeamSubsystem::SetActive ( const int  i = 1)
inline

Definition at line 61 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 61 of file PHG4CEmcTestBeamSubsystem.h

References active, and i.

void PHG4CEmcTestBeamSubsystem::SetPlace ( const G4double  place_x,
const G4double  place_y,
const G4double  place_z 
)

Definition at line 144 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 144 of file PHG4CEmcTestBeamSubsystem.cc

References Acts::UnitConstants::cm, place_in_x, place_in_y, and place_in_z.

void PHG4CEmcTestBeamSubsystem::SetPlaceZ ( const G4double  dbl)

Definition at line 151 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 151 of file PHG4CEmcTestBeamSubsystem.cc

References Acts::UnitConstants::cm, and place_in_z.

void PHG4CEmcTestBeamSubsystem::SetSize ( const G4double  sizex,
const G4double  sizey,
const G4double  sizez 
)
inline

Definition at line 49 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 49 of file PHG4CEmcTestBeamSubsystem.h

References dimension.

void PHG4CEmcTestBeamSubsystem::SetXRot ( const G4double  dbl)

Definition at line 156 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 156 of file PHG4CEmcTestBeamSubsystem.cc

References deg, and rot_in_x.

void PHG4CEmcTestBeamSubsystem::SetYRot ( const G4double  dbl)

Definition at line 161 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 161 of file PHG4CEmcTestBeamSubsystem.cc

References deg, and rot_in_y.

void PHG4CEmcTestBeamSubsystem::SetZRot ( const G4double  dbl)

Definition at line 166 of file PHG4CEmcTestBeamSubsystem.cc.

View newest version in sPHENIX GitHub at line 166 of file PHG4CEmcTestBeamSubsystem.cc

References deg, and rot_in_z.

void PHG4CEmcTestBeamSubsystem::SuperDetector ( const std::string &  name)
inline

Definition at line 63 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 63 of file PHG4CEmcTestBeamSubsystem.h

References perf_headwind::name, and superdetector.

const std::string PHG4CEmcTestBeamSubsystem::SuperDetector ( )
inline

Definition at line 64 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 64 of file PHG4CEmcTestBeamSubsystem.h

References superdetector.

Member Data Documentation

int PHG4CEmcTestBeamSubsystem::absorberactive
private

Definition at line 86 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 86 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetAbsorberActive().

int PHG4CEmcTestBeamSubsystem::active
private

Definition at line 85 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 85 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetActive().

int PHG4CEmcTestBeamSubsystem::blackhole
private

Definition at line 88 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 88 of file PHG4CEmcTestBeamSubsystem.h

Referenced by BlackHole(), and Init().

PHG4CEmcTestBeamDetector* PHG4CEmcTestBeamSubsystem::detector_
private

detector geometry

defives from PHG4Detector

Definition at line 71 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 71 of file PHG4CEmcTestBeamSubsystem.h

Referenced by GetDetector(), and Init().

std::string PHG4CEmcTestBeamSubsystem::detector_type
private

Definition at line 89 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 89 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init().

G4double PHG4CEmcTestBeamSubsystem::dimension[3]
private

Definition at line 77 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 77 of file PHG4CEmcTestBeamSubsystem.h

Referenced by PHG4CEmcTestBeamSubsystem(), and SetSize().

PHG4EventAction* PHG4CEmcTestBeamSubsystem::eventAction_
private

Definition at line 76 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 76 of file PHG4CEmcTestBeamSubsystem.h

Referenced by GetEventAction(), and Init().

int PHG4CEmcTestBeamSubsystem::layer
private

Definition at line 87 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 87 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init().

G4double PHG4CEmcTestBeamSubsystem::place_in_x
private

Definition at line 78 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 78 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetPlace().

G4double PHG4CEmcTestBeamSubsystem::place_in_y
private

Definition at line 79 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 79 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetPlace().

G4double PHG4CEmcTestBeamSubsystem::place_in_z
private

Definition at line 80 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 80 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), SetPlace(), and SetPlaceZ().

G4double PHG4CEmcTestBeamSubsystem::rot_in_x
private

Definition at line 81 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 81 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetXRot().

G4double PHG4CEmcTestBeamSubsystem::rot_in_y
private

Definition at line 82 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 82 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetYRot().

G4double PHG4CEmcTestBeamSubsystem::rot_in_z
private

Definition at line 83 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 83 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SetZRot().

PHG4CEmcTestBeamSteppingAction* PHG4CEmcTestBeamSubsystem::steppingAction_
private

particle tracking "stepping" action

derives from PHG4SteppingActions

Definition at line 75 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 75 of file PHG4CEmcTestBeamSubsystem.h

Referenced by GetSteppingAction(), Init(), and process_event().

std::string PHG4CEmcTestBeamSubsystem::superdetector
private

Definition at line 90 of file PHG4CEmcTestBeamSubsystem.h.

View newest version in sPHENIX GitHub at line 90 of file PHG4CEmcTestBeamSubsystem.h

Referenced by Init(), and SuperDetector().


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