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

#include <coresoftware/blob/master/simulation/g4simulation/g4intt/PHG4InttHitReco.h>

+ Inheritance diagram for PHG4InttHitReco:
+ Collaboration diagram for PHG4InttHitReco:

Public Member Functions

 PHG4InttHitReco (const std::string &name="PHG4InttHitReco")
 
 ~PHG4InttHitReco () override
 
int InitRun (PHCompositeNode *topNode) override
 module initialization
 
int process_event (PHCompositeNode *topNode) override
 event processing
 
void SetDefaultParameters () override
 set default parameter values
 
void Detector (const std::string &d)
 
void set_pixel_thresholdrat (double val)
 
void set_max_g4hitstep (float _)
 
void set_ClusHitsVerbose (bool set=true)
 
- 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.
 
- Public Member Functions inherited from PHParameterInterface
 PHParameterInterface (const std::string &name)
 
 PHParameterInterface (const PHParameterInterface &)=delete
 
PHParameterInterfaceoperator= (PHParameterInterface const &)=delete
 
virtual ~PHParameterInterface ()
 
void set_paramname (const std::string &name)
 
void set_double_param (const std::string &name, const double dval)
 
double get_double_param (const std::string &name) const
 
void set_int_param (const std::string &name, const int ival)
 
int get_int_param (const std::string &name) const
 
void set_string_param (const std::string &name, const std::string &sval)
 
std::string get_string_param (const std::string &name) const
 
void UpdateParametersWithMacro ()
 
void SaveToNodeTree (PHCompositeNode *runNode, const std::string &nodename)
 
void PutOnParNode (PHCompositeNode *parNode, const std::string &nodename)
 
void Print () const
 

Public Attributes

ClusHitsVerbosev1mClusHitsVerbose { nullptr }
 

Protected Attributes

std::string m_Detector = "INTT"
 
std::string m_HitNodeName
 
std::string m_CellNodeName
 
std::string m_GeoNodeName
 
double m_Tmin
 
double m_Tmax
 
double m_crossingPeriod
 
gsl_vector * m_LocalOutVec = nullptr
 
gsl_vector * m_PathVec = nullptr
 
gsl_vector * m_SegmentVec = nullptr
 

Private Member Functions

void truthcheck_g4hit (PHG4Hit *, PHCompositeNode *topNode)
 
void addtruthhitset (TrkrDefs::hitsetkey, TrkrDefs::hitkey, float neffelectrons)
 
void cluster_truthhits (PHCompositeNode *topNode)
 
void end_event_truthcluster (PHCompositeNode *topNode)
 

Private Attributes

TrkrTruthTrackContainerm_truthtracks { nullptr }
 
TrkrClusterContainerm_truthclusters { nullptr }
 
PHG4TruthInfoContainerm_truthinfo { nullptr }
 
int m_trkid { -1 }
 
bool m_is_emb { false }
 
TrkrTruthTrackm_current_track { nullptr }
 
const int m_cluster_version { 4 }
 
TrkrHitSetContainerm_truth_hits
 
std::map< TrkrDefs::hitsetkey,
unsigned int > 
m_hitsetkey_cnt {}
 
PHG4Hitprior_g4hit { nullptr }
 
double m_pixel_thresholdrat { 0.01 }
 
float max_g4hitstep { 2.0 }
 
bool record_ClusHitsVerbose { false }
 

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")
 
- Protected Member Functions inherited from PHParameterInterface
void set_default_double_param (const std::string &name, const double dval)
 
void set_default_int_param (const std::string &name, const int ival)
 
void set_default_string_param (const std::string &name, const std::string &sval)
 
void InitializeParameters ()
 

Detailed Description

Definition at line 27 of file PHG4InttHitReco.h.

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

Constructor & Destructor Documentation

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

Definition at line 55 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 55 of file PHG4InttHitReco.cc

PHG4InttHitReco::~PHG4InttHitReco ( )
override

Definition at line 74 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 74 of file PHG4InttHitReco.cc

References m_LocalOutVec, m_PathVec, m_SegmentVec, and m_truth_hits.

Member Function Documentation

void PHG4InttHitReco::addtruthhitset ( TrkrDefs::hitsetkey  hitsetkey,
TrkrDefs::hitkey  hitkey,
float  neffelectrons 
)
private

Definition at line 586 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 586 of file PHG4InttHitReco.cc

References TrkrHit::addEnergy(), TrkrHitSetContainer::findOrAddHitSet(), m_is_emb, and m_truth_hits.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4InttHitReco::Detector ( const std::string &  d)
inline

Definition at line 42 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 42 of file PHG4InttHitReco.h

References m_Detector.

void PHG4InttHitReco::end_event_truthcluster ( PHCompositeNode topNode)
private

Definition at line 576 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 576 of file PHG4InttHitReco.cc

References cluster_truthhits(), m_current_track, m_hitsetkey_cnt, m_is_emb, and m_trkid.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4InttHitReco::InitRun ( PHCompositeNode topNode)
overridevirtual
void PHG4InttHitReco::set_ClusHitsVerbose ( bool  set = true)
inline

Definition at line 84 of file PHG4InttHitReco.h.

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

References record_ClusHitsVerbose.

void PHG4InttHitReco::set_max_g4hitstep ( float  _)
inline

Definition at line 82 of file PHG4InttHitReco.h.

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

References _, and max_g4hitstep.

void PHG4InttHitReco::set_pixel_thresholdrat ( double  val)
inline

Definition at line 81 of file PHG4InttHitReco.h.

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

References m_pixel_thresholdrat.

void PHG4InttHitReco::SetDefaultParameters ( )
overridevirtual

set default parameter values

Implements PHParameterInterface.

Definition at line 526 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 526 of file PHG4InttHitReco.cc

