Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/simulation/g4simulation/g4trackfastsim/PHG4TrackFastSimEval.h>
Public Member Functions | |
PHG4TrackFastSimEval (const std::string &name="PHG4TrackFastSimEval", const std::string &filename="g4eval.root", const std::string &trackmapname="SvtxTrackMap") | |
int | Init (PHCompositeNode *) override |
int | InitRun (PHCompositeNode *) override |
int | process_event (PHCompositeNode *) override |
int | End (PHCompositeNode *) override |
Called at the end of all processing. | |
void | set_filename (const std::string &file) |
void | set_trackmapname (const std::string &name) |
void | reset_variables () |
void | AddProjection (const 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. | |
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. | |
Private Member Functions | |
void | fill_track_tree (PHCompositeNode *) |
void | fill_vertex_tree (PHCompositeNode *) |
int | GetNodes (PHCompositeNode *) |
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") | |
Definition at line 28 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 28 of file PHG4TrackFastSimEval.h
PHG4TrackFastSimEval::PHG4TrackFastSimEval | ( | const std::string & | name = "PHG4TrackFastSimEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
Definition at line 55 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 55 of file PHG4TrackFastSimEval.cc
References reset_variables().
void PHG4TrackFastSimEval::AddProjection | ( | const std::string & | name | ) |
Definition at line 622 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 622 of file PHG4TrackFastSimEval.cc
References m_ProjectionNameMap, m_TTree_proj_p_vec, m_TTree_proj_vec, m_TTree_ref_p_vec, and m_TTree_ref_vec.
Referenced by Fun4All_G4_Momentum_Projection(), Fun4All_G4_Momentum_Projection_Calorimeters(), and Fun4All_G4_Momentum_Projection_Detectors().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 249 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 249 of file PHG4TrackFastSimEval.cc
References PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_H2D_DeltaMomVsTruthEta, m_H2D_DeltaMomVsTruthMom, m_OutFileName, m_TracksEvalTree, and m_VertexEvalTree.
|
private |
Definition at line 268 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 268 of file PHG4TrackFastSimEval.cc
References assert, SvtxTrackMap::begin(), SvtxTrack_v1::begin_states(), SvtxTrackMap::end(), SvtxTrack_v1::end_states(), SvtxTrack::g4hit_ids(), SvtxTrack_v1::get_charge(), SvtxTrack_v1::get_dca2d(), SvtxTrack_v1::get_id(), PHG4Particle::get_pid(), PHG4Particle::get_px(), SvtxTrack_v1::get_px(), PHG4Particle::get_py(), SvtxTrack_v1::get_py(), PHG4Particle::get_pz(), SvtxTrack_v1::get_pz(), PHG4VtxPoint::get_t(), PHG4Particle::get_track_id(), SvtxTrack_FastSim::get_truth_track_id(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), SvtxTrack_v1::get_x(), PHG4VtxPoint::get_y(), SvtxTrack_v1::get_y(), PHG4VtxPoint::get_z(), SvtxTrack_v1::get_z(), PHG4HitContainer::getHits(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetVtx(), i, SvtxTrack_FastSim::identify(), LogDebug, LogError, m_EventCounter, m_H2D_DeltaMomVsTruthEta, m_H2D_DeltaMomVsTruthMom, m_ProjectionNameMap, m_TrackMap, m_TracksEvalTree, m_TruthInfoContainer, m_TTree_Charge, m_TTree_dca2d, m_TTree_Event, m_TTree_gFlavor, m_TTree_gpx, m_TTree_gpy, m_TTree_gpz, m_TTree_gTrackID, m_TTree_gvt, m_TTree_gvx, m_TTree_gvy, m_TTree_gvz, m_TTree_HitContainerID_nHits_map, m_TTree_nHits, m_TTree_pcax, m_TTree_pcay, m_TTree_pcaz, m_TTree_proj_p_vec, m_TTree_proj_vec, m_TTree_px, m_TTree_py, m_TTree_pz, m_TTree_ref_p_vec, m_TTree_ref_vec, m_TTree_TrackID, reset_variables(), SvtxTrackMap::size(), PHG4HitContainer::size(), SvtxTrack_v1::size_clusters(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 443 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 443 of file PHG4TrackFastSimEval.cc
References assert, SvtxVertexMap::begin(), SvtxVertex::begin_tracks(), SvtxTrackMap::end(), SvtxVertexMap::end(), SvtxVertex::end_tracks(), SvtxTrackMap::find(), SvtxVertex::get_error(), SvtxVertex::get_id(), SvtxTrack_FastSim::get_truth_track_id(), PHG4Particle::get_vtx_id(), SvtxVertex::get_x(), SvtxVertex::get_y(), SvtxVertex::get_z(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetVtx(), LogDebug, LogError, m_EventCounter, m_TrackMap, m_TruthInfoContainer, m_TTree_DeltaVx, m_TTree_DeltaVy, m_TTree_DeltaVz, m_TTree_Event, m_TTree_gTrackID, m_TTree_gvt, m_TTree_gvx, m_TTree_gvy, m_TTree_gvz, m_TTree_nFromTruth, m_TTree_nTracks, m_TTree_TrackID, m_TTree_vx, m_TTree_vy, m_TTree_vz, m_VertexEvalTree, m_VertexMap, reset_variables(), and SvtxVertex::size_tracks().
Referenced by process_event().
|
private |
Definition at line 587 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 587 of file PHG4TrackFastSimEval.cc
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_EventCounter, m_TrackMap, m_TrackMapName, m_TruthInfoContainer, m_VertexMap, PHWHERE, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
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 75 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 75 of file PHG4TrackFastSimEval.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 84 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 84 of file PHG4TrackFastSimEval.cc
References Fun4AllReturnCodes::EVENT_OK, PHParameters::FillFrom(), PHTFileServer::get(), PHParameters::get_all_int_params(), i, m_H2D_DeltaMomVsTruthEta, m_H2D_DeltaMomVsTruthMom, m_OutFileName, m_ProjectionNameMap, m_TracksEvalTree, m_TTree_Charge, m_TTree_dca2d, m_TTree_DeltaVx, m_TTree_DeltaVy, m_TTree_DeltaVz, m_TTree_Event, m_TTree_gFlavor, m_TTree_gpx, m_TTree_gpy, m_TTree_gpz, m_TTree_gTrackID, m_TTree_gvt, m_TTree_gvx, m_TTree_gvy, m_TTree_gvz, m_TTree_HitContainerID_nHits_map, m_TTree_nFromTruth, m_TTree_nHits, m_TTree_nTracks, m_TTree_pcax, m_TTree_pcay, m_TTree_pcaz, m_TTree_proj_p_vec, m_TTree_proj_vec, m_TTree_px, m_TTree_py, m_TTree_pz, m_TTree_ref_p_vec, m_TTree_ref_vec, m_TTree_TrackID, m_TTree_vx, m_TTree_vy, m_TTree_vz, m_VertexEvalTree, PHTFileServer::open(), PHWHERE, PHParameters::Print(), Fun4AllBase::Verbosity(), and xyzt.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 228 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 228 of file PHG4TrackFastSimEval.cc
References Fun4AllReturnCodes::EVENT_OK, fill_track_tree(), fill_vertex_tree(), GetNodes(), m_EventCounter, PHWHERE, and Fun4AllBase::Verbosity().
void PHG4TrackFastSimEval::reset_variables | ( | ) |
Definition at line 540 of file PHG4TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 540 of file PHG4TrackFastSimEval.cc
References m_TTree_Charge, m_TTree_dca2d, m_TTree_DeltaVx, m_TTree_DeltaVy, m_TTree_DeltaVz, m_TTree_Event, m_TTree_gFlavor, m_TTree_gpx, m_TTree_gpy, m_TTree_gpz, m_TTree_gTrackID, m_TTree_gvt, m_TTree_gvx, m_TTree_gvy, m_TTree_gvz, m_TTree_HitContainerID_nHits_map, m_TTree_nFromTruth, m_TTree_nHits, m_TTree_nTracks, m_TTree_pcax, m_TTree_pcay, m_TTree_pcaz, m_TTree_proj_p_vec, m_TTree_proj_vec, m_TTree_px, m_TTree_py, m_TTree_pz, m_TTree_ref_p_vec, m_TTree_ref_vec, m_TTree_TrackID, m_TTree_vx, m_TTree_vy, and m_TTree_vz.
Referenced by fill_track_tree(), fill_vertex_tree(), and PHG4TrackFastSimEval().
|
inline |
Definition at line 49 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 49 of file PHG4TrackFastSimEval.h
References file, and m_OutFileName.
Referenced by Fun4All_G4_Momentum(), Fun4All_G4_Momentum_Projection(), Fun4All_G4_Momentum_Projection_Calorimeters(), and Fun4All_G4_Momentum_Projection_Detectors().
|
inline |
Definition at line 55 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4TrackFastSimEval.h
References m_TrackMapName, and perf_headwind::name.
|
private |
Definition at line 86 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 86 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), GetNodes(), and process_event().
|
private |
Definition at line 83 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 83 of file PHG4TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 82 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 82 of file PHG4TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 126 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 126 of file PHG4TrackFastSimEval.h
Referenced by End(), InitRun(), and set_filename().
|
private |
Definition at line 132 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 132 of file PHG4TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), and InitRun().
|
private |
Definition at line 74 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 74 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and GetNodes().
|
private |
Definition at line 129 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 129 of file PHG4TrackFastSimEval.h
Referenced by GetNodes(), and set_trackmapname().
|
private |
Definition at line 78 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 78 of file PHG4TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 73 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 73 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and GetNodes().
|
private |
Definition at line 103 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 103 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 111 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 111 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 119 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 119 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 120 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 120 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 121 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 121 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 89 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 89 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 92 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 92 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 93 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 93 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 94 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 94 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 95 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 95 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 91 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 91 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 99 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 99 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 96 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 96 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 97 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 97 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 98 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 98 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 113 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 113 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 123 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 123 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 104 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 104 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 122 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 122 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 108 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 108 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 109 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 109 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 110 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 110 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 135 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 135 of file PHG4TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 134 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 134 of file PHG4TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 105 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 105 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 106 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 106 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 107 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 107 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 138 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 138 of file PHG4TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 137 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 137 of file PHG4TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 102 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 102 of file PHG4TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 116 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 116 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 117 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 117 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 118 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 118 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 79 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 79 of file PHG4TrackFastSimEval.h
Referenced by End(), fill_vertex_tree(), and InitRun().
|
private |
Definition at line 75 of file PHG4TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 75 of file PHG4TrackFastSimEval.h
Referenced by fill_vertex_tree(), and GetNodes().