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

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

+ Inheritance diagram for Pi0MassAnalysis:
+ Collaboration diagram for Pi0MassAnalysis:

Public Member Functions

 Pi0MassAnalysis (const std::string &name="Pi0MassAnalysis")
 
 ~Pi0MassAnalysis () 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 SetMinClusterEnergy (float e=0.15)
 
void SetPhotonClusterProbability (float p=0.1)
 
- 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

std::string _foutname
 
TFile * _f
 
TTree * _tree
 
TH1F * pi0MassHist
 
TH1F * pi0MassHistEtaDep [24]
 
int counter
 
float minClusterEnergy
 
float photonClusterProbability
 
int nclus
 
float cluster_energy [10000]
 
float cluster_eta [10000]
 
float cluster_phi [10000]
 
float cluster_prob [10000]
 
float cluster_chi2 [10000]
 
int npi0
 
float pi0cand_pt [100000]
 
float pi0cand_eta [100000]
 
float pi0cand_phi [100000]
 
float pi0cand_mass [100000]
 

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 15 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 15 of file Pi0MassAnalysis.h

Constructor & Destructor Documentation

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

Definition at line 83 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 83 of file Pi0MassAnalysis.cc

References _foutname, and perf_headwind::name.

Pi0MassAnalysis::~Pi0MassAnalysis ( )
override

Definition at line 91 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 91 of file Pi0MassAnalysis.cc

Member Function Documentation

int Pi0MassAnalysis::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 249 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 249 of file Pi0MassAnalysis.cc

References _f, and Fun4AllReturnCodes::EVENT_OK.

int Pi0MassAnalysis::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 242 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 242 of file Pi0MassAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK.

int Pi0MassAnalysis::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 97 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 97 of file Pi0MassAnalysis.cc

References _f, _foutname, _tree, cluster_chi2, cluster_energy, cluster_eta, cluster_phi, cluster_prob, counter, Fun4AllReturnCodes::EVENT_OK, material_mapping_optimisation::format, i, nclus, npi0, pi0cand_eta, pi0cand_mass, pi0cand_phi, pi0cand_pt, pi0MassHist, pi0MassHistEtaDep, and str.

int Pi0MassAnalysis::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 133 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 133 of file Pi0MassAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK.

void Pi0MassAnalysis::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 267 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 267 of file Pi0MassAnalysis.cc

int Pi0MassAnalysis::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 140 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 140 of file Pi0MassAnalysis.cc

References _tree, alpha, GlobalVertexMap::begin(), cluster_chi2, cluster_energy, cluster_eta, cluster_phi, cluster_prob, counter, GlobalVertexMap::empty(), Fun4AllReturnCodes::EVENT_OK, RawCluster::get_chi2(), RawCluster::get_energy(), RawCluster::get_phi(), RawCluster::get_prob(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawClusterContainer::getClusters(), RawClusterUtility::GetECoreVec(), i, j, minClusterEnergy, nclus, npi0, photonClusterProbability, pi0cand_eta, pi0cand_mass, pi0cand_phi, pi0cand_pt, pi0MassHist, pi0MassHistEtaDep, v1, v2, vx, vy, and vz.

+ Here is the call graph for this function:

int Pi0MassAnalysis::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 260 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 260 of file Pi0MassAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK.

int Pi0MassAnalysis::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 236 of file Pi0MassAnalysis.cc.

View newest version in sPHENIX GitHub at line 236 of file Pi0MassAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK.

void Pi0MassAnalysis::SetMinClusterEnergy ( float  e = 0.15)
inline

Definition at line 55 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 55 of file Pi0MassAnalysis.h

References Acts::UnitConstants::e, and minClusterEnergy.

Referenced by Fun4All_MDCTreeMaker().

+ Here is the caller graph for this function:

void Pi0MassAnalysis::SetPhotonClusterProbability ( float  p = 0.1)
inline

Definition at line 56 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 56 of file Pi0MassAnalysis.h

References merge_hashes::p, and photonClusterProbability.

Member Data Documentation

TFile* Pi0MassAnalysis::_f
private

Definition at line 61 of file Pi0MassAnalysis.h.

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

Referenced by End(), and Init().

std::string Pi0MassAnalysis::_foutname
private

Definition at line 59 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 59 of file Pi0MassAnalysis.h

Referenced by Init(), and Pi0MassAnalysis().

TTree* Pi0MassAnalysis::_tree
private

Definition at line 62 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 62 of file Pi0MassAnalysis.h

Referenced by Init(), and process_event().

float Pi0MassAnalysis::cluster_chi2[10000]
private

Definition at line 78 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::cluster_energy[10000]
private

Definition at line 74 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::cluster_eta[10000]
private

Definition at line 75 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::cluster_phi[10000]
private

Definition at line 76 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::cluster_prob[10000]
private

Definition at line 77 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

int Pi0MassAnalysis::counter
private

Definition at line 67 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::minClusterEnergy
private

Definition at line 69 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 69 of file Pi0MassAnalysis.h

Referenced by process_event(), and SetMinClusterEnergy().

int Pi0MassAnalysis::nclus
private

Definition at line 72 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

int Pi0MassAnalysis::npi0
private

Definition at line 80 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 80 of file Pi0MassAnalysis.h

Referenced by Init(), and process_event().

float Pi0MassAnalysis::photonClusterProbability
private

Definition at line 70 of file Pi0MassAnalysis.h.

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

Referenced by process_event(), and SetPhotonClusterProbability().

float Pi0MassAnalysis::pi0cand_eta[100000]
private

Definition at line 83 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::pi0cand_mass[100000]
private

Definition at line 85 of file Pi0MassAnalysis.h.

View newest version in sPHENIX GitHub at line 85 of file Pi0MassAnalysis.h

Referenced by Init(), and process_event().

float Pi0MassAnalysis::pi0cand_phi[100000]
private

Definition at line 84 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

float Pi0MassAnalysis::pi0cand_pt[100000]
private

Definition at line 82 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

TH1F* Pi0MassAnalysis::pi0MassHist
private

Definition at line 64 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().

TH1F* Pi0MassAnalysis::pi0MassHistEtaDep[24]
private

Definition at line 65 of file Pi0MassAnalysis.h.

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

Referenced by Init(), and process_event().


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