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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4barrelmmg/CreateCZHitContainer.h>

+ Inheritance diagram for CreateCZHitContainer:
+ Collaboration diagram for CreateCZHitContainer:

Public Member Functions

 CreateCZHitContainer (const std::string &name="BMT")
 constructor
 
virtual ~CreateCZHitContainer ()
 destructor
 
int InitRun (PHCompositeNode *)
 full initialization
 
int process_event (PHCompositeNode *)
 event processing method
 
PHG4Hitmerge_hits (PHG4Hit *, PHG4Hit *)
 end of run method
 
- 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

std::string _node_postfix
 
PHG4TruthInfoContainer_truth_container
 
PHG4Hit_hit_C
 
PHG4Hit_hit_Z
 
PHG4Hit_hit_CZ
 

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 14 of file CreateCZHitContainer.h.

View newest version in sPHENIX GitHub at line 14 of file CreateCZHitContainer.h

Constructor & Destructor Documentation

CreateCZHitContainer::CreateCZHitContainer ( const std::string &  name = "BMT")

constructor

Definition at line 27 of file CreateCZHitContainer.cc.

View newest version in sPHENIX GitHub at line 27 of file CreateCZHitContainer.cc

CreateCZHitContainer::~CreateCZHitContainer ( )
virtual

destructor

Definition at line 37 of file CreateCZHitContainer.cc.

View newest version in sPHENIX GitHub at line 37 of file CreateCZHitContainer.cc

Member Function Documentation

int CreateCZHitContainer::InitRun ( PHCompositeNode topNode)
virtual

full initialization

Reimplemented from SubsysReco.

Definition at line 41 of file CreateCZHitContainer.cc.

View newest version in sPHENIX GitHub at line 41 of file CreateCZHitContainer.cc

References _node_postfix, _truth_container, Fun4AllReturnCodes::ABORTEVENT, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.

+ Here is the call graph for this function:

PHG4Hit * CreateCZHitContainer::merge_hits ( PHG4Hit h1,
PHG4Hit h2 
)

end of run method

Definition at line 113 of file CreateCZHitContainer.cc.

View newest version in sPHENIX GitHub at line 113 of file CreateCZHitContainer.cc

References PHG4Hit::get_avg_x(), PHG4Hit::get_avg_y(), PHG4Hit::get_eion(), PHG4Hit::get_hit_type(), PHG4Hit::get_layer(), PHG4Hit::get_t(), PHG4Hit::get_trkid(), PHG4Hit::get_x(), PHG4Hit::get_y(), PHG4Hit::get_z(), ETOF::R_in, ETOF::R_out, PHG4Hit::set_layer(), PHG4Hit::set_t(), PHG4Hit::set_trkid(), PHG4Hit::set_x(), PHG4Hit::set_y(), PHG4Hit::set_z(), and t1.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int CreateCZHitContainer::process_event ( PHCompositeNode topNode)
virtual

event processing method

Reimplemented from SubsysReco.

Definition at line 64 of file CreateCZHitContainer.cc.

View newest version in sPHENIX GitHub at line 64 of file CreateCZHitContainer.cc

References _hit_C, _hit_CZ, _hit_Z, _node_postfix, _truth_container, PHG4HitContainer::AddHit(), PHG4HitContainer::AddLayer(), Fun4AllReturnCodes::EVENT_OK, PHG4Particle::get_track_id(), PHG4HitContainer::getHits(), PHG4HitContainer::getLayers(), PHG4TruthInfoContainer::GetParticleRange(), hits(), if(), merge_hits(), and particle.

+ Here is the call graph for this function:

Member Data Documentation

PHG4Hit* CreateCZHitContainer::_hit_C
private

Definition at line 37 of file CreateCZHitContainer.h.

View newest version in sPHENIX GitHub at line 37 of file CreateCZHitContainer.h

Referenced by process_event().

PHG4Hit* CreateCZHitContainer::_hit_CZ
private

Definition at line 39 of file CreateCZHitContainer.h.

View newest version in sPHENIX GitHub at line 39 of file CreateCZHitContainer.h

Referenced by process_event().

PHG4Hit* CreateCZHitContainer::_hit_Z
private

Definition at line 38 of file CreateCZHitContainer.h.

View newest version in sPHENIX GitHub at line 38 of file CreateCZHitContainer.h

Referenced by process_event().

std::string CreateCZHitContainer::_node_postfix
private

Definition at line 35 of file CreateCZHitContainer.h.

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

Referenced by InitRun(), and process_event().

PHG4TruthInfoContainer* CreateCZHitContainer::_truth_container
private

Definition at line 36 of file CreateCZHitContainer.h.

View newest version in sPHENIX GitHub at line 36 of file CreateCZHitContainer.h

Referenced by InitRun(), and process_event().


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