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

#include <analysis/blob/master/cemcRecoAna/src/cemcReco.h>

+ Inheritance diagram for cemcReco:
+ Collaboration diagram for cemcReco:

Public Member Functions

 cemcReco (const std::string &name, const std::string &outName)
 
 ~cemcReco () 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 calculateTSP (RawCluster *cluster, RawClusterContainer *cluster_container, RawTowerContainer *towerContainer, RawTowerGeomContainer *towerGeo, GlobalVertex *vtx)
 
float coneSum (RawCluster *cluster, RawClusterContainer *cluster_container, SvtxTrackMap *trackmap, float coneradius, GlobalVertex *vtx)
 
void letsSumw2 ()
 
float getpT (PHG4Particle *particle)
 
float FindTruthPhoton (float cluster_eta, float cluster_phi, float cluster_energy, PHG4TruthInfoContainer *particle)
 
float getEta (PHG4Particle *particle)
 
float getPhi (PHG4Particle *particle)
 
bool compareVertices (HepMC::FourVector hepMCvtx, PHG4VtxPoint *g4vtx)
 
bool checkBarcode (int motherBarcode, std::vector< int > &motherBarcodes)
 
bool checkBarcode (int motherBarcode, std::vector< PHG4Particle * > &motherBarcodes)
 
int getEtaBin (float eta)
 

Private Attributes

int nEvent
 
std::string Outfile
 
CaloEvalStackcaloevalstack
 
TH3F * ePi0InvMassEcut [2][nEtaBins]
 
TH1F * photonE
 
TH1F * clusterDisp
 
TH2F * clusterChi2
 
TH2F * clusterProbPhoton
 
TH1F * isoPhoE
 
TH2F * isoPhoChi2
 
TH2F * isoPhoProb
 
TH3F * deltaR_E_invMass
 
TH3F * asym_E_invMass
 
TH2F * tsp_E
 
TH2F * tsp_E_iso
 
TH1F * truth_pi0_E [nEtaBins]
 
TH1F * truth_eta_E
 
TH1F * truth_dpho_E
 
TH1F * pi0E_truth_reco
 
TH2F * deltaR_E_truth_pi0
 
TH3F * invMass_eta
 
TH3F * dPhoChi2
 
TH3F * dPhoProb
 
TH3F * pi0Chi2
 
TH3F * pi0Prob
 
TH3F * etaChi2
 
TH3F * etaProb
 
TH3F * electronChi2
 
TH3F * electronProb
 
TH3F * hadronChi2
 
TH3F * hadronProb
 
TH2F * etaFrac
 
TH2F * pi0Frac
 
TH3F * unmatchedLocale
 
TH1F * unmatchedE
 
TH3F * invMassPhoPi0
 
TH3F * invMassEPhi
 
TH2F * eFrac_dr_primary
 
TH2F * eFrac_dr_secondary
 
TH2F * asym_E_truth_pi0
 
Fun4AllHistoManagerhm = nullptr
 
TFile * out
 
const float pi = 3.1415926
 
float trackErrorCount
 

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 41 of file cemcReco.h.

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

Constructor & Destructor Documentation

cemcReco::~cemcReco ( )
override

Definition at line 115 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 115 of file cemcReco.cc

Member Function Documentation

float cemcReco::calculateTSP ( RawCluster cluster,
RawClusterContainer cluster_container,
RawTowerContainer towerContainer,
RawTowerGeomContainer towerGeo,
GlobalVertex vtx 
)
private

Definition at line 961 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 961 of file cemcReco.cc

References eta, KF_timing::etabin, RawTower::get_bineta(), RawTower::get_binphi(), RawTower::get_energy(), RawTowerGeomContainer::get_etacenter(), RawTowerGeomContainer::get_phicenter(), RawCluster::get_towers(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawClusterUtility::GetECoreVec(), RawTowerContainer::getTower(), ActsTests::PropagationDatasets::phi, and physmon_track_finding_ttbar::r.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool cemcReco::checkBarcode ( int  motherBarcode,
std::vector< int > &  motherBarcodes 
)
private

Definition at line 1075 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1075 of file cemcReco.cc

References i.

Referenced by process_event().

+ Here is the caller graph for this function:

bool cemcReco::checkBarcode ( int  motherBarcode,
std::vector< PHG4Particle * > &  motherBarcodes 
)
private

Definition at line 1086 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1086 of file cemcReco.cc

References i.

bool cemcReco::compareVertices ( HepMC::FourVector  hepMCvtx,
PHG4VtxPoint g4vtx 
)
private

Definition at line 1029 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1029 of file cemcReco.cc

float cemcReco::coneSum ( RawCluster cluster,
RawClusterContainer cluster_container,
SvtxTrackMap trackmap,
float  coneradius,
GlobalVertex vtx 
)
private

Definition at line 883 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 883 of file cemcReco.cc

References SvtxTrackMap::begin(), INTTVtxZ::dphi, SvtxTrackMap::end(), RawCluster::get_energy(), SvtxTrack::get_eta(), RawCluster::get_phi(), SvtxTrack::get_phi(), SvtxTrack::get_px(), SvtxTrack::get_py(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawCluster::get_z(), RawClusterContainer::getClusters(), RawClusterUtility::GetECoreVec(), and pi.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int cemcReco::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 810 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 810 of file cemcReco.cc

References asym_E_invMass, asym_E_truth_pi0, cd(), clusterChi2, clusterProbPhoton, deltaR_E_invMass, deltaR_E_truth_pi0, dPhoChi2, dPhoProb, eFrac_dr_primary, eFrac_dr_secondary, electronChi2, electronProb, ePi0InvMassEcut, etaChi2, etaFrac, etaProb, Fun4AllReturnCodes::EVENT_OK, hadronChi2, hadronProb, i, invMass_eta, invMassEPhi, invMassPhoPi0, isoPhoChi2, isoPhoE, isoPhoProb, j, nEtaBins, out, photonE, pi0Chi2, pi0E_truth_reco, pi0Frac, pi0Prob, truth_dpho_E, truth_eta_E, truth_pi0_E, tsp_E, tsp_E_iso, unmatchedE, unmatchedLocale, and Write().

+ Here is the call graph for this function:

int cemcReco::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 803 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 803 of file cemcReco.cc

References Fun4AllReturnCodes::EVENT_OK.

float cemcReco::FindTruthPhoton ( float  cluster_eta,
float  cluster_phi,
float  cluster_energy,
PHG4TruthInfoContainer particle 
)
private
float cemcReco::getEta ( PHG4Particle particle)
private

Definition at line 1059 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1059 of file cemcReco.cc

References merge_hashes::p.

Referenced by process_event().

+ Here is the caller graph for this function:

int cemcReco::getEtaBin ( float  eta)
private

Definition at line 1098 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1098 of file cemcReco.cc

References i, and nEtaBins.

Referenced by process_event().

+ Here is the caller graph for this function:

float cemcReco::getPhi ( PHG4Particle particle)
private

Definition at line 1069 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 1069 of file cemcReco.cc

References ActsTests::PropagationDatasets::phi.

Referenced by process_event().

+ Here is the caller graph for this function:

float cemcReco::getpT ( PHG4Particle particle)
private
int cemcReco::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 121 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 121 of file cemcReco.cc

References asym_E_invMass, asym_E_truth_pi0, clusterChi2, clusterProbPhoton, deltaR_E_invMass, deltaR_E_truth_pi0, dPhoChi2, dPhoProb, eFrac_dr_primary, eFrac_dr_secondary, electronChi2, electronProb, ePi0InvMassEcut, etaChi2, etaFrac, etaProb, Fun4AllReturnCodes::EVENT_OK, hadronChi2, hadronProb, hm, i, Fun4AllServer::instance(), invMass_eta, invMassEPhi, invMassPhoPi0, isoPhoChi2, isoPhoE, isoPhoProb, j, nEtaBins, out, Outfile, photonE, pi0Chi2, pi0E_truth_reco, pi0Frac, pi0Prob, Print(), truth_dpho_E, truth_eta_E, truth_pi0_E, tsp_E, tsp_E_iso, unmatchedE, and unmatchedLocale.

+ Here is the call graph for this function:

int cemcReco::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 255 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 255 of file cemcReco.cc

References Fun4AllReturnCodes::EVENT_OK.

void cemcReco::letsSumw2 ( )
private
void cemcReco::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 878 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 878 of file cemcReco.cc

Referenced by Init().

+ Here is the caller graph for this function:

int cemcReco::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 871 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 871 of file cemcReco.cc

References Fun4AllReturnCodes::EVENT_OK.

int cemcReco::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 796 of file cemcReco.cc.

View newest version in sPHENIX GitHub at line 796 of file cemcReco.cc

References Fun4AllReturnCodes::EVENT_OK.

Member Data Documentation

TH3F* cemcReco::asym_E_invMass
private

Definition at line 115 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 115 of file cemcReco.h

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

TH2F* cemcReco::asym_E_truth_pi0
private

Definition at line 145 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 145 of file cemcReco.h

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

CaloEvalStack* cemcReco::caloevalstack
private

Definition at line 102 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 102 of file cemcReco.h

Referenced by process_event().

TH2F* cemcReco::clusterChi2
private

Definition at line 109 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 109 of file cemcReco.h

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

TH1F* cemcReco::clusterDisp
private

Definition at line 108 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 108 of file cemcReco.h

Referenced by cemcReco().

TH2F* cemcReco::clusterProbPhoton
private

Definition at line 110 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 110 of file cemcReco.h

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

TH3F* cemcReco::deltaR_E_invMass
private

Definition at line 114 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 114 of file cemcReco.h

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

TH2F* cemcReco::deltaR_E_truth_pi0
private

Definition at line 122 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 122 of file cemcReco.h

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

TH3F* cemcReco::dPhoChi2
private

Definition at line 124 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 124 of file cemcReco.h

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

TH3F* cemcReco::dPhoProb
private

Definition at line 125 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 125 of file cemcReco.h

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

TH2F* cemcReco::eFrac_dr_primary
private

Definition at line 142 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 142 of file cemcReco.h

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

TH2F* cemcReco::eFrac_dr_secondary
private

Definition at line 143 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 143 of file cemcReco.h

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

TH3F* cemcReco::electronChi2
private

Definition at line 130 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 130 of file cemcReco.h

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

TH3F* cemcReco::electronProb
private

Definition at line 131 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 131 of file cemcReco.h

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

TH3F* cemcReco::ePi0InvMassEcut[2][nEtaBins]
private

Definition at line 106 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 106 of file cemcReco.h

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

TH3F* cemcReco::etaChi2
private

Definition at line 128 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 128 of file cemcReco.h

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

TH2F* cemcReco::etaFrac
private

Definition at line 134 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 134 of file cemcReco.h

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

TH3F* cemcReco::etaProb
private

Definition at line 129 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 129 of file cemcReco.h

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

TH3F* cemcReco::hadronChi2
private

Definition at line 132 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 132 of file cemcReco.h

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

TH3F* cemcReco::hadronProb
private

Definition at line 133 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 133 of file cemcReco.h

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

Fun4AllHistoManager* cemcReco::hm = nullptr
private

Definition at line 149 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 149 of file cemcReco.h

Referenced by Init().

TH3F* cemcReco::invMass_eta
private

Definition at line 123 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 123 of file cemcReco.h

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

TH3F* cemcReco::invMassEPhi
private

Definition at line 139 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 139 of file cemcReco.h

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

TH3F* cemcReco::invMassPhoPi0
private

Definition at line 138 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 138 of file cemcReco.h

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

TH2F* cemcReco::isoPhoChi2
private

Definition at line 112 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 112 of file cemcReco.h

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

TH1F* cemcReco::isoPhoE
private

Definition at line 111 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 111 of file cemcReco.h

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

TH2F* cemcReco::isoPhoProb
private

Definition at line 113 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 113 of file cemcReco.h

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

int cemcReco::nEvent
private

Definition at line 84 of file cemcReco.h.

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

Referenced by process_event().

TFile* cemcReco::out
private

Definition at line 152 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 152 of file cemcReco.h

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

std::string cemcReco::Outfile
private

Definition at line 85 of file cemcReco.h.

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

Referenced by Init().

TH1F* cemcReco::photonE
private

Definition at line 107 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 107 of file cemcReco.h

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

const float cemcReco::pi = 3.1415926
private

Definition at line 154 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 154 of file cemcReco.h

Referenced by coneSum().

TH3F* cemcReco::pi0Chi2
private

Definition at line 126 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 126 of file cemcReco.h

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

TH1F* cemcReco::pi0E_truth_reco
private

Definition at line 121 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 121 of file cemcReco.h

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

TH2F* cemcReco::pi0Frac
private

Definition at line 135 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 135 of file cemcReco.h

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

TH3F* cemcReco::pi0Prob
private

Definition at line 127 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 127 of file cemcReco.h

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

float cemcReco::trackErrorCount
private

Definition at line 155 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 155 of file cemcReco.h

Referenced by process_event().

TH1F* cemcReco::truth_dpho_E
private

Definition at line 120 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 120 of file cemcReco.h

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

TH1F* cemcReco::truth_eta_E
private

Definition at line 119 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 119 of file cemcReco.h

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

TH1F* cemcReco::truth_pi0_E[nEtaBins]
private

Definition at line 118 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 118 of file cemcReco.h

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

TH2F* cemcReco::tsp_E
private

Definition at line 116 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 116 of file cemcReco.h

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

TH2F* cemcReco::tsp_E_iso
private

Definition at line 117 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 117 of file cemcReco.h

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

TH1F* cemcReco::unmatchedE
private

Definition at line 137 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 137 of file cemcReco.h

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

TH3F* cemcReco::unmatchedLocale
private

Definition at line 136 of file cemcReco.h.

View newest version in sPHENIX GitHub at line 136 of file cemcReco.h

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


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