References PHParameterInterface::set_default_double_param().

+ Here is the call graph for this function:

void PHG4InttHitReco::truthcheck_g4hit ( PHG4Hit g4hit,
PHCompositeNode topNode 
)
private

Definition at line 538 of file PHG4InttHitReco.cc.

View newest version in sPHENIX GitHub at line 538 of file PHG4InttHitReco.cc

References cluster_truthhits(), PHG4Hit::get_trkid(), PHG4Hit::get_x(), PHG4Hit::get_y(), TrkrTruthTrackContainer::getTruthTrack(), PHG4TruthInfoContainer::isEmbeded(), m_current_track, m_is_emb, m_trkid, m_truthinfo, m_truthtracks, max_g4hitstep, PHWHERE, prior_g4hit, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::string PHG4InttHitReco::m_CellNodeName
protected

Definition at line 47 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4InttHitReco.h

const int PHG4InttHitReco::m_cluster_version { 4 }
private

Definition at line 66 of file PHG4InttHitReco.h.

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

Referenced by cluster_truthhits().

double PHG4InttHitReco::m_crossingPeriod
protected

Definition at line 52 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 52 of file PHG4InttHitReco.h

Referenced by InitRun(), and process_event().

TrkrTruthTrack* PHG4InttHitReco::m_current_track { nullptr }
private

Definition at line 65 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 65 of file PHG4InttHitReco.h

Referenced by cluster_truthhits(), end_event_truthcluster(), and truthcheck_g4hit().

std::string PHG4InttHitReco::m_Detector = "INTT"
protected

Definition at line 45 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4InttHitReco.h

Referenced by Detector(), and InitRun().

std::string PHG4InttHitReco::m_GeoNodeName
protected

Definition at line 48 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 48 of file PHG4InttHitReco.h

Referenced by InitRun(), and process_event().

std::string PHG4InttHitReco::m_HitNodeName
protected

Definition at line 46 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4InttHitReco.h

Referenced by InitRun(), and process_event().

std::map<TrkrDefs::hitsetkey,unsigned int> PHG4InttHitReco::m_hitsetkey_cnt {}
private

Definition at line 68 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 68 of file PHG4InttHitReco.h

Referenced by cluster_truthhits(), and end_event_truthcluster().

bool PHG4InttHitReco::m_is_emb { false }
private

Definition at line 64 of file PHG4InttHitReco.h.

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

Referenced by addtruthhitset(), end_event_truthcluster(), process_event(), and truthcheck_g4hit().

gsl_vector* PHG4InttHitReco::m_LocalOutVec = nullptr
protected

Definition at line 54 of file PHG4InttHitReco.h.

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

Referenced by process_event(), and ~PHG4InttHitReco().

gsl_vector* PHG4InttHitReco::m_PathVec = nullptr
protected

Definition at line 55 of file PHG4InttHitReco.h.

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

Referenced by process_event(), and ~PHG4InttHitReco().

double PHG4InttHitReco::m_pixel_thresholdrat { 0.01 }
private

Definition at line 76 of file PHG4InttHitReco.h.

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

Referenced by cluster_truthhits(), and set_pixel_thresholdrat().

gsl_vector* PHG4InttHitReco::m_SegmentVec = nullptr
protected

Definition at line 56 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4InttHitReco.h

Referenced by process_event(), and ~PHG4InttHitReco().

double PHG4InttHitReco::m_Tmax
protected

Definition at line 51 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 51 of file PHG4InttHitReco.h

Referenced by InitRun(), and process_event().

double PHG4InttHitReco::m_Tmin
protected

Definition at line 50 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 50 of file PHG4InttHitReco.h

Referenced by InitRun(), and process_event().

int PHG4InttHitReco::m_trkid { -1 }
private

Definition at line 63 of file PHG4InttHitReco.h.

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

Referenced by end_event_truthcluster(), and truthcheck_g4hit().

TrkrHitSetContainer* PHG4InttHitReco::m_truth_hits
private

Definition at line 67 of file PHG4InttHitReco.h.

View newest version in sPHENIX GitHub at line 67 of file PHG4InttHitReco.h

Referenced by addtruthhitset(), cluster_truthhits(), and ~PHG4InttHitReco().

TrkrClusterContainer* PHG4InttHitReco::m_truthclusters { nullptr }
private

Definition at line 61 of file PHG4InttHitReco.h.

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

Referenced by cluster_truthhits(), and InitRun().

PHG4TruthInfoContainer* PHG4InttHitReco::m_truthinfo { nullptr }
private

Definition at line 62 of file PHG4InttHitReco.h.

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

Referenced by InitRun(), and truthcheck_g4hit().

TrkrTruthTrackContainer* PHG4InttHitReco::m_truthtracks { nullptr }
private

Definition at line 60 of file PHG4InttHitReco.h.

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

Referenced by InitRun(), and truthcheck_g4hit().

float PHG4InttHitReco::max_g4hitstep { 2.0 }
private

Definition at line 77 of file PHG4InttHitReco.h.

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

Referenced by set_max_g4hitstep(), and truthcheck_g4hit().

ClusHitsVerbosev1* PHG4InttHitReco::mClusHitsVerbose { nullptr }

Definition at line 85 of file PHG4InttHitReco.h.

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

Referenced by cluster_truthhits(), and InitRun().

PHG4Hit* PHG4InttHitReco::prior_g4hit { nullptr }
private

Definition at line 70 of file PHG4InttHitReco.h.

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

Referenced by cluster_truthhits(), process_event(), and truthcheck_g4hit().

bool PHG4InttHitReco::record_ClusHitsVerbose { false }
private

Definition at line 78 of file PHG4InttHitReco.h.

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

Referenced by InitRun(), and set_ClusHitsVerbose().


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