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

#include <analysis/blob/master/HCal-analysis/HCALAnalysis/HCALAnalysis.h>

+ Inheritance diagram for HCALAnalysis:
+ Collaboration diagram for HCALAnalysis:

Public Member Functions

 HCALAnalysis (const char *outfile="ntuple.root")
 
virtual ~HCALAnalysis ()
 
int Init (PHCompositeNode *topNode)
 
int process_event (PHCompositeNode *topNode)
 
int End (PHCompositeNode *topNode)
 Called at the end of all processing.
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
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.
 

Protected Member Functions

void GetNodes (PHCompositeNode *topNode)
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 

Protected Attributes

const char * OutFileName
 
PHCompositeNode_topNode
 
PHG4HitContainer_hcalout_hit_container
 
PHG4HitContainer_hcalin_hit_container
 
PHG4HitContainer_cemc_hit_container
 
PHG4HitContainer_hcalout_abs_hit_container
 
PHG4HitContainer_hcalin_abs_hit_container
 
PHG4HitContainer_cemc_abs_hit_container
 
PHG4HitContainer_magnet_hit_container
 
PHG4HitContainer_bh_hit_container
 
PHG4HitContainer_bh_plus_hit_container
 
PHG4HitContainer_bh_minus_hit_container
 
PHG4HitContainer_cemc_electronics_hit_container
 
PHG4HitContainer_hcalin_spt_hit_container
 
PHG4HitContainer_svtx_hit_container
 
PHG4HitContainer_svtx_support_hit_container
 
TFile * outputfile
 
TNtuple * calenergy
 

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
}
 

Detailed Description

Definition at line 12 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 12 of file HCALAnalysis.h

Constructor & Destructor Documentation

HCALAnalysis::HCALAnalysis ( const char *  outfile = "ntuple.root")

Definition at line 38 of file HCALAnalysis.C.

View newest version in sPHENIX GitHub at line 38 of file HCALAnalysis.C

References add_histos::outfile, and OutFileName.

virtual HCALAnalysis::~HCALAnalysis ( )
inlinevirtual

Definition at line 16 of file HCALAnalysis.h.

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

Member Function Documentation

int HCALAnalysis::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 356 of file HCALAnalysis.C.

View newest version in sPHENIX GitHub at line 356 of file HCALAnalysis.C

References outputfile.

void HCALAnalysis::GetNodes ( PHCompositeNode topNode)
protected

Definition at line 365 of file HCALAnalysis.C.

View newest version in sPHENIX GitHub at line 365 of file HCALAnalysis.C

References _bh_hit_container, _bh_minus_hit_container, _bh_plus_hit_container, _cemc_abs_hit_container, _cemc_electronics_hit_container, _cemc_hit_container, _hcalin_abs_hit_container, _hcalin_hit_container, _hcalin_spt_hit_container, _hcalout_abs_hit_container, _hcalout_hit_container, _magnet_hit_container, _svtx_hit_container, _svtx_support_hit_container, _topNode, and PHWHERE.

Referenced by process_event().

+ Here is the caller graph for this function:

int HCALAnalysis::Init ( PHCompositeNode )
virtual

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 45 of file HCALAnalysis.C.

View newest version in sPHENIX GitHub at line 45 of file HCALAnalysis.C

References calenergy, OutFileName, and outputfile.

int HCALAnalysis::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 55 of file HCALAnalysis.C.

View newest version in sPHENIX GitHub at line 55 of file HCALAnalysis.C

References _bh_hit_container, _bh_minus_hit_container, _bh_plus_hit_container, _cemc_abs_hit_container, _cemc_electronics_hit_container, _cemc_hit_container, _hcalin_abs_hit_container, _hcalin_hit_container, _hcalin_spt_hit_container, _hcalout_abs_hit_container, _hcalout_hit_container, _magnet_hit_container, _svtx_hit_container, _svtx_support_hit_container, assert, calenergy, PHG4Hit::get_edep(), PHG4Hit::get_light_yield(), PHG4Hit::get_x(), PHG4Hit::get_y(), PHG4HitContainer::getHits(), and GetNodes().

+ Here is the call graph for this function:

Member Data Documentation

PHG4HitContainer* HCALAnalysis::_bh_hit_container
protected

Definition at line 37 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 37 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_bh_minus_hit_container
protected

Definition at line 39 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 39 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_bh_plus_hit_container
protected

Definition at line 38 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 38 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_cemc_abs_hit_container
protected

Definition at line 35 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 35 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_cemc_electronics_hit_container
protected

Definition at line 40 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 40 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_cemc_hit_container
protected

Definition at line 32 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 32 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_hcalin_abs_hit_container
protected

Definition at line 34 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 34 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_hcalin_hit_container
protected

Definition at line 31 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 31 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_hcalin_spt_hit_container
protected

Definition at line 41 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 41 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_hcalout_abs_hit_container
protected

Definition at line 33 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 33 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_hcalout_hit_container
protected

Definition at line 30 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 30 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_magnet_hit_container
protected

Definition at line 36 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 36 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_svtx_hit_container
protected

Definition at line 42 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 42 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHG4HitContainer* HCALAnalysis::_svtx_support_hit_container
protected

Definition at line 43 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 43 of file HCALAnalysis.h

Referenced by GetNodes(), and process_event().

PHCompositeNode* HCALAnalysis::_topNode
protected

Definition at line 29 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 29 of file HCALAnalysis.h

Referenced by GetNodes().

TNtuple* HCALAnalysis::calenergy
protected

Definition at line 46 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 46 of file HCALAnalysis.h

Referenced by Init(), and process_event().

const char* HCALAnalysis::OutFileName
protected

Definition at line 25 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 25 of file HCALAnalysis.h

Referenced by HCALAnalysis(), and Init().

TFile* HCALAnalysis::outputfile
protected

Definition at line 45 of file HCALAnalysis.h.

View newest version in sPHENIX GitHub at line 45 of file HCALAnalysis.h

Referenced by End(), and Init().


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