Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/pi0ClusterAna/src/pi0ClusterAna.h>
Public Member Functions | |
pi0ClusterAna (const std::string &name, const std::string &outName) | |
~pi0ClusterAna () override | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
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 | |
float | getEta (PHG4Particle *particle) |
Private Attributes | |
TTree * | clusters_Towers |
TTree * | truth_photon |
TTree * | truth_pi0 |
std::vector< float > | m_eta_center |
std::vector< float > | m_phi_center |
std::vector< float > | m_tower_energy |
std::vector< float > | m_cluster_eta |
std::vector< float > | m_cluster_phi |
std::vector< float > | m_cluster_e |
std::vector< float > | m_cluster_chi2 |
std::vector< float > | m_cluster_prob |
std::vector< float > | m_cluster_nTowers |
std::vector< float > | m_asym |
std::vector< float > | m_deltaR |
std::vector< float > | m_lead_E |
std::vector< float > | m_sublead_E |
std::vector< float > | m_lead_phi |
std::vector< float > | m_lead_eta |
std::vector< float > | m_sublead_phi |
std::vector< float > | m_sublead_eta |
std::vector< float > | m_pi0_E |
std::vector< float > | m_pi0_eta |
std::vector< float > | m_pi0_phi |
TFile * | out |
Fun4AllHistoManager * | hm = nullptr |
std::string | Outfile |
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") | |
Definition at line 18 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 18 of file pi0ClusterAna.h
pi0ClusterAna::pi0ClusterAna | ( | const std::string & | name, |
const std::string & | outName = "pi0ClusterAnaOut" |
||
) |
Definition at line 55 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 55 of file pi0ClusterAna.cc
|
override |
Definition at line 90 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 90 of file pi0ClusterAna.cc
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 423 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 423 of file pi0ClusterAna.cc
References cd(), Close(), clusters_Towers, Fun4AllReturnCodes::EVENT_OK, hm, out, Outfile, truth_photon, truth_pi0, and Write().
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 416 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 416 of file pi0ClusterAna.cc
References Fun4AllReturnCodes::EVENT_OK.
|
private |
Definition at line 454 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 454 of file pi0ClusterAna.cc
References merge_hashes::p.
Referenced by process_event().
|
overridevirtual |
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 96 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 96 of file pi0ClusterAna.cc
References Branch(), clusters_Towers, Fun4AllReturnCodes::EVENT_OK, hm, Fun4AllServer::instance(), m_asym, m_cluster_chi2, m_cluster_e, m_cluster_eta, m_cluster_nTowers, m_cluster_phi, m_cluster_prob, m_deltaR, m_eta_center, m_lead_E, m_lead_eta, m_lead_phi, m_phi_center, m_pi0_E, m_pi0_eta, m_pi0_phi, m_sublead_E, m_sublead_eta, m_sublead_phi, m_tower_energy, out, Outfile, Print(), truth_photon, and truth_pi0.
|
overridevirtual |
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. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 143 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 143 of file pi0ClusterAna.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 449 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 449 of file pi0ClusterAna.cc
Referenced by Init().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 151 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 151 of file pi0ClusterAna.cc
References Fun4AllReturnCodes::ABORTEVENT, assert, GlobalVertexMap::begin(), clusters_Towers, physmon_track_finding_ttbar::deltaR, GlobalVertexMap::empty(), energy, eta, KF_timing::etabin, Fun4AllReturnCodes::EVENT_OK, Fill(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawClusterUtility::GetECoreVec(), getEta(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetSecondaryParticleRange(), m_asym, m_cluster_chi2, m_cluster_e, m_cluster_eta, m_cluster_nTowers, m_cluster_phi, m_cluster_prob, m_deltaR, m_eta_center, m_lead_E, m_lead_eta, m_lead_phi, m_phi_center, m_pi0_E, m_pi0_eta, m_pi0_phi, m_sublead_E, m_sublead_eta, m_sublead_phi, m_tower_energy, ActsTests::PropagationDatasets::phi, PHWHERE, truth_photon, and truth_pi0.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 442 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 442 of file pi0ClusterAna.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 388 of file pi0ClusterAna.cc.
View newest version in sPHENIX GitHub at line 388 of file pi0ClusterAna.cc
References Fun4AllReturnCodes::EVENT_OK, m_asym, m_cluster_chi2, m_cluster_e, m_cluster_eta, m_cluster_nTowers, m_cluster_phi, m_cluster_prob, m_deltaR, m_eta_center, m_lead_E, m_lead_eta, m_lead_phi, m_phi_center, m_pi0_E, m_pi0_eta, m_pi0_phi, m_sublead_E, m_sublead_eta, m_sublead_phi, and m_tower_energy.
|
private |
Definition at line 63 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 63 of file pi0ClusterAna.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 96 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 96 of file pi0ClusterAna.h
|
private |
Definition at line 81 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 81 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 76 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 76 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 75 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 75 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 73 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 73 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 78 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 78 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 74 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 74 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 77 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 77 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 82 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 82 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 70 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 70 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 83 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 83 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 86 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 86 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 85 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 85 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 71 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 71 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 91 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 91 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 92 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 92 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 93 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 93 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 84 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 84 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 88 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 88 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 87 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 87 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 72 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 72 of file pi0ClusterAna.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 95 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 95 of file pi0ClusterAna.h
|
private |
Definition at line 97 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 97 of file pi0ClusterAna.h
|
private |
Definition at line 64 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 64 of file pi0ClusterAna.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 65 of file pi0ClusterAna.h.
View newest version in sPHENIX GitHub at line 65 of file pi0ClusterAna.h
Referenced by End(), Init(), and process_event().