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

#include <analysis/blob/master/Centrality_Validation_Package/src/CentralityValid.h>

+ Inheritance diagram for CentralityValid:
+ Collaboration diagram for CentralityValid:

Public Member Functions

 CentralityValid (const std::string &name="CentralityValid", const std::string &hist_name="QA_CentralityReco.root")
 constructor
 
virtual ~CentralityValid ()
 destructor
 
int Init (PHCompositeNode *)
 full initialization
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 end of run method
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
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 Attributes

Fun4AllHistoManagerhm = nullptr
 
CentralityInfo_central = nullptr
 
MinimumBiasInfo_minimumbiasinfo = nullptr
 
std::string _hist_filename
 
TH1 * _h_centrality_bin = nullptr
 
TH1 * _h_centrality_bin_mb = nullptr
 
TEfficiency * _he_min_bias = nullptr
 

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 CentralityValid.h.

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

Constructor & Destructor Documentation

CentralityValid::CentralityValid ( const std::string &  name = "CentralityValid",
const std::string &  hist_name = "QA_CentralityReco.root" 
)
explicit

constructor

Definition at line 31 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 31 of file CentralityValid.cc

References _hist_filename.

CentralityValid::~CentralityValid ( )
virtual

destructor

Definition at line 37 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 37 of file CentralityValid.cc

References hm.

Member Function Documentation

int CentralityValid::End ( PHCompositeNode )
virtual

end of run method

Reimplemented from SubsysReco.

Definition at line 106 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 106 of file CentralityValid.cc

References _hist_filename, Fun4AllHistoManager::dumpHistos(), and hm.

+ Here is the call graph for this function:

int CentralityValid::Init ( PHCompositeNode )
virtual

full initialization

Reimplemented from SubsysReco.

Definition at line 41 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 41 of file CentralityValid.cc

References _h_centrality_bin, _h_centrality_bin_mb, _he_min_bias, Fun4AllReturnCodes::EVENT_OK, hm, and Fun4AllHistoManager::registerHisto().

+ Here is the call graph for this function:

int CentralityValid::InitRun ( PHCompositeNode )
virtual

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.

Reimplemented from SubsysReco.

Definition at line 57 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 57 of file CentralityValid.cc

References Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int CentralityValid::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 68 of file CentralityValid.cc.

View newest version in sPHENIX GitHub at line 68 of file CentralityValid.cc

References _central, _h_centrality_bin, _h_centrality_bin_mb, _he_min_bias, _minimumbiasinfo, Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, CentralityInfo::get_centile(), CentralityInfo::has_centile(), MinimumBiasInfo::isAuAuMinimumBias(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Member Data Documentation

CentralityInfo* CentralityValid::_central = nullptr
protected

Definition at line 38 of file CentralityValid.h.

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

Referenced by process_event().

TH1* CentralityValid::_h_centrality_bin = nullptr
protected

Definition at line 43 of file CentralityValid.h.

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

Referenced by Init(), and process_event().

TH1* CentralityValid::_h_centrality_bin_mb = nullptr
protected

Definition at line 45 of file CentralityValid.h.

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

Referenced by Init(), and process_event().

TEfficiency* CentralityValid::_he_min_bias = nullptr
protected

Definition at line 47 of file CentralityValid.h.

View newest version in sPHENIX GitHub at line 47 of file CentralityValid.h

Referenced by Init(), and process_event().

std::string CentralityValid::_hist_filename
protected

Definition at line 41 of file CentralityValid.h.

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

Referenced by CentralityValid(), and End().

MinimumBiasInfo* CentralityValid::_minimumbiasinfo = nullptr
protected

Definition at line 39 of file CentralityValid.h.

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

Referenced by process_event().

Fun4AllHistoManager* CentralityValid::hm = nullptr
protected

Definition at line 36 of file CentralityValid.h.

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

Referenced by End(), Init(), and ~CentralityValid().


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