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

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

+ Inheritance diagram for isoCluster:
+ Collaboration diagram for isoCluster:

Public Member Functions

 isoCluster (const std::string &name="isoCluster")
 
 ~isoCluster () 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
 
void setGenEvent (int eventGet)
 
- 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 Attributes

TTree * T
 
std::vector< float > m_clusterPhi
 
std::vector< float > m_clusterEta
 
std::vector< float > m_clusterE
 
std::vector< float > m_clusterPt
 
std::vector< float > m_clusterEtIso
 
std::vector< float > m_clusterChisq
 
std::vector< float > m_photonPhi
 
std::vector< float > m_photonEta
 
std::vector< float > m_photonE
 
std::vector< float > m_photonPt
 
TFile * fout
 
std::string outname
 
int getEvent
 

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 16 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 16 of file isoCluster.h

Constructor & Destructor Documentation

isoCluster::isoCluster ( const std::string &  name = "isoCluster")

Definition at line 67 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 67 of file isoCluster.cc

isoCluster::~isoCluster ( )
override

Definition at line 86 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 86 of file isoCluster.cc

Member Function Documentation

int isoCluster::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 297 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 297 of file isoCluster.cc

References cd(), Close(), Fun4AllReturnCodes::EVENT_OK, fout, T, and Write().

+ Here is the call graph for this function:

int isoCluster::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 290 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 290 of file isoCluster.cc

References Fun4AllReturnCodes::EVENT_OK.

int isoCluster::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 92 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 92 of file isoCluster.cc

References Branch(), Fun4AllReturnCodes::EVENT_OK, fout, m_clusterChisq, m_clusterE, m_clusterEta, m_clusterEtIso, m_clusterPhi, m_clusterPt, m_photonE, m_photonEta, m_photonPhi, m_photonPt, outname, and T.

+ Here is the call graph for this function:

int isoCluster::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 116 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 116 of file isoCluster.cc

References Fun4AllReturnCodes::EVENT_OK.

void isoCluster::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 314 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 314 of file isoCluster.cc

int isoCluster::process_event ( PHCompositeNode topNode)
overridevirtual
int isoCluster::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 307 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 307 of file isoCluster.cc

References Fun4AllReturnCodes::EVENT_OK.

int isoCluster::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 271 of file isoCluster.cc.

View newest version in sPHENIX GitHub at line 271 of file isoCluster.cc

References Fun4AllReturnCodes::EVENT_OK, m_clusterChisq, m_clusterE, m_clusterEta, m_clusterEtIso, m_clusterPhi, m_clusterPt, m_photonE, m_photonEta, m_photonPhi, and m_photonPt.

void isoCluster::setGenEvent ( int  eventGet)
inline

Definition at line 57 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 57 of file isoCluster.h

References getEvent.

Member Data Documentation

TFile* isoCluster::fout
private

Definition at line 76 of file isoCluster.h.

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

Referenced by End(), and Init().

int isoCluster::getEvent
private

Definition at line 78 of file isoCluster.h.

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

Referenced by process_event(), and setGenEvent().

std::vector<float> isoCluster::m_clusterChisq
private

Definition at line 68 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 68 of file isoCluster.h

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

std::vector<float> isoCluster::m_clusterE
private

Definition at line 65 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_clusterEta
private

Definition at line 64 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_clusterEtIso
private

Definition at line 67 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 67 of file isoCluster.h

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

std::vector<float> isoCluster::m_clusterPhi
private

Definition at line 63 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_clusterPt
private

Definition at line 66 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 66 of file isoCluster.h

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

std::vector<float> isoCluster::m_photonE
private

Definition at line 73 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_photonEta
private

Definition at line 72 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_photonPhi
private

Definition at line 71 of file isoCluster.h.

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

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

std::vector<float> isoCluster::m_photonPt
private

Definition at line 74 of file isoCluster.h.

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

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

std::string isoCluster::outname
private

Definition at line 77 of file isoCluster.h.

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

Referenced by Init().

TTree* isoCluster::T
private

Definition at line 61 of file isoCluster.h.

View newest version in sPHENIX GitHub at line 61 of file isoCluster.h

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


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