EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicToyModel/blob/master/fun4all_with_eicroot/sandbox/TrackFastSimEval.h>
Public Types | |
enum | Flag { NONE = 0, NONE = 0 } |
enum | Flag { NONE = 0, NONE = 0 } |
Public Member Functions | |
TrackFastSimEval (const std::string &name="TrackFastSimEval", const std::string &filename="g4eval.root", const std::string &trackmapname="SvtxTrackMap") | |
int | Init (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
TrackFastSimEval (const std::string &name="TrackFastSimEval", const std::string &filename="g4eval.root", const std::string &trackmapname="SvtxTrackMap") | |
int | Init (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
void | set_flag (const Flag &flag, const bool &value) |
void | reset_variables () |
void | AddProjection (const std::string &name) |
TrackFastSimEval (const std::string &name="TrackFastSimEval", const std::string &filename="g4eval.root", const std::string &trackmapname="SvtxTrackMap") | |
int | Init (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
void | set_flag (const Flag &flag, const bool &value) |
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 | InitRun (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. | |
Private Member Functions | |
void | fill_track_tree (PHCompositeNode *) |
void | fill_vertex_tree (PHCompositeNode *) |
int | GetNodes (PHCompositeNode *) |
void | fill_track_tree (PHCompositeNode *) |
void | fill_vertex_tree (PHCompositeNode *) |
int | GetNodes (PHCompositeNode *) |
Private Attributes | |
std::string | _outfile_name |
std::string | _trackmapname |
int | _event |
TH1D * | _h1d_Delta_mom |
unsigned int | _flags |
TTree * | _eval_tree_tracks |
TTree * | _eval_tree_vertex |
int | event |
int | gtrackID |
int | gflavor |
float | gpx |
float | gpy |
float | gpz |
float | gvx |
float | gvy |
float | gvz |
float | gvt |
int | trackID |
int | charge |
int | nhits |
float | px |
float | py |
float | pz |
float | pcax |
float | pcay |
float | pcaz |
float | dca2d |
float | proj [3][nproj] |
float | proj_p [3][nproj] |
float | ref [3][nproj] |
float | ref_p [3][nproj] |
float | vx |
float | vy |
float | vz |
float | deltavx |
float | deltavy |
float | deltavz |
int | ntracks |
int | n_from_truth |
TH2D * | _h2d_Delta_mom_vs_truth_mom |
TH2D * | _h2d_Delta_mom_vs_truth_eta |
PHG4TruthInfoContainer * | _truth_container |
SvtxTrackMap * | _trackmap |
SvtxVertexMap * | _vertexmap |
std::map< std::string, int > | m_ProjectionNameMap |
Static Private Attributes | |
static const int | nproj = 3 |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 13 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 13 of file TrackFastSimEval.h
Definition at line 45 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 45 of file TrackFastSimEval.h
Definition at line 45 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 45 of file TrackFastSimEval.h
TrackFastSimEval::TrackFastSimEval | ( | const std::string & | name = "TrackFastSimEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
Definition at line 25 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 25 of file TrackFastSimEval.cc
TrackFastSimEval::TrackFastSimEval | ( | const std::string & | name = "TrackFastSimEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
TrackFastSimEval::TrackFastSimEval | ( | const std::string & | name = "TrackFastSimEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
void TrackFastSimEval::AddProjection | ( | const std::string & | name | ) |
Definition at line 534 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 534 of file TrackFastSimEval.cc
References m_ProjectionNameMap.
Referenced by Fun4All_G4_FastMom(), Fun4All_G4_FastMom_GEM(), and Fun4All_G4_FastMom_GEM_RICH().
void TrackFastSimEval::AddProjection | ( | const std::string & | name | ) |
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 94 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 94 of file TrackFastSimEval.cc
References _h1d_Delta_mom, _outfile_name, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, and PHTFileServer::get().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
|
private |
|
private |
Definition at line 192 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 192 of file TrackFastSimEval.cc
References _eval_tree_tracks, _event, _h2d_Delta_mom_vs_truth_eta, _h2d_Delta_mom_vs_truth_mom, _trackmap, _truth_container, SvtxTrackMap::begin(), SvtxTrack_v1::begin_states(), charge, dca2d, SvtxTrackMap::end(), SvtxTrack_v1::end_states(), 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(), gflavor, gpx, gpy, gpz, gtrackID, gvt, gvx, gvy, gvz, k, LogError, m_ProjectionNameMap, nhits, nproj, pcax, pcay, pcaz, proj, proj_p, px, py, pz, ref, ref_p, reset_variables(), SvtxTrack_v1::size_clusters(), trackID, and vtx().
|
private |
|
private |
Definition at line 361 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 361 of file TrackFastSimEval.cc
References _eval_tree_vertex, _event, _trackmap, _truth_container, _vertexmap, SvtxVertexMap::begin(), SvtxVertex::begin_tracks(), deltavx, deltavy, deltavz, 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(), gtrackID, gvt, gvx, gvy, gvz, LogError, n_from_truth, ntracks, reset_variables(), SvtxVertex::size_tracks(), trackID, vtx(), vx, vy, and vz.
|
private |
|
private |
Definition at line 499 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 499 of file TrackFastSimEval.cc
References _event, _trackmap, _trackmapname, _truth_container, _vertexmap, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, PHWHERE, and Fun4AllBase::Verbosity().
|
virtual |
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 37 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 37 of file TrackFastSimEval.cc
References _h1d_Delta_mom, _outfile_name, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), PHTFileServer::open(), and PHWHERE.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 49 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 49 of file TrackFastSimEval.cc
References _event, _h1d_Delta_mom, _trackmap, _trackmapname, _truth_container, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, PHG4TruthInfoContainer::GetPrimaryParticleRange(), and PHWHERE.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
void TrackFastSimEval::reset_variables | ( | ) |
void TrackFastSimEval::reset_variables | ( | ) |
Definition at line 457 of file TrackFastSimEval.cc.
View newest version in sPHENIX GitHub at line 457 of file TrackFastSimEval.cc
References charge, dca2d, deltavx, deltavy, deltavz, gflavor, gpx, gpy, gpz, gtrackID, gvt, gvx, gvy, gvz, n_from_truth, nhits, ntracks, pcax, pcay, pcaz, px, py, pz, trackID, vx, vy, and vz.
Referenced by fill_track_tree(), and fill_vertex_tree().
|
inline |
Definition at line 30 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 30 of file TrackFastSimEval.h
References _outfile_name, and eicpy.qaplots::file.
Referenced by Fun4All_G4_FastMom(), Fun4All_G4_FastMom_GEM(), and Fun4All_G4_FastMom_GEM_RICH().
|
inline |
Definition at line 39 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 39 of file TrackFastSimEval.h
References _outfile_name, and eicpy.qaplots::file.
|
inline |
Definition at line 39 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 39 of file TrackFastSimEval.h
References _outfile_name, and eicpy.qaplots::file.
|
inline |
Definition at line 53 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 53 of file TrackFastSimEval.h
References _flags.
|
inline |
Definition at line 53 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 53 of file TrackFastSimEval.h
References _flags.
|
private |
Definition at line 85 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 85 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 86 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 86 of file TrackFastSimEval.h
Referenced by fill_vertex_tree().
|
private |
Definition at line 40 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 40 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), GetNodes(), and process_event().
|
private |
Definition at line 82 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 82 of file TrackFastSimEval.h
Referenced by set_flag().
|
private |
Definition at line 43 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 43 of file TrackFastSimEval.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 131 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 131 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 130 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 130 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 30 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 30 of file TrackFastSimEval.h
Referenced by End(), Init(), and set_filename().
|
private |
Definition at line 135 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 135 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), GetNodes(), and process_event().
|
private |
Definition at line 37 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 37 of file TrackFastSimEval.h
Referenced by GetNodes(), and process_event().
|
private |
Definition at line 134 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 134 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), GetNodes(), and process_event().
|
private |
Definition at line 136 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 136 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and GetNodes().
|
private |
Definition at line 101 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 101 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 109 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 109 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 123 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 123 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 124 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 124 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 125 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 125 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 87 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 87 of file TrackFastSimEval.h
|
private |
Definition at line 90 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 90 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 91 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 91 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 92 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 92 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 93 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 93 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 89 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 89 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 97 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 97 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 94 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 94 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 95 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 95 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 96 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 96 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 138 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 138 of file TrackFastSimEval.h
Referenced by AddProjection(), and fill_track_tree().
|
private |
Definition at line 127 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 127 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 102 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 102 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
staticprivate |
Definition at line 111 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 111 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 126 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 126 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 106 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 106 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 107 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 107 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 108 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 108 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 113 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 113 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 114 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 114 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 103 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 103 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 104 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 104 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 105 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 105 of file TrackFastSimEval.h
Referenced by fill_track_tree(), and reset_variables().
|
private |
Definition at line 116 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 116 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 117 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 117 of file TrackFastSimEval.h
Referenced by fill_track_tree().
|
private |
Definition at line 100 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 100 of file TrackFastSimEval.h
Referenced by fill_track_tree(), fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 120 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 120 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 121 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 121 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().
|
private |
Definition at line 122 of file TrackFastSimEval.h.
View newest version in sPHENIX GitHub at line 122 of file TrackFastSimEval.h
Referenced by fill_vertex_tree(), and reset_variables().