EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFastSimEval Class Reference

#include <EicToyModel/blob/master/fun4all_with_eicroot/sandbox/TrackFastSimEval.h>

+ Inheritance diagram for TrackFastSimEval:
+ Collaboration diagram for TrackFastSimEval:

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

Detailed Description

Definition at line 13 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 13 of file TrackFastSimEval.h

Member Enumeration Documentation

Enumerator:
NONE 
NONE 

Definition at line 45 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 45 of file TrackFastSimEval.h

Enumerator:
NONE 
NONE 

Definition at line 45 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 45 of file TrackFastSimEval.h

Constructor & Destructor Documentation

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

Member Function Documentation

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

+ Here is the caller graph for this function:

void TrackFastSimEval::AddProjection ( const std::string &  name)
int TrackFastSimEval::End ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int TrackFastSimEval::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

int TrackFastSimEval::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

void TrackFastSimEval::fill_track_tree ( PHCompositeNode )
private
void TrackFastSimEval::fill_vertex_tree ( PHCompositeNode )
private
int TrackFastSimEval::GetNodes ( PHCompositeNode )
private
int TrackFastSimEval::GetNodes ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

int TrackFastSimEval::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 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.

+ Here is the call graph for this function:

int TrackFastSimEval::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.

int TrackFastSimEval::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.

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

+ Here is the call graph for this function:

int TrackFastSimEval::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

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

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

Definition at line 53 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 53 of file TrackFastSimEval.h

References _flags.

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

Definition at line 53 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 53 of file TrackFastSimEval.h

References _flags.

Member Data Documentation

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

TTree * TrackFastSimEval::_eval_tree_vertex
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().

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

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

TH1D* TrackFastSimEval::_h1d_Delta_mom
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().

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

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

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

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

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

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

SvtxVertexMap * TrackFastSimEval::_vertexmap
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().

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

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

float TrackFastSimEval::deltavx
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().

float TrackFastSimEval::deltavy
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().

float TrackFastSimEval::deltavz
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().

int TrackFastSimEval::event
private

Definition at line 87 of file TrackFastSimEval.h.

View newest version in sPHENIX GitHub at line 87 of file TrackFastSimEval.h

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

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

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

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

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

float TrackFastSimEval::gvt
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().

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

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

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

std::map< std::string, int > TrackFastSimEval::m_ProjectionNameMap
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().

int TrackFastSimEval::n_from_truth
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().

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

static const int TrackFastSimEval::nproj = 3
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().

int TrackFastSimEval::ntracks
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().

float TrackFastSimEval::pcax
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().

float TrackFastSimEval::pcay
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().

float TrackFastSimEval::pcaz
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().

float TrackFastSimEval::proj
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().

float TrackFastSimEval::proj_p
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().

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

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

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

float TrackFastSimEval::ref
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().

float TrackFastSimEval::ref_p
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().

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

float TrackFastSimEval::vx
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().

float TrackFastSimEval::vy
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().

float TrackFastSimEval::vz
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().


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