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

#include <coresoftware/blob/master/offline/packages/trackreco/PHTpcDeltaZCorrection.h>

+ Inheritance diagram for PHTpcDeltaZCorrection:
+ Collaboration diagram for PHTpcDeltaZCorrection:

Public Member Functions

 PHTpcDeltaZCorrection (const std::string &name="PHTpcDeltaZCorrection")
 constructor
 
 ~PHTpcDeltaZCorrection () override=default
 destructor
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void SetDefaultParameters () override
 
- 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.
 
- 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
 

Private Member Functions

int load_nodes (PHCompositeNode *)
 load nodes
 
void process_tracks ()
 process tracks
 
void process_track (unsigned int, TrackSeed *)
 process track
 

Private Attributes

ActsGeometrym_tGeometry = nullptr
 Acts tracking geometry for surface lookup.
 
TrackSeedContainerm_track_map = nullptr
 track map
 
TrkrClusterContainerm_cluster_map = nullptr
 cluster map
 
std::set< TrkrDefs::cluskeym_corrected_clusters
 list of corrected cluster keys
 

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 22 of file PHTpcDeltaZCorrection.h.

View newest version in sPHENIX GitHub at line 22 of file PHTpcDeltaZCorrection.h

Constructor & Destructor Documentation

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

constructor

Definition at line 35 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 35 of file PHTpcDeltaZCorrection.cc

References PHParameterInterface::InitializeParameters().

+ Here is the call graph for this function:

PHTpcDeltaZCorrection::~PHTpcDeltaZCorrection ( )
overridedefault

destructor

Member Function Documentation

int PHTpcDeltaZCorrection::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 60 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 60 of file PHTpcDeltaZCorrection.cc

References Fun4AllReturnCodes::EVENT_OK.

int PHTpcDeltaZCorrection::InitRun ( PHCompositeNode )
overridevirtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 42 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 42 of file PHTpcDeltaZCorrection.cc

References Fun4AllReturnCodes::EVENT_OK, and PHParameterInterface::UpdateParametersWithMacro().

+ Here is the call graph for this function:

int PHTpcDeltaZCorrection::load_nodes ( PHCompositeNode topNode)
private

load nodes

Definition at line 74 of file PHTpcDeltaZCorrection.cc.

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

References assert, Fun4AllReturnCodes::EVENT_OK, m_cluster_map, m_tGeometry, m_track_map, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHTpcDeltaZCorrection::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 49 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 49 of file PHTpcDeltaZCorrection.cc

References Fun4AllReturnCodes::EVENT_OK, load_nodes(), and process_tracks().

+ Here is the call graph for this function:

void PHTpcDeltaZCorrection::process_track ( unsigned int  key,
TrackSeed track 
)
private

process track

Definition at line 114 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 114 of file PHTpcDeltaZCorrection.cc

References TrackSeed::begin_cluster_keys(), delta_phi(), TrackSeed::end_cluster_keys(), TrkrClusterContainer::findCluster(), TrackSeed::get_charge(), TrackSeed::get_qOverR(), TrackSeed::get_x(), TrackSeed::get_X0(), TrackSeed::get_y(), TrackSeed::get_Y0(), TrackSeed::get_z(), ActsGeometry::getGlobalPosition(), TrkrDefs::getTrkrId(), m_cluster_map, m_corrected_clusters, m_tGeometry, Acts::Test::origin(), square(), TrkrDefs::tpcId, and Fun4AllBase::Verbosity().

Referenced by process_tracks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHTpcDeltaZCorrection::process_tracks ( )
private

process tracks

Definition at line 99 of file PHTpcDeltaZCorrection.cc.

View newest version in sPHENIX GitHub at line 99 of file PHTpcDeltaZCorrection.cc

References TrackSeedContainer::get(), m_cluster_map, m_corrected_clusters, m_track_map, process_track(), seed, and TrackSeedContainer::size().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHTpcDeltaZCorrection::SetDefaultParameters ( )
overridevirtual

Implements PHParameterInterface.

Definition at line 64 of file PHTpcDeltaZCorrection.cc.

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

Member Data Documentation

TrkrClusterContainer* PHTpcDeltaZCorrection::m_cluster_map = nullptr
private

cluster map

Definition at line 55 of file PHTpcDeltaZCorrection.h.

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

Referenced by load_nodes(), process_track(), and process_tracks().

std::set<TrkrDefs::cluskey> PHTpcDeltaZCorrection::m_corrected_clusters
private

list of corrected cluster keys

needed to prevent clusters to be corrected twice, when same cluster is used for two different tracks

Definition at line 59 of file PHTpcDeltaZCorrection.h.

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

Referenced by process_track(), and process_tracks().

ActsGeometry* PHTpcDeltaZCorrection::m_tGeometry = nullptr
private

Acts tracking geometry for surface lookup.

Definition at line 49 of file PHTpcDeltaZCorrection.h.

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

Referenced by load_nodes(), and process_track().

TrackSeedContainer* PHTpcDeltaZCorrection::m_track_map = nullptr
private

track map

Definition at line 52 of file PHTpcDeltaZCorrection.h.

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

Referenced by load_nodes(), and process_tracks().


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