Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/singlePhotonClusterAna/src/singlePhotonClusterAna.h>
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 |
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 singlePhotonClusterAna.h.
View newest version in sPHENIX GitHub at line 18 of file singlePhotonClusterAna.h
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
|
override |
Definition at line 95 of file singlePhotonClusterAna.cc.
View newest version in sPHENIX GitHub at line 95 of file singlePhotonClusterAna.cc
|
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().
|
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.
|
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().
|
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.
|
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.
|
overridevirtual |
Print out some info about this module.
what | can 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().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 160 of file singlePhotonClusterAna.cc.
View newest version in sPHENIX GitHub at line 160 of file singlePhotonClusterAna.cc
References Fun4AllReturnCodes::ABORTEVENT, assert, GlobalVertexMap::begin(), clusters_Towers, conversion, electron, GlobalVertexMap::empty(), energy, eta, KF_timing::etabin, Fun4AllReturnCodes::EVENT_OK, Fill(), RawCluster::get_ecore(), PHG4VtxPoint::get_t(), PHG4Particle::get_vtx_id(), PHG4VtxPoint::get_x(), GlobalVertex::get_x(), PHG4VtxPoint::get_y(), GlobalVertex::get_y(), PHG4VtxPoint::get_z(), GlobalVertex::get_z(), RawClusterUtility::GetECoreVec(), getEta(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetSecondaryParticleRange(), PHG4TruthInfoContainer::GetVtx(), 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, ActsTests::PropagationDatasets::phi, PHWHERE, and truth_photon.
|
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.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 490 of file singlePhotonClusterAna.cc.
View newest version in sPHENIX GitHub at line 490 of file singlePhotonClusterAna.cc
References Fun4AllReturnCodes::EVENT_OK, m_cluster_chi2, m_cluster_e, 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, and m_vtx_z.
|
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().
|
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().
|
private |
Definition at line 101 of file singlePhotonClusterAna.h.
View newest version in sPHENIX GitHub at line 101 of file singlePhotonClusterAna.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 100 of file singlePhotonClusterAna.h.
View newest version in sPHENIX GitHub at line 100 of file singlePhotonClusterAna.h
|
private |
Definition at line 102 of file singlePhotonClusterAna.h.
View newest version in sPHENIX GitHub at line 102 of file singlePhotonClusterAna.h
|
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().