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

#include <prototype/blob/master/simulation/g4simulation/g4caloprototype/PHG4HcalPrototypeSubsystem.h>

+ Inheritance diagram for PHG4HcalPrototypeSubsystem:
+ Collaboration diagram for PHG4HcalPrototypeSubsystem:

Public Member Functions

 PHG4HcalPrototypeSubsystem (const std::string &name="BLOCK", const int layer=0)
 constructor
 
virtual ~PHG4HcalPrototypeSubsystem (void)
 destructor
 
int Init (PHCompositeNode *)
 init
 
int process_event (PHCompositeNode *)
 event processing
 
virtual PHG4DetectorGetDetector (void) const
 accessors (reimplemented)
 
virtual PHG4SteppingActionGetSteppingAction (void) const
 return pointer to this subsystem stepping action
 
void SetYRot (const G4double dbl)
 
void SetZRot (const G4double dbl)
 
void SetMaterial (const std::string &mat)
 
PHG4EventActionGetEventAction () const
 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

PHG4HcalPrototypeDetectordetector_
 detector geometry
 
PHG4HcalPrototypeSteppingActionsteppingAction_
 particle tracking "stepping" action
 
PHG4EventActioneventAction_
 
G4double dimension [3]
 
G4double rot_in_y
 
G4double rot_in_z
 
G4String material
 
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 23 of file PHG4HcalPrototypeSubsystem.h.

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

Constructor & Destructor Documentation

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

constructor

Definition at line 28 of file PHG4HcalPrototypeSubsystem.cc.

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

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

+ Here is the call graph for this function:

virtual PHG4HcalPrototypeSubsystem::~PHG4HcalPrototypeSubsystem ( void  )
inlinevirtual

destructor

Definition at line 32 of file PHG4HcalPrototypeSubsystem.h.

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

Member Function Documentation

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

Definition at line 64 of file PHG4HcalPrototypeSubsystem.h.

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

References blackhole, and i.

PHG4Detector * PHG4HcalPrototypeSubsystem::GetDetector ( void  ) const
virtual

accessors (reimplemented)

Reimplemented from PHG4Subsystem.

Definition at line 129 of file PHG4HcalPrototypeSubsystem.cc.

View newest version in sPHENIX GitHub at line 129 of file PHG4HcalPrototypeSubsystem.cc

References detector_.

PHG4EventAction* PHG4HcalPrototypeSubsystem::GetEventAction ( void  ) const
inlinevirtual

return pointer to this subsystem event action

Reimplemented from PHG4Subsystem.

Definition at line 58 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 58 of file PHG4HcalPrototypeSubsystem.h

References eventAction_.

PHG4SteppingAction * PHG4HcalPrototypeSubsystem::GetSteppingAction ( void  ) const
virtual

return pointer to this subsystem stepping action

Reimplemented from PHG4Subsystem.

Definition at line 135 of file PHG4HcalPrototypeSubsystem.cc.

View newest version in sPHENIX GitHub at line 135 of file PHG4HcalPrototypeSubsystem.cc

References steppingAction_.

int PHG4HcalPrototypeSubsystem::Init ( PHCompositeNode topNode)
virtual

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 56 of file PHG4HcalPrototypeSubsystem.cc.

View newest version in sPHENIX GitHub at line 56 of file PHG4HcalPrototypeSubsystem.cc

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

+ Here is the call graph for this function:

int PHG4HcalPrototypeSubsystem::process_event ( PHCompositeNode topNode)
virtual

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 117 of file PHG4HcalPrototypeSubsystem.cc.

View newest version in sPHENIX GitHub at line 117 of file PHG4HcalPrototypeSubsystem.cc

References PHG4HcalPrototypeSteppingAction::SetInterfacePointers(), and steppingAction_.

+ Here is the call graph for this function:

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

Definition at line 60 of file PHG4HcalPrototypeSubsystem.h.

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

References absorberactive, and i.

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

Definition at line 59 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 59 of file PHG4HcalPrototypeSubsystem.h

References active, and i.

void PHG4HcalPrototypeSubsystem::SetMaterial ( const std::string &  mat)
inline

Definition at line 57 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 57 of file PHG4HcalPrototypeSubsystem.h

References material.

void PHG4HcalPrototypeSubsystem::SetYRot ( const G4double  dbl)
inline

Definition at line 54 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 54 of file PHG4HcalPrototypeSubsystem.h

References rot_in_y.

void PHG4HcalPrototypeSubsystem::SetZRot ( const G4double  dbl)
inline

Definition at line 55 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 55 of file PHG4HcalPrototypeSubsystem.h

References rot_in_z.

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

Definition at line 61 of file PHG4HcalPrototypeSubsystem.h.

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

References perf_headwind::name, and superdetector.

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

Definition at line 62 of file PHG4HcalPrototypeSubsystem.h.

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

References superdetector.

Member Data Documentation

int PHG4HcalPrototypeSubsystem::absorberactive
private

Definition at line 82 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init(), and SetAbsorberActive().

int PHG4HcalPrototypeSubsystem::active
private

Definition at line 81 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init(), and SetActive().

int PHG4HcalPrototypeSubsystem::blackhole
private

Definition at line 84 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 84 of file PHG4HcalPrototypeSubsystem.h

Referenced by BlackHole(), and Init().

PHG4HcalPrototypeDetector* PHG4HcalPrototypeSubsystem::detector_
private

detector geometry

defives from PHG4Detector

Definition at line 70 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 70 of file PHG4HcalPrototypeSubsystem.h

Referenced by GetDetector(), and Init().

std::string PHG4HcalPrototypeSubsystem::detector_type
private

Definition at line 85 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init().

G4double PHG4HcalPrototypeSubsystem::dimension[3]
private

Definition at line 76 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by PHG4HcalPrototypeSubsystem().

PHG4EventAction* PHG4HcalPrototypeSubsystem::eventAction_
private

Definition at line 75 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by GetEventAction(), and Init().

int PHG4HcalPrototypeSubsystem::layer
private

Definition at line 83 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init().

G4String PHG4HcalPrototypeSubsystem::material
private

Definition at line 80 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by SetMaterial().

G4double PHG4HcalPrototypeSubsystem::rot_in_y
private

Definition at line 77 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init(), and SetYRot().

G4double PHG4HcalPrototypeSubsystem::rot_in_z
private

Definition at line 78 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init(), and SetZRot().

PHG4HcalPrototypeSteppingAction* PHG4HcalPrototypeSubsystem::steppingAction_
private

particle tracking "stepping" action

derives from PHG4SteppingActions

Definition at line 74 of file PHG4HcalPrototypeSubsystem.h.

View newest version in sPHENIX GitHub at line 74 of file PHG4HcalPrototypeSubsystem.h

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

std::string PHG4HcalPrototypeSubsystem::superdetector
private

Definition at line 86 of file PHG4HcalPrototypeSubsystem.h.

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

Referenced by Init(), and SuperDetector().


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