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

#include <analysis/blob/master/pi0ClusterAna/src/pi0ClusterAna.h>

+ Inheritance diagram for pi0ClusterAna:
+ Collaboration diagram for pi0ClusterAna:

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

Detailed Description

Definition at line 18 of file pi0ClusterAna.h.

View newest version in sPHENIX GitHub at line 18 of file pi0ClusterAna.h

Constructor & Destructor Documentation

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

pi0ClusterAna::~pi0ClusterAna ( )
override

Definition at line 90 of file pi0ClusterAna.cc.

View newest version in sPHENIX GitHub at line 90 of file pi0ClusterAna.cc

Member Function Documentation

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

+ Here is the call graph for this function:

int pi0ClusterAna::EndRun ( const int  runnumber)
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.

float pi0ClusterAna::getEta ( PHG4Particle particle)
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().

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

int pi0ClusterAna::InitRun ( PHCompositeNode topNode)
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.

void pi0ClusterAna::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

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

+ Here is the caller graph for this function:

int pi0ClusterAna::Reset ( PHCompositeNode topNode)
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.

int pi0ClusterAna::ResetEvent ( PHCompositeNode topNode)
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.

Member Data Documentation

TTree* pi0ClusterAna::clusters_Towers
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().

Fun4AllHistoManager* pi0ClusterAna::hm = nullptr
private

Definition at line 96 of file pi0ClusterAna.h.

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

Referenced by End(), and Init().

std::vector<float> pi0ClusterAna::m_asym
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().

std::vector<float> pi0ClusterAna::m_cluster_chi2
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().

std::vector<float> pi0ClusterAna::m_cluster_e
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().

std::vector<float> pi0ClusterAna::m_cluster_eta
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().

std::vector<float> pi0ClusterAna::m_cluster_nTowers
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().

std::vector<float> pi0ClusterAna::m_cluster_phi
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().

std::vector<float> pi0ClusterAna::m_cluster_prob
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().

std::vector<float> pi0ClusterAna::m_deltaR
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().

std::vector<float> pi0ClusterAna::m_eta_center
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().

std::vector<float> pi0ClusterAna::m_lead_E
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().

std::vector<float> pi0ClusterAna::m_lead_eta
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().

std::vector<float> pi0ClusterAna::m_lead_phi
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().

std::vector<float> pi0ClusterAna::m_phi_center
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().

std::vector<float> pi0ClusterAna::m_pi0_E
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().

std::vector<float> pi0ClusterAna::m_pi0_eta
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().

std::vector<float> pi0ClusterAna::m_pi0_phi
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().

std::vector<float> pi0ClusterAna::m_sublead_E
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().

std::vector<float> pi0ClusterAna::m_sublead_eta
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().

std::vector<float> pi0ClusterAna::m_sublead_phi
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().

std::vector<float> pi0ClusterAna::m_tower_energy
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().

TFile* pi0ClusterAna::out
private

Definition at line 95 of file pi0ClusterAna.h.

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

Referenced by End(), and Init().

std::string pi0ClusterAna::Outfile
private

Definition at line 97 of file pi0ClusterAna.h.

View newest version in sPHENIX GitHub at line 97 of file pi0ClusterAna.h

Referenced by End(), and Init().

TTree* pi0ClusterAna::truth_photon
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().

TTree* pi0ClusterAna::truth_pi0
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().


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