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

#include <analysis/blob/master/EpFinder/EpFinderEval.h>

+ Inheritance diagram for EpFinderEval:
+ Collaboration diagram for EpFinderEval:

Public Member Functions

 EpFinderEval (const std::string &name="EpFinderEval")
 
int Init (PHCompositeNode *)
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
void set_filename (const char *file)
 
- 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_tree (PHCompositeNode *)
 
int GetNodes (PHCompositeNode *)
 
void sumTowerEnergy (PHCompositeNode *topNode, std::string detName)
 
int GetPhiBin (float tphi, float numPhiDivisions)
 
int GetEtaBin (float teta, float eta_low, float eta_high, float numEtaDivisions)
 

Private Attributes

std::string _outfile_name
 
int _event
 
TTree * _eval_tree_event
 
float rplane_angle
 
float bimpact
 
float prim_rplane_angle
 
float fprim_rplane_angle
 
float fprim_phiweighted_rplane_angle
 
float fprim_phiweightedandshifted_rplane_angle
 
float rfprim_rplane_angle
 
float rfprim_phiweighted_rplane_angle
 
float rfprim_phiweightedandshifted_rplane_angle
 
float femc_raw_rplane_angle
 
float femc_phiweighted_rplane_angle
 
float femc_phiweightedandshifted_rplane_angle
 
float rfemc_raw_rplane_angle
 
float rfemc_phiweighted_rplane_angle
 
float rfemc_phiweightedandshifted_rplane_angle
 
float femcL_raw_rplane_angle
 
float femcL_phiweighted_rplane_angle
 
float femcL_phiweightedandshifted_rplane_angle
 
float femcR_raw_rplane_angle
 
float femcR_phiweighted_rplane_angle
 
float femcR_phiweightedandshifted_rplane_angle
 
float femc_h_clE
 
PHG4TruthInfoContainer_truth_container
 
RawTowerContainertowers
 
RawTowerGeomContainertowergeom
 
EpFinderRpFinder
 
EpFinderrRpFinder
 
EpFinderRpFinderL
 
EpFinderRpFinderR
 
EpFinderprimRpFinder
 
EpFinderfprimRpFinder
 
EpFinderrfprimRpFinder
 
std::vector< std::pair< int,
int > > 
phi_list [PHI_BINS]
 
std::vector< std::pair< int,
int > > 
rphi_list [PHI_BINS]
 
std::vector< std::pair< int,
int > > 
fprim_phi_list [FPRIM_PHI_BINS]
 
std::vector< std::pair< int,
int > > 
rfprim_phi_list [FPRIM_PHI_BINS]
 

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 = std::numeric_limits<int>::max() - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 26 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 26 of file EpFinderEval.h

Constructor & Destructor Documentation

EpFinderEval::EpFinderEval ( const std::string &  name = "EpFinderEval")

Definition at line 83 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 83 of file EpFinderEval.cc

References _event, _outfile_name, fprimRpFinder, primRpFinder, RpFinder, RpFinderL, and RpFinderR.

Member Function Documentation

int EpFinderEval::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 196 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 196 of file EpFinderEval.cc

References _eval_tree_event, _outfile_name, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, EpFinder::Finish(), fprimRpFinder, PHTFileServer::get(), primRpFinder, RpFinder, RpFinderL, RpFinderR, and rRpFinder.

+ Here is the call graph for this function:

void EpFinderEval::fill_tree ( PHCompositeNode topNode)
private

Definition at line 254 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 254 of file EpFinderEval.cc

References _eval_tree_event, _truth_container, PHHepMCGenEventMap::begin(), bimpact, RawTowerDefs::convert_name_to_caloid(), RawTowerDefs::encode_towerid(), femc_phiweighted_rplane_angle, femc_phiweightedandshifted_rplane_angle, femc_raw_rplane_angle, femcL_phiweighted_rplane_angle, femcL_phiweightedandshifted_rplane_angle, femcL_raw_rplane_angle, femcR_phiweighted_rplane_angle, femcR_phiweightedandshifted_rplane_angle, femcR_raw_rplane_angle, FPRIM_ETA_BINS, FPRIM_PHI_BINS, fprim_phi_list, fprim_phiweighted_rplane_angle, fprim_phiweightedandshifted_rplane_angle, fprim_rplane_angle, fprimRpFinder, genevent(), RawTowerGeom::get_column(), RawTower::get_energy(), RawTowerGeom::get_eta(), RawTowerGeom::get_phi(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), RawTowerGeom::get_row(), RawTowerGeomContainer::get_tower_geometry(), GetEtaBin(), PHHepMCGenEvent::getEvent(), GetPhiBin(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), RawTowerContainer::getTower(), RawTowerContainer::getTowers(), i, ambiguity_solver_full_chain::idx, EpHit::ix, EpHit::iy, j, EpHit::nMip, EpHit::phi, PHI_BINS, phi_list, EpInfo::PhiWeightedAndShiftedPsi(), EpInfo::PhiWeightedPsi(), prim_rplane_angle, primRpFinder, EpInfo::RawPsi(), EpFinder::Results(), rfemc_phiweighted_rplane_angle, rfemc_phiweightedandshifted_rplane_angle, rfemc_raw_rplane_angle, RFPRIM_ETA_BINS, rfprim_phi_list, rfprim_phiweighted_rplane_angle, rfprim_phiweightedandshifted_rplane_angle, rfprim_rplane_angle, rfprimRpFinder, RpFinder, RpFinderL, RpFinderR, rphi_list, rplane_angle, rRpFinder, EpHit::samePhi, TOWER_E_CUT, towergeom, and towers.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int EpFinderEval::GetEtaBin ( float  teta,
float  eta_low,
float  eta_high,
float  numEtaDivisions 
)
private

Definition at line 237 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 237 of file EpFinderEval.cc

Referenced by fill_tree().

+ Here is the caller graph for this function:

int EpFinderEval::GetNodes ( PHCompositeNode topNode)
private

Definition at line 527 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 527 of file EpFinderEval.cc

References _truth_container, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, PHWHERE, towergeom, and towers.

Referenced by process_event().

+ Here is the caller graph for this function:

int EpFinderEval::GetPhiBin ( float  tphi,
float  numPhiDivisions 
)
private

Definition at line 219 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 219 of file EpFinderEval.cc

References TwoPi.

Referenced by fill_tree().

+ Here is the caller graph for this function:

int EpFinderEval::Init ( PHCompositeNode )
virtual
int EpFinderEval::InitRun ( PHCompositeNode )
virtual

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 169 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 169 of file EpFinderEval.cc

References Fun4AllReturnCodes::EVENT_OK.

int EpFinderEval::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 182 of file EpFinderEval.cc.

View newest version in sPHENIX GitHub at line 182 of file EpFinderEval.cc

References _event, Fun4AllReturnCodes::EVENT_OK, fill_tree(), and GetNodes().

+ Here is the call graph for this function:

void EpFinderEval::set_filename ( const char *  file)
inline

Definition at line 44 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 44 of file EpFinderEval.h

References _outfile_name, and file.

void EpFinderEval::sumTowerEnergy ( PHCompositeNode topNode,
std::string  detName 
)
private

Member Data Documentation

TTree* EpFinderEval::_eval_tree_event
private

Definition at line 68 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 68 of file EpFinderEval.h

Referenced by End(), fill_tree(), and Init().

int EpFinderEval::_event
private

Definition at line 52 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 52 of file EpFinderEval.h

Referenced by EpFinderEval(), Init(), and process_event().

std::string EpFinderEval::_outfile_name
private

Definition at line 49 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 49 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), Init(), and set_filename().

PHG4TruthInfoContainer* EpFinderEval::_truth_container
private

Definition at line 100 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 100 of file EpFinderEval.h

Referenced by fill_tree(), and GetNodes().

float EpFinderEval::bimpact
private

Definition at line 71 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 71 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femc_h_clE
private

Definition at line 98 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 98 of file EpFinderEval.h

float EpFinderEval::femc_phiweighted_rplane_angle
private

Definition at line 83 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 83 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femc_phiweightedandshifted_rplane_angle
private

Definition at line 84 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 84 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femc_raw_rplane_angle
private

Definition at line 82 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 82 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcL_phiweighted_rplane_angle
private

Definition at line 91 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 91 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcL_phiweightedandshifted_rplane_angle
private

Definition at line 92 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 92 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcL_raw_rplane_angle
private

Definition at line 90 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 90 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcR_phiweighted_rplane_angle
private

Definition at line 95 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 95 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcR_phiweightedandshifted_rplane_angle
private

Definition at line 96 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 96 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::femcR_raw_rplane_angle
private

Definition at line 94 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 94 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

std::vector<std::pair<int,int> > EpFinderEval::fprim_phi_list[FPRIM_PHI_BINS]
private

Definition at line 116 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 116 of file EpFinderEval.h

Referenced by fill_tree().

float EpFinderEval::fprim_phiweighted_rplane_angle
private

Definition at line 75 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 75 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::fprim_phiweightedandshifted_rplane_angle
private

Definition at line 76 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 76 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::fprim_rplane_angle
private

Definition at line 74 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 74 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

EpFinder* EpFinderEval::fprimRpFinder
private

Definition at line 109 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 109 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), fill_tree(), and Init().

std::vector<std::pair<int,int> > EpFinderEval::phi_list[PHI_BINS]
private

Definition at line 114 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 114 of file EpFinderEval.h

Referenced by fill_tree().

float EpFinderEval::prim_rplane_angle
private

Definition at line 72 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 72 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

EpFinder* EpFinderEval::primRpFinder
private

Definition at line 108 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 108 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), fill_tree(), and Init().

float EpFinderEval::rfemc_phiweighted_rplane_angle
private

Definition at line 87 of file EpFinderEval.h.

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

Referenced by fill_tree(), and Init().

float EpFinderEval::rfemc_phiweightedandshifted_rplane_angle
private

Definition at line 88 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 88 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::rfemc_raw_rplane_angle
private

Definition at line 86 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 86 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

std::vector<std::pair<int,int> > EpFinderEval::rfprim_phi_list[FPRIM_PHI_BINS]
private

Definition at line 117 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 117 of file EpFinderEval.h

Referenced by fill_tree().

float EpFinderEval::rfprim_phiweighted_rplane_angle
private

Definition at line 79 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 79 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::rfprim_phiweightedandshifted_rplane_angle
private

Definition at line 80 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 80 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

float EpFinderEval::rfprim_rplane_angle
private

Definition at line 78 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 78 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

EpFinder* EpFinderEval::rfprimRpFinder
private

Definition at line 110 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 110 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

EpFinder* EpFinderEval::RpFinder
private

Definition at line 104 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 104 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), fill_tree(), and Init().

EpFinder* EpFinderEval::RpFinderL
private

Definition at line 106 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 106 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), fill_tree(), and Init().

EpFinder* EpFinderEval::RpFinderR
private

Definition at line 107 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 107 of file EpFinderEval.h

Referenced by End(), EpFinderEval(), fill_tree(), and Init().

std::vector<std::pair<int,int> > EpFinderEval::rphi_list[PHI_BINS]
private

Definition at line 115 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 115 of file EpFinderEval.h

Referenced by fill_tree().

float EpFinderEval::rplane_angle
private

Definition at line 70 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 70 of file EpFinderEval.h

Referenced by fill_tree(), and Init().

EpFinder* EpFinderEval::rRpFinder
private

Definition at line 105 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 105 of file EpFinderEval.h

Referenced by End(), fill_tree(), and Init().

RawTowerGeomContainer* EpFinderEval::towergeom
private

Definition at line 102 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 102 of file EpFinderEval.h

Referenced by fill_tree(), and GetNodes().

RawTowerContainer* EpFinderEval::towers
private

Definition at line 101 of file EpFinderEval.h.

View newest version in sPHENIX GitHub at line 101 of file EpFinderEval.h

Referenced by fill_tree(), and GetNodes().


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