Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FastTrackingEval Class Reference

#include <analysis/blob/master/Tracking/FastTrackingEval/FastTrackingEval.h>

+ Inheritance diagram for FastTrackingEval:
+ Collaboration diagram for FastTrackingEval:

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")
 

Detailed Description

Definition at line 25 of file FastTrackingEval.h.

View newest version in sPHENIX GitHub at line 25 of file FastTrackingEval.h

Member Enumeration Documentation

Enumerator:
NONE 

Definition at line 47 of file FastTrackingEval.h.

View newest version in sPHENIX GitHub at line 47 of file FastTrackingEval.h

Constructor & Destructor Documentation

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

Member Function Documentation

int FastTrackingEval::End ( PHCompositeNode )
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().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int FastTrackingEval::GetNodes ( PHCompositeNode topNode)
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().

+ Here is the caller graph for this function:

int FastTrackingEval::Init ( PHCompositeNode )
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.

+ Here is the call graph for this function:

int FastTrackingEval::process_event ( PHCompositeNode )
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().

+ Here is the call graph for this function:

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().

+ Here is the caller graph for this function:

void FastTrackingEval::set_filename ( const char *  file)
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().

+ Here is the caller graph for this function:

void FastTrackingEval::set_flag ( const Flag flag,
const bool &  value 
)
inline

Definition at line 55 of file FastTrackingEval.h.

View newest version in sPHENIX GitHub at line 55 of file FastTrackingEval.h

References _flags.

Member Data Documentation

TTree* FastTrackingEval::_eval_tree_tracks
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().

int FastTrackingEval::_event
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().

unsigned int FastTrackingEval::_flags
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().

TH2D* FastTrackingEval::_h2d_Delta_mom_vs_truth_eta
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().

TH2D* FastTrackingEval::_h2d_Delta_mom_vs_truth_mom
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().

std::string FastTrackingEval::_outfile_name
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().

SvtxTrackMap* FastTrackingEval::_trackmap
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().

std::string FastTrackingEval::_trackmapname
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().

PHG4TruthInfoContainer* FastTrackingEval::_truth_container
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().

int FastTrackingEval::charge
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().

float FastTrackingEval::dca2d
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().

float FastTrackingEval::eta
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().

int FastTrackingEval::event
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().

float FastTrackingEval::geta
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().

int FastTrackingEval::gflavor
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().

float FastTrackingEval::gp
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().

float FastTrackingEval::gphi
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().

float FastTrackingEval::gpt
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().

float FastTrackingEval::gpx
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().

float FastTrackingEval::gpy
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().

float FastTrackingEval::gpz
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().

float FastTrackingEval::gtheta
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().

int FastTrackingEval::gtrackID
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().

float FastTrackingEval::gvx
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().

float FastTrackingEval::gvy
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().

float FastTrackingEval::gvz
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().

int FastTrackingEval::nhits
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().

float FastTrackingEval::p
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().

float FastTrackingEval::phi
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().

float FastTrackingEval::pt
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().

float FastTrackingEval::px
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().

float FastTrackingEval::py
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().

float FastTrackingEval::pz
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().

float FastTrackingEval::theta
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().

int FastTrackingEval::trackID
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().


The documentation for this class was generated from the following files: