Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/trackreco/PHTpcDeltaZCorrection.h>
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 | |
PHParameterInterface & | operator= (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 | |
ActsGeometry * | m_tGeometry = nullptr |
Acts tracking geometry for surface lookup. | |
TrackSeedContainer * | m_track_map = nullptr |
track map | |
TrkrClusterContainer * | m_cluster_map = nullptr |
cluster map | |
std::set< TrkrDefs::cluskey > | m_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 () |
Definition at line 22 of file PHTpcDeltaZCorrection.h.
View newest version in sPHENIX GitHub at line 22 of file PHTpcDeltaZCorrection.h
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().
|
overridedefault |
destructor
|
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.
|
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().
|
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().
|
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().
|
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().
|
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().
|
overridevirtual |
Implements PHParameterInterface.
Definition at line 64 of file PHTpcDeltaZCorrection.cc.
View newest version in sPHENIX GitHub at line 64 of file PHTpcDeltaZCorrection.cc
|
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().
|
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().
|
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().
|
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().