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

Vertexing using truth info. More...

#include <fun4all_coresoftware/blob/master/offline/packages/trackreco/PHSiliconTruthTrackSeeding.h>

+ Inheritance diagram for PHSiliconTruthTrackSeeding:
+ Collaboration diagram for PHSiliconTruthTrackSeeding:

Public Member Functions

 PHSiliconTruthTrackSeeding (const std::string &name="PHSiliconTruthTrackSeeding")
 
unsigned int get_min_clusters_per_track () const
 
void set_min_clusters_per_track (unsigned int minClustersPerTrack)
 
void set_min_layer (unsigned int minLayer)
 
void set_max_layer (unsigned int maxLayer)
 
double get_min_momentum () const
 minimal truth momentum cut
 
void set_min_momentum (double m)
 minimal truth momentum cut
 
- Public Member Functions inherited from PHTrackSeeding
 PHTrackSeeding (const std::string &name="PHTrackSeeding")
 
 ~PHTrackSeeding () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void set_track_map_name (const std::string &map_name)
 
void SetUseTruthClusters (bool setit)
 
void SetIteration (int iter)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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.
 

Protected Member Functions

int Setup (PHCompositeNode *topNode) override
 
int Process (PHCompositeNode *topNode) override
 
int End () override
 Called in SubsysReco::End.
 

Private Member Functions

int GetNodes (PHCompositeNode *topNode)
 fetch node pointers
 

Private Attributes

PHG4TruthInfoContainer_g4truth_container = nullptr
 
PHG4HitContainerphg4hits_tpc = nullptr
 
PHG4HitContainerphg4hits_intt = nullptr
 
PHG4HitContainerphg4hits_mvtx = nullptr
 
PHG4HitContainerphg4hits_micromegas = nullptr
 
TrkrHitTruthAssochittruthassoc = nullptr
 
TrkrClusterHitAssocclusterhitassoc = nullptr
 
unsigned int _min_clusters_per_track = 2
 
unsigned int _min_layer = 0
 
unsigned int _max_layer = 6
 
double _min_momentum = 50e-3
 minimal truth momentum cut (GeV)
 

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 Attributes inherited from PHTrackSeeding
TrkrClusterContainer_cluster_map = nullptr
 
TrkrClusterHitAssoc_cluster_hit_map = nullptr
 
TrkrClusterIterationMapv1_iteration_map
 
int _n_iteration
 
SvtxVertexMap_vertex_map = nullptr
 
SvtxTrackMap_track_map = nullptr
 
AssocInfoContainer_assoc_container = nullptr
 
TrkrHitSetContainer_hitsets = nullptr
 
std::string _track_map_name = "SvtxTrackMap"
 
bool _use_truth_clusters = false
 

Detailed Description

Vertexing using truth info.

Definition at line 29 of file PHSiliconTruthTrackSeeding.h.

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

Constructor & Destructor Documentation

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

Definition at line 50 of file PHSiliconTruthTrackSeeding.cc.

View newest version in sPHENIX GitHub at line 50 of file PHSiliconTruthTrackSeeding.cc

Member Function Documentation

int PHSiliconTruthTrackSeeding::End ( )
overrideprotectedvirtual

Called in SubsysReco::End.

Implements PHTrackSeeding.

Definition at line 432 of file PHSiliconTruthTrackSeeding.cc.

View newest version in sPHENIX GitHub at line 432 of file PHSiliconTruthTrackSeeding.cc

unsigned int PHSiliconTruthTrackSeeding::get_min_clusters_per_track ( ) const
inline

Definition at line 34 of file PHSiliconTruthTrackSeeding.h.

View newest version in sPHENIX GitHub at line 34 of file PHSiliconTruthTrackSeeding.h

References _min_clusters_per_track.

double PHSiliconTruthTrackSeeding::get_min_momentum ( ) const
inline

minimal truth momentum cut

Definition at line 55 of file PHSiliconTruthTrackSeeding.h.

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

References _min_momentum.

int PHSiliconTruthTrackSeeding::GetNodes ( PHCompositeNode topNode)
private

fetch node pointers

Definition at line 378 of file PHSiliconTruthTrackSeeding.cc.

View newest version in sPHENIX GitHub at line 378 of file PHSiliconTruthTrackSeeding.cc

References _g4truth_container, Fun4AllReturnCodes::ABORTEVENT, clusterhitassoc, Fun4AllReturnCodes::EVENT_OK, exit(), hittruthassoc, phg4hits_intt, phg4hits_micromegas, phg4hits_mvtx, phg4hits_tpc, and PHWHERE.

+ Here is the call graph for this function:

int PHSiliconTruthTrackSeeding::Process ( PHCompositeNode topNode)
overrideprotectedvirtual

process event interface for trackers, called in process_event. implemented in derived classes

Implements PHTrackSeeding.

Definition at line 76 of file PHSiliconTruthTrackSeeding.cc.

View newest version in sPHENIX GitHub at line 76 of file PHSiliconTruthTrackSeeding.cc

