Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/Tracking/FastTrackingEval/FastTrackingEval.h>
Public Types | |
enum | Flag { NONE = 0 } |
Public Member Functions | |
FastTrackingEval (const std::string &name="FastTrackingEval", 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 | fill_tree (PHCompositeNode *) |
void | reset_variables () |
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 | |
int | GetNodes (PHCompositeNode *) |
Private Attributes | |
std::string | _outfile_name |
std::string | _trackmapname |
int | _event |
unsigned int | _flags |
TTree * | _eval_tree_tracks |
int | event |
int | gtrackID |
int | gflavor |
float | gpx |
float | gpy |
float | gpz |
float | gpt |
float | gp |
float | gtheta |
float | geta |
float | gphi |
float | gvx |
float | gvy |
float | gvz |
int | trackID |
int | charge |
int | nhits |
float | px |
float | py |
float | pz |
float | pt |
float | p |
float | theta |
float | eta |
float | phi |
float | dca2d |
TH2D * | _h2d_Delta_mom_vs_truth_mom |
TH2D * | _h2d_Delta_mom_vs_truth_eta |
PHG4TruthInfoContainer * | _truth_container |
SvtxTrackMap * | _trackmap |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 25 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 25 of file FastTrackingEval.h
Definition at line 47 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 47 of file FastTrackingEval.h
FastTrackingEval::FastTrackingEval | ( | const std::string & | name = "FastTrackingEval" , |
const std::string & | filename = "g4eval.root" , |
||
const std::string & | trackmapname = "SvtxTrackMap" |
||
) |
Definition at line 68 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 68 of file FastTrackingEval.cc
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 150 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 150 of file FastTrackingEval.cc
References _eval_tree_tracks, _h2d_Delta_mom_vs_truth_eta, _h2d_Delta_mom_vs_truth_mom, _outfile_name, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, and PHTFileServer::get().
void FastTrackingEval::fill_tree | ( | PHCompositeNode * | topNode | ) |
Definition at line 168 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 168 of file FastTrackingEval.cc
References _eval_tree_tracks, _event, _h2d_Delta_mom_vs_truth_eta, _h2d_Delta_mom_vs_truth_mom, _trackmap, _truth_container, SvtxTrackMap::begin(), charge, dca2d, SvtxTrackMap::end(), eta, 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(), PHG4Particle::get_track_id(), SvtxTrack_FastSim::get_truth_track_id(), geta, PHG4TruthInfoContainer::GetPrimaryParticleRange(), gflavor, gp, gphi, gpt, gpx, gpy, gpz, gtheta, gtrackID, LogDebug, LogError, nhits, p, phi, pt, px, py, pz, reset_variables(), SvtxTrack_v1::size_clusters(), theta, and trackID.
Referenced by process_event().
|
private |
Definition at line 306 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 306 of file FastTrackingEval.cc
References _event, _trackmap, _trackmapname, _truth_container, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, and PHWHERE.
Referenced by process_event().
|
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 82 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 82 of file FastTrackingEval.cc
References _eval_tree_tracks, _h2d_Delta_mom_vs_truth_eta, _h2d_Delta_mom_vs_truth_mom, _outfile_name, charge, dca2d, eta, event, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), geta, gflavor, gp, gphi, gpt, gpx, gpy, gpz, gtheta, gtrackID, gvx, gvy, gvz, nhits, PHTFileServer::open(), p, phi, PHWHERE, pt, px, py, pz, theta, and trackID.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 131 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 131 of file FastTrackingEval.cc
References _event, Fun4AllReturnCodes::EVENT_OK, fill_tree(), GetNodes(), PHWHERE, and Fun4AllBase::Verbosity().
void FastTrackingEval::reset_variables | ( | ) |
Definition at line 269 of file FastTrackingEval.cc.
View newest version in sPHENIX GitHub at line 269 of file FastTrackingEval.cc
References charge, dca2d, eta, geta, gflavor, gp, gphi, gpt, gpx, gpy, gpz, gtheta, gtrackID, gvx, gvy, gvz, nhits, p, phi, pt, px, py, pz, theta, and trackID.
Referenced by fill_tree().
|
inline |
Definition at line 43 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 43 of file FastTrackingEval.h
References _outfile_name, and file.
Referenced by FGEM_FastSim_Eval().
|
inline |
Definition at line 55 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 55 of file FastTrackingEval.h
References _flags.
|
private |
Definition at line 82 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 82 of file FastTrackingEval.h
Referenced by End(), fill_tree(), and Init().
|
private |
Definition at line 73 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 73 of file FastTrackingEval.h
Referenced by fill_tree(), GetNodes(), and process_event().
|
private |
Definition at line 79 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 79 of file FastTrackingEval.h
Referenced by set_flag().
|
private |
Definition at line 115 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 115 of file FastTrackingEval.h
Referenced by End(), fill_tree(), and Init().
|
private |
Definition at line 114 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 114 of file FastTrackingEval.h
Referenced by End(), fill_tree(), and Init().
|
private |
Definition at line 67 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 67 of file FastTrackingEval.h
Referenced by End(), Init(), and set_filename().
|
private |
Definition at line 119 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 119 of file FastTrackingEval.h
Referenced by fill_tree(), and GetNodes().
|
private |
Definition at line 70 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 70 of file FastTrackingEval.h
Referenced by GetNodes().
|
private |
Definition at line 118 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 118 of file FastTrackingEval.h
Referenced by fill_tree(), and GetNodes().
|
private |
Definition at line 101 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 101 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 111 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 111 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 109 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 109 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 83 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 83 of file FastTrackingEval.h
Referenced by Init().
|
private |
Definition at line 93 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 93 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 86 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 86 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 91 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 91 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 94 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 94 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 90 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 90 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 87 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 87 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 88 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 88 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 89 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 89 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 92 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 92 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 85 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 85 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 95 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 95 of file FastTrackingEval.h
Referenced by Init(), and reset_variables().
|
private |
Definition at line 96 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 96 of file FastTrackingEval.h
Referenced by Init(), and reset_variables().
|
private |
Definition at line 97 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 97 of file FastTrackingEval.h
Referenced by Init(), and reset_variables().
|
private |
Definition at line 102 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 102 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 107 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 107 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 110 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 110 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 106 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 106 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 103 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 103 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 104 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 104 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 105 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 105 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 108 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 108 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().
|
private |
Definition at line 100 of file FastTrackingEval.h.
View newest version in sPHENIX GitHub at line 100 of file FastTrackingEval.h
Referenced by fill_tree(), Init(), and reset_variables().