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

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

+ Inheritance diagram for singlePhotonClusterAna:
+ Collaboration diagram for singlePhotonClusterAna:

Public Member Functions

 singlePhotonClusterAna (const std::string &name, const std::string &outName)
 
 ~singlePhotonClusterAna () 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 * conversion
 
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_ecore
 
std::vector< float > m_cluster_chi2
 
std::vector< float > m_cluster_prob
 
std::vector< float > m_cluster_nTowers
 
std::vector< float > m_photon_E
 
std::vector< float > m_photon_eta
 
std::vector< float > m_photon_phi
 
std::vector< float > m_electron_E
 
std::vector< float > m_electron_eta
 
std::vector< float > m_electron_phi
 
std::vector< float > m_positron_E
 
std::vector< float > m_positron_eta
 
std::vector< float > m_positron_phi
 
std::vector< float > m_vtx_x
 
std::vector< float > m_vtx_y
 
std::vector< float > m_vtx_z
 
std::vector< float > m_vtx_t
 
std::vector< float > m_vtx_r
 
std::vector< bool > m_isConversionEvent
 
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 singlePhotonClusterAna.h.

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

Constructor & Destructor Documentation

singlePhotonClusterAna::singlePhotonClusterAna ( const std::string &  name,
const std::string &  outName = "singlePhotonClusterAnaOut" 
)

Definition at line 55 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 55 of file singlePhotonClusterAna.cc

singlePhotonClusterAna::~singlePhotonClusterAna ( )
override

Definition at line 95 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 95 of file singlePhotonClusterAna.cc

Member Function Documentation

int singlePhotonClusterAna::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 529 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 529 of file singlePhotonClusterAna.cc

References cd(), Close(), clusters_Towers, conversion, Fun4AllReturnCodes::EVENT_OK, hm, out, Outfile, truth_photon, and Write().

+ Here is the call graph for this function:

int singlePhotonClusterAna::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 522 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 522 of file singlePhotonClusterAna.cc

References Fun4AllReturnCodes::EVENT_OK.

float singlePhotonClusterAna::getEta ( PHG4Particle particle)
private

Definition at line 560 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 560 of file singlePhotonClusterAna.cc

References merge_hashes::p.

Referenced by process_event().

+ Here is the caller graph for this function:

int singlePhotonClusterAna::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 101 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 101 of file singlePhotonClusterAna.cc

References Branch(), clusters_Towers, conversion, Fun4AllReturnCodes::EVENT_OK, hm, Fun4AllServer::instance(), m_cluster_chi2, m_cluster_e, m_cluster_ecore, m_cluster_eta, m_cluster_nTowers, m_cluster_phi, m_cluster_prob, m_electron_E, m_electron_eta, m_electron_phi, m_eta_center, m_isConversionEvent, m_phi_center, m_photon_E, m_photon_eta, m_photon_phi, m_positron_E, m_positron_eta, m_positron_phi, m_tower_energy, m_vtx_r, m_vtx_t, m_vtx_x, m_vtx_y, m_vtx_z, out, Outfile, Print(), and truth_photon.

+ Here is the call graph for this function:

int singlePhotonClusterAna::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 152 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 152 of file singlePhotonClusterAna.cc

References Fun4AllReturnCodes::EVENT_OK.

void singlePhotonClusterAna::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 555 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 555 of file singlePhotonClusterAna.cc

Referenced by Init().

+ Here is the caller graph for this function:

int singlePhotonClusterAna::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 548 of file singlePhotonClusterAna.cc.

View newest version in sPHENIX GitHub at line 548 of file singlePhotonClusterAna.cc

References Fun4AllReturnCodes::EVENT_OK.

int singlePhotonClusterAna::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Member Data Documentation

TTree* singlePhotonClusterAna::clusters_Towers
private

Definition at line 63 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 63 of file singlePhotonClusterAna.h

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

TTree* singlePhotonClusterAna::conversion
private

Definition at line 65 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 65 of file singlePhotonClusterAna.h

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

Fun4AllHistoManager* singlePhotonClusterAna::hm = nullptr
private

Definition at line 101 of file singlePhotonClusterAna.h.

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

Referenced by End(), and Init().

std::vector<float> singlePhotonClusterAna::m_cluster_chi2
private

Definition at line 77 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 77 of file singlePhotonClusterAna.h

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

std::vector<float> singlePhotonClusterAna::m_cluster_e
private

Definition at line 75 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_cluster_ecore
private

Definition at line 76 of file singlePhotonClusterAna.h.

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

Referenced by Init(), and process_event().

std::vector<float> singlePhotonClusterAna::m_cluster_eta
private

Definition at line 73 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 73 of file singlePhotonClusterAna.h

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

std::vector<float> singlePhotonClusterAna::m_cluster_nTowers
private

Definition at line 79 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_cluster_phi
private

Definition at line 74 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_cluster_prob
private

Definition at line 78 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_electron_E
private

Definition at line 87 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_electron_eta
private

Definition at line 88 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_electron_phi
private

Definition at line 89 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 89 of file singlePhotonClusterAna.h

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

std::vector<float> singlePhotonClusterAna::m_eta_center
private

Definition at line 70 of file singlePhotonClusterAna.h.

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

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

std::vector<bool> singlePhotonClusterAna::m_isConversionEvent
private

Definition at line 98 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_phi_center
private

Definition at line 71 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_photon_E
private

Definition at line 82 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_photon_eta
private

Definition at line 83 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_photon_phi
private

Definition at line 84 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_positron_E
private

Definition at line 90 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_positron_eta
private

Definition at line 91 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_positron_phi
private

Definition at line 92 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_tower_energy
private

Definition at line 72 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_vtx_r
private

Definition at line 97 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_vtx_t
private

Definition at line 96 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_vtx_x
private

Definition at line 93 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 93 of file singlePhotonClusterAna.h

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

std::vector<float> singlePhotonClusterAna::m_vtx_y
private

Definition at line 94 of file singlePhotonClusterAna.h.

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

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

std::vector<float> singlePhotonClusterAna::m_vtx_z
private

Definition at line 95 of file singlePhotonClusterAna.h.

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

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

TFile* singlePhotonClusterAna::out
private

Definition at line 100 of file singlePhotonClusterAna.h.

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

Referenced by End(), and Init().

std::string singlePhotonClusterAna::Outfile
private

Definition at line 102 of file singlePhotonClusterAna.h.

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

Referenced by End(), and Init().

TTree* singlePhotonClusterAna::truth_photon
private

Definition at line 64 of file singlePhotonClusterAna.h.

View newest version in sPHENIX GitHub at line 64 of file singlePhotonClusterAna.h

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


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