References PHTrackSeeding::_assoc_container, PHTrackSeeding::_cluster_map, _g4truth_container, PHTrackSeeding::_hitsets, _min_clusters_per_track, _min_momentum, PHTrackSeeding::_track_map, PHTrackSeeding::_vertex_map, SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), clusterhitassoc, SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), Fun4AllReturnCodes::EVENT_OK, exit(), TrkrClusterContainer::findCluster(), PHG4HitContainer::findHit(), SvtxVertexMap::get(), SvtxTrack::get_id(), PHG4Particle::get_pid(), SvtxTrack::get_pt(), PHG4Particle::get_px(), SvtxTrack::get_px(), PHG4Particle::get_py(), SvtxTrack::get_py(), PHG4Particle::get_pz(), SvtxTrack::get_pz(), PHG4Hit::get_trkid(), SvtxTrack::get_truth_track_id(), SvtxTrack::get_vertex_id(), PHG4Particle::get_vtx_id(), SvtxVertex::get_x(), SvtxTrack::get_x(), SvtxVertex::get_y(), SvtxTrack::get_y(), SvtxVertex::get_z(), SvtxTrack::get_z(), TrkrCluster::getClusKey(), TrkrClusterContainer::getClusters(), TrkrHitTruthAssoc::getG4Hits(), TrkrClusterHitAssoc::getHits(), TrkrDefs::getHitSetKeyFromClusKey(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetPrimaryVtxRange(), TrkrDefs::getTrkrId(), TrkrCluster::getX(), TrkrCluster::getY(), hittruthassoc, PHG4Particle::identify(), SvtxVertexMap::identify(), SvtxTrackMap::identify(), TrkrCluster::identify(), SvtxTrackMap::insert(), TrkrDefs::inttId, PHG4TruthInfoContainer::isEmbeded(), PHG4TruthInfoContainer::isEmbededVtx(), it, G4TTL::layer, TrkrDefs::mvtxId, particle, phg4hits_intt, phg4hits_mvtx, PHWHERE, G4BECAL::radius, AssocInfoContainer::SetClusterTrackAssoc(), SvtxTrackMap::size(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void PHSiliconTruthTrackSeeding::set_max_layer ( unsigned int  maxLayer)
inline

Definition at line 49 of file PHSiliconTruthTrackSeeding.h.

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

References _max_layer.

void PHSiliconTruthTrackSeeding::set_min_clusters_per_track ( unsigned int  minClustersPerTrack)
inline

Definition at line 39 of file PHSiliconTruthTrackSeeding.h.

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

References _min_clusters_per_track.

void PHSiliconTruthTrackSeeding::set_min_layer ( unsigned int  minLayer)
inline

Definition at line 44 of file PHSiliconTruthTrackSeeding.h.

View newest version in sPHENIX GitHub at line 44 of file PHSiliconTruthTrackSeeding.h

References _min_layer.

void PHSiliconTruthTrackSeeding::set_min_momentum ( double  m)
inline

minimal truth momentum cut

Definition at line 61 of file PHSiliconTruthTrackSeeding.h.

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

References _min_momentum, and Acts::UnitConstants::m.

int PHSiliconTruthTrackSeeding::Setup ( PHCompositeNode topNode)
overrideprotectedvirtual

setup interface for trackers, called in InitRun, setup things like pointers to nodes. overrided in derived classes

Reimplemented from PHTrackSeeding.

Definition at line 58 of file PHSiliconTruthTrackSeeding.cc.

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

References Fun4AllReturnCodes::EVENT_OK, PHTrackSeeding::set_track_map_name(), PHTrackSeeding::Setup(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Member Data Documentation

PHG4TruthInfoContainer* PHSiliconTruthTrackSeeding::_g4truth_container = nullptr
private

Definition at line 77 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes(), and Process().

unsigned int PHSiliconTruthTrackSeeding::_max_layer = 6
private

Definition at line 89 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by set_max_layer().

unsigned int PHSiliconTruthTrackSeeding::_min_clusters_per_track = 2
private

Definition at line 87 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by get_min_clusters_per_track(), Process(), and set_min_clusters_per_track().

unsigned int PHSiliconTruthTrackSeeding::_min_layer = 0
private

Definition at line 88 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by set_min_layer().

double PHSiliconTruthTrackSeeding::_min_momentum = 50e-3
private

minimal truth momentum cut (GeV)

Definition at line 92 of file PHSiliconTruthTrackSeeding.h.

View newest version in sPHENIX GitHub at line 92 of file PHSiliconTruthTrackSeeding.h

Referenced by get_min_momentum(), Process(), and set_min_momentum().

TrkrClusterHitAssoc* PHSiliconTruthTrackSeeding::clusterhitassoc = nullptr
private

Definition at line 85 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes(), and Process().

TrkrHitTruthAssoc* PHSiliconTruthTrackSeeding::hittruthassoc = nullptr
private

Definition at line 84 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes(), and Process().

PHG4HitContainer* PHSiliconTruthTrackSeeding::phg4hits_intt = nullptr
private

Definition at line 80 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes(), and Process().

PHG4HitContainer* PHSiliconTruthTrackSeeding::phg4hits_micromegas = nullptr
private

Definition at line 82 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes().

PHG4HitContainer* PHSiliconTruthTrackSeeding::phg4hits_mvtx = nullptr
private

Definition at line 81 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes(), and Process().

PHG4HitContainer* PHSiliconTruthTrackSeeding::phg4hits_tpc = nullptr
private

Definition at line 79 of file PHSiliconTruthTrackSeeding.h.

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

Referenced by GetNodes().


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