Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/Ana/PHAna.h>
Public Types | |
enum | Flag { NONE = 0, TRUTH = (1<<0), HIST = (1<<1), SF = (1<<2), HCALIN_TOWER = (1<<3), ALL = (1<<4)-1 } |
Public Member Functions | |
PHAna (const std::string &name="PHAna") | |
int | Init (PHCompositeNode *) |
int | process_event (PHCompositeNode *) |
int | End (PHCompositeNode *) |
Called at the end of all processing. | |
void | set_filename (const char *file) |
float | Square (float x) |
void | set_flag (const Flag &flag, const bool &value) |
void | fill_truth_ntuple (PHCompositeNode *) |
void | fill_sf_ntuple (PHCompositeNode *) |
void | create_histos () |
void | fill_histos (PHCompositeNode *) |
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 | GetNodes (PHCompositeNode *) |
Private Attributes | |
std::string | _outfile |
int | _event |
unsigned int | _flags |
TNtuple * | _truth |
TNtuple * | _sf |
TNtuple * | _hcalin_towers |
PHG4TruthInfoContainer * | _truth_container |
PHG4HitContainer * | _hcalout_hit_container |
PHG4HitContainer * | _hcalin_hit_container |
PHG4HitContainer * | _cemc_hit_container |
PHG4HitContainer * | _hcalout_abs_hit_container |
PHG4HitContainer * | _hcalin_abs_hit_container |
PHG4HitContainer * | _cemc_abs_hit_container |
PHG4HitContainer * | _cemc_electronics_hit_container |
PHG4HitContainer * | _hcalin_spt_hit_container |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 16 of file PHAna.h.
View newest version in sPHENIX GitHub at line 16 of file PHAna.h
enum PHAna::Flag |
PHAna::PHAna | ( | const std::string & | name = "PHAna" | ) |
void PHAna::create_histos | ( | ) |
Definition at line 204 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 204 of file PHAna.cc
References Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), Fun4AllHistoManager::registerHisto(), and Fun4AllServer::registerHistoManager().
Referenced by Init().
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 262 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 262 of file PHAna.cc
References _flags, _outfile, _sf, _truth, PHTFileServer::cd(), PHTFileServer::get(), Fun4AllHistoManager::getHisto(), Fun4AllServer::getHistoManager(), HIST, i, Fun4AllServer::instance(), and Fun4AllHistoManager::nHistos().
void PHAna::fill_histos | ( | PHCompositeNode * | topNode | ) |
Definition at line 62 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 62 of file PHAna.cc
References _truth_container, PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), Fun4AllHistoManager::getHisto(), Fun4AllServer::getHistoManager(), PHG4TruthInfoContainer::GetPrimaryVertexIndex(), PHG4TruthInfoContainer::GetPrimaryVtx(), h, and Fun4AllServer::instance().
Referenced by process_event().
void PHAna::fill_sf_ntuple | ( | PHCompositeNode * | topNode | ) |
Definition at line 106 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 106 of file PHAna.cc
References _cemc_abs_hit_container, _cemc_electronics_hit_container, _cemc_hit_container, _event, _hcalin_abs_hit_container, _hcalin_hit_container, _hcalin_spt_hit_container, _hcalout_abs_hit_container, _hcalout_hit_container, _sf, PHG4Hit::get_edep(), PHG4Hit::get_light_yield(), and PHG4HitContainer::getHits().
Referenced by process_event().
void PHAna::fill_truth_ntuple | ( | PHCompositeNode * | topNode | ) |
Definition at line 81 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 81 of file PHAna.cc
References _event, _truth, _truth_container, PHG4Particle::get_e(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), particle, and Square().
Referenced by process_event().
|
private |
Definition at line 220 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 220 of file PHAna.cc
References _cemc_abs_hit_container, _cemc_electronics_hit_container, _cemc_hit_container, _event, _hcalin_abs_hit_container, _hcalin_hit_container, _hcalin_spt_hit_container, _hcalout_abs_hit_container, _hcalout_hit_container, _truth_container, 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 34 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 34 of file PHAna.cc
References _flags, _outfile, _sf, _truth, create_histos(), PHTFileServer::get(), HIST, PHTFileServer::open(), PHWHERE, SF, and TRUTH.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 47 of file PHAna.cc.
View newest version in sPHENIX GitHub at line 47 of file PHAna.cc
References _event, _flags, fill_histos(), fill_sf_ntuple(), fill_truth_ntuple(), GetNodes(), HIST, PHWHERE, SF, and TRUTH.
|
inline |
|
inline |
|
inline |
Definition at line 35 of file PHAna.h.
View newest version in sPHENIX GitHub at line 35 of file PHAna.h
References ambiguity_solver_full_chain::x.
Referenced by fill_truth_ntuple().
|
private |
Definition at line 98 of file PHAna.h.
View newest version in sPHENIX GitHub at line 98 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 99 of file PHAna.h.
View newest version in sPHENIX GitHub at line 99 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 95 of file PHAna.h.
View newest version in sPHENIX GitHub at line 95 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 78 of file PHAna.h.
View newest version in sPHENIX GitHub at line 78 of file PHAna.h
Referenced by fill_sf_ntuple(), fill_truth_ntuple(), GetNodes(), PHAna(), and process_event().
|
private |
Definition at line 84 of file PHAna.h.
View newest version in sPHENIX GitHub at line 84 of file PHAna.h
Referenced by End(), Init(), process_event(), and set_flag().
|
private |
Definition at line 97 of file PHAna.h.
View newest version in sPHENIX GitHub at line 97 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 94 of file PHAna.h.
View newest version in sPHENIX GitHub at line 94 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 100 of file PHAna.h.
View newest version in sPHENIX GitHub at line 100 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
|
private |
Definition at line 96 of file PHAna.h.
View newest version in sPHENIX GitHub at line 96 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
Definition at line 93 of file PHAna.h.
View newest version in sPHENIX GitHub at line 93 of file PHAna.h
Referenced by fill_sf_ntuple(), and GetNodes().
|
private |
|
private |
|
private |
|
private |
Definition at line 92 of file PHAna.h.
View newest version in sPHENIX GitHub at line 92 of file PHAna.h
Referenced by fill_histos(), fill_truth_ntuple(), and GetNodes().