EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4b0/B0TrackFastSimEval.h>
Public Member Functions | |
B0TrackFastSimEval (const std::string &name="B0TrackFastSimEval", 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 = INT_MAX - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 27 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 27 of file B0TrackFastSimEval.h
B0TrackFastSimEval::B0TrackFastSimEval | ( | const std::string & | name = "B0TrackFastSimEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
Definition at line 52 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 52 of file B0TrackFastSimEval.cc
void B0TrackFastSimEval::AddProjection | ( | const std::string & | name | ) |
Definition at line 657 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 657 of file B0TrackFastSimEval.cc
References m_ProjectionNameMap, m_TTree_proj_p_vec, m_TTree_proj_vec, m_TTree_ref_p_vec, m_TTree_ref_vec, and Fun4AllBase::Verbosity().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 276 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 276 of file B0TrackFastSimEval.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 295 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 295 of file B0TrackFastSimEval.cc
References 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(), 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_layer, 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(), Fun4AllBase::Verbosity(), and vtx().
Referenced by process_event().
|
private |
Definition at line 478 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 478 of file B0TrackFastSimEval.cc
References 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(), SvtxVertex::size_tracks(), and vtx().
Referenced by process_event().
|
private |
Definition at line 622 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 622 of file B0TrackFastSimEval.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 101 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 101 of file B0TrackFastSimEval.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 110 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 110 of file B0TrackFastSimEval.cc
References Fun4AllReturnCodes::EVENT_OK, PHParameters::FillFrom(), PHTFileServer::get(), PHParameters::get_all_int_params(), 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_layer, 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 255 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 255 of file B0TrackFastSimEval.cc
References Fun4AllReturnCodes::EVENT_OK, fill_track_tree(), fill_vertex_tree(), GetNodes(), m_EventCounter, PHWHERE, and Fun4AllBase::Verbosity().
void B0TrackFastSimEval::reset_variables | ( | ) |
Definition at line 575 of file B0TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 575 of file B0TrackFastSimEval.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(), and fill_vertex_tree().
|
inline |
Definition at line 48 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 48 of file B0TrackFastSimEval.h
References eicpy.qaplots::file, and m_OutFileName.
|
inline |
Definition at line 54 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 54 of file B0TrackFastSimEval.h
References m_TrackMapName, and name.
|
private |
Definition at line 85 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 85 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), GetNodes(), and process_event().
|
private |
Definition at line 82 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 82 of file B0TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 81 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 81 of file B0TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 126 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 126 of file B0TrackFastSimEval.h
Referenced by End(), InitRun(), and set_filename().
|
private |
Definition at line 132 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 132 of file B0TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), and InitRun().
|
private |
Definition at line 73 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 73 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and GetNodes().
|
private |
Definition at line 129 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 129 of file B0TrackFastSimEval.h
Referenced by GetNodes(), and set_trackmapname().
|
private |
Definition at line 77 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 77 of file B0TrackFastSimEval.h
Referenced by End(), fill_track_tree(), and InitRun().
|
private |
Definition at line 72 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 72 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and GetNodes().
|
private |
Definition at line 102 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 102 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 110 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 110 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 119 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 119 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 120 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 120 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 121 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 121 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 88 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 88 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 91 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 91 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 92 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 92 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 93 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 93 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 94 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 94 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 90 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 90 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 98 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 98 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 95 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 95 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 96 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 96 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 97 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 97 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 113 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 113 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 111 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 111 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), and InitRun().
|
private |
Definition at line 123 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 123 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 103 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 103 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 122 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 122 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 107 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 107 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 108 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 108 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 109 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 109 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 135 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 135 of file B0TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 134 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 134 of file B0TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 104 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 104 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 105 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 105 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 106 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 106 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 138 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 138 of file B0TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 137 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 137 of file B0TrackFastSimEval.h
Referenced by AddProjection(), fill_track_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 101 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 101 of file B0TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 116 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 116 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 117 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 117 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 118 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 118 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), InitRun(), and reset_variables().
|
private |
Definition at line 78 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 78 of file B0TrackFastSimEval.h
Referenced by End(), fill_vertex_tree(), and InitRun().
|
private |
Definition at line 74 of file B0TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 74 of file B0TrackFastSimEval.h
Referenced by fill_vertex_tree(), and GetNodes().