ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Vertexing using truth info. More...
#include <coresoftware/blob/master/offline/packages/trackreco/PHTruthVertexing.h>
Public Member Functions | |
PHTruthVertexing (const std::string &name="PHTruthVertexing") | |
~PHTruthVertexing () override | |
void | set_vertex_error (const float &x_err, const float &y_err, const float &z_err) |
const std::vector< float > & | get_vertex_error () const |
void | associate_tracks (bool associate_tracks) |
void | set_embed_only (bool embed_only) |
void | set_track_map_name (std::string &name) |
Public Member Functions inherited from PHInitVertexing | |
PHInitVertexing (const std::string &name="PHInitVertexing") | |
~PHInitVertexing () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) 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. | |
Protected Member Functions | |
int | Setup (PHCompositeNode *topNode) override |
int | Process (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *) override |
Called at the end of all processing. | |
Private Member Functions | |
int | GetNodes (PHCompositeNode *topNode) |
fetch node pointers | |
void | assignTracksVertices (PHCompositeNode *topNode) |
Private Attributes | |
PHG4TruthInfoContainer * | _g4truth_container |
std::vector< float > | _vertex_error |
manually assigned vertex error (standard dev), cm | |
bool | _embed_only |
bool | _associate_tracks = false |
std::string | _track_map_name = "SvtxTrackMap" |
gsl_rng * | m_RandomGenerator |
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 PHInitVertexing | |
TrkrClusterContainer * | _cluster_map |
TrkrHitSetContainer * | _hitsets |
SvtxVertexMap * | _vertex_map |
Vertexing using truth info.
Definition at line 28 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 28 of file PHTruthVertexing.h
PHTruthVertexing::PHTruthVertexing | ( | const std::string & | name = "PHTruthVertexing" | ) |
Definition at line 29 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 29 of file PHTruthVertexing.cc
|
override |
Definition at line 45 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 45 of file PHTruthVertexing.cc
References m_RandomGenerator.
|
private |
Definition at line 137 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 137 of file PHTruthVertexing.cc
References _track_map_name, PHInitVertexing::_vertex_map, SvtxTrackMap::begin(), SvtxVertexMap::begin(), dz, SvtxTrackMap::end(), SvtxVertexMap::end(), SvtxVertexMap::find(), PHWHERE, track, and Fun4AllBase::Verbosity().
Referenced by Process().
|
inline |
Definition at line 46 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 46 of file PHTruthVertexing.h
References _associate_tracks.
|
overrideprotectedvirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 202 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 202 of file PHTruthVertexing.cc
References Fun4AllReturnCodes::EVENT_OK.
|
inline |
Definition at line 42 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 42 of file PHTruthVertexing.h
References _vertex_error.
|
private |
fetch node pointers
Definition at line 191 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 191 of file PHTruthVertexing.cc
References _g4truth_container, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, and PHWHERE.
Referenced by Setup().
|
overrideprotectedvirtual |
process event interface for trackers, called in process_event. implemented in derived classes
Implements PHInitVertexing.
Definition at line 60 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 60 of file PHTruthVertexing.cc
References _associate_tracks, _g4truth_container, _vertex_error, PHInitVertexing::_vertex_map, assignTracksVertices(), Fun4AllReturnCodes::EVENT_OK, PHG4TruthInfoContainer::GetPrimaryVtxRange(), SvtxVertexMap::identify(), SvtxVertexMap::insert(), PHG4TruthInfoContainer::isEmbededVtx(), m_RandomGenerator, pos(), SvtxVertex::set_chisq(), SvtxVertex::set_error(), SvtxVertex::set_id(), SvtxVertex::set_ndof(), SvtxVertex::set_t0(), SvtxVertex::set_x(), SvtxVertex::set_y(), SvtxVertex::set_z(), and Fun4AllBase::Verbosity().
|
inline |
Definition at line 50 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 50 of file PHTruthVertexing.h
References _embed_only.
|
inline |
Definition at line 54 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 54 of file PHTruthVertexing.h
References _track_map_name.
|
inline |
Definition at line 34 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 34 of file PHTruthVertexing.h
References _vertex_error.
|
overrideprotectedvirtual |
setup interface for trackers, called in InitRun, setup things like pointers to nodes. overrided in derived classes
Reimplemented from PHInitVertexing.
Definition at line 49 of file PHTruthVertexing.cc.
View newest version in sPHENIX GitHub at line 49 of file PHTruthVertexing.cc
References Fun4AllReturnCodes::EVENT_OK, GetNodes(), and PHInitVertexing::Setup().
|
private |
Definition at line 76 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 76 of file PHTruthVertexing.h
Referenced by associate_tracks(), and Process().
|
private |
Definition at line 75 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 75 of file PHTruthVertexing.h
Referenced by set_embed_only().
|
private |
Definition at line 70 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 70 of file PHTruthVertexing.h
Referenced by GetNodes(), and Process().
|
private |
Definition at line 77 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 77 of file PHTruthVertexing.h
Referenced by assignTracksVertices(), and set_track_map_name().
|
private |
manually assigned vertex error (standard dev), cm
Definition at line 73 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 73 of file PHTruthVertexing.h
Referenced by get_vertex_error(), Process(), and set_vertex_error().
|
private |
Definition at line 78 of file PHTruthVertexing.h.
View newest version in sPHENIX GitHub at line 78 of file PHTruthVertexing.h
Referenced by Process(), and ~PHTruthVertexing().