ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/trackreco/PHActsToSvtxTracks.h>
Public Member Functions | |
PHActsToSvtxTracks (const std::string &name="PHActsToSvtxTracks") | |
Default constructor and destructor. | |
~PHActsToSvtxTracks () override | |
int | End (PHCompositeNode *topNode) override |
Inherited SubsysReco functions. | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up after each event. | |
void | setSvtxTrackMapName (std::string &name) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
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 Member Functions | |
int | createNodes (PHCompositeNode *topNode) |
Create track seed node if it doesn't exist yet. | |
int | getNodes (PHCompositeNode *topNode) |
Get nodes off node tree needed to execute module. | |
void | createSvtxTrack (const unsigned int trackKey, Trajectory traj) |
Private Attributes | |
SvtxTrackMap * | m_svtxTrackMap = nullptr |
SvtxVertexMap * | m_svtxVertexMap = nullptr |
ActsTrackingGeometry * | m_tGeometry = nullptr |
std::map< const unsigned int, Trajectory > * | m_actsFitResults = nullptr |
std::string | m_svtxMapName = "SvtxTrackMap" |
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") | |
Definition at line 35 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 35 of file PHActsToSvtxTracks.h
PHActsToSvtxTracks::PHActsToSvtxTracks | ( | const std::string & | name = "PHActsToSvtxTracks" | ) |
Default constructor and destructor.
Fun4All includes.
Tracking includes std (and the like) includes
Definition at line 36 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 36 of file PHActsToSvtxTracks.cc
References Fun4AllBase::Verbosity().
|
inlineoverride |
Definition at line 40 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 40 of file PHActsToSvtxTracks.h
|
private |
Create track seed node if it doesn't exist yet.
Definition at line 181 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 181 of file PHActsToSvtxTracks.cc
References PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_svtxMapName, and m_svtxTrackMap.
Referenced by InitRun().
|
private |
Try to find the track first to update it. Otherwise, if it is a new map, create the track
For a track from the Acts KF, it has only one track tip
Units already considered in rotation
Definition at line 95 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 95 of file PHActsToSvtxTracks.cc
References SvtxTrack::clear_cluster_keys(), SvtxTrack::clear_states(), Acts::UnitConstants::cm, SvtxTrackMap::find(), SvtxVertexMap::find(), ActsTrackingGeometry::geoContext, SvtxTrack::get_vertex_id(), SvtxTrack::insert_state(), m_svtxTrackMap, m_svtxVertexMap, m_tGeometry, SvtxTrack::set_charge(), SvtxTrack::set_chisq(), SvtxTrack::set_dca3d_xy(), SvtxTrack::set_dca3d_xy_error(), SvtxTrack::set_dca3d_z(), SvtxTrack::set_dca3d_z_error(), SvtxTrack::set_error(), SvtxTrack::set_ndf(), SvtxTrack::set_px(), SvtxTrack::set_py(), SvtxTrack::set_pz(), SvtxTrackState_v1::set_x(), SvtxTrack::set_x(), SvtxTrackState_v1::set_y(), SvtxTrack::set_y(), SvtxTrackState_v1::set_z(), SvtxTrack::set_z(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
overridevirtual |
Inherited SubsysReco functions.
Reimplemented from SubsysReco.
Definition at line 43 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 43 of file PHActsToSvtxTracks.cc
References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
private |
Get nodes off node tree needed to execute module.
Definition at line 217 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 217 of file PHActsToSvtxTracks.cc
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_actsFitResults, m_svtxTrackMap, m_svtxVertexMap, m_tGeometry, and PHWHERE.
Referenced by InitRun().
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 54 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 54 of file PHActsToSvtxTracks.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 59 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 59 of file PHActsToSvtxTracks.cc
References Fun4AllReturnCodes::ABORTEVENT, createNodes(), Fun4AllReturnCodes::EVENT_OK, and getNodes().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 70 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 70 of file PHActsToSvtxTracks.cc
References createSvtxTrack(), Fun4AllReturnCodes::EVENT_OK, m_actsFitResults, and Fun4AllBase::Verbosity().
|
overridevirtual |
Clean up after each event.
Reimplemented from SubsysReco.
Definition at line 90 of file PHActsToSvtxTracks.cc.
View newest version in sPHENIX GitHub at line 90 of file PHActsToSvtxTracks.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 49 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 49 of file PHActsToSvtxTracks.h
References m_svtxMapName.
|
private |
Definition at line 65 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 65 of file PHActsToSvtxTracks.h
Referenced by getNodes(), and process_event().
|
private |
Definition at line 67 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 67 of file PHActsToSvtxTracks.h
Referenced by createNodes(), and setSvtxTrackMapName().
|
private |
Definition at line 62 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 62 of file PHActsToSvtxTracks.h
Referenced by createNodes(), createSvtxTrack(), and getNodes().
|
private |
Definition at line 63 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 63 of file PHActsToSvtxTracks.h
Referenced by createSvtxTrack(), and getNodes().
|
private |
Definition at line 64 of file PHActsToSvtxTracks.h.
View newest version in sPHENIX GitHub at line 64 of file PHActsToSvtxTracks.h
Referenced by createSvtxTrack(), and getNodes().