Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/CaloReco/BEmcCluster.h>
Public Member Functions | |
EmcCluster () | |
Constructor (zero Hit List) | |
EmcCluster (BEmcRec *sector) | |
EmcCluster (const std::vector< EmcModule > &hlist, BEmcRec *sector) | |
Constructor (inputs Hit List) | |
~EmcCluster () override | |
void | ReInitialize (const std::vector< EmcModule > &hlist) |
Reinitializes EmcCluster supplying new Hit List. | |
int | GetNofHits () |
Returns number of EmcModules in EmcCluster. | |
std::vector< EmcModule > | GetHitList () |
Returns EmcCluster fHitList. | |
EmcModule | GetMaxTower () |
Returns the EmcModule with the maximum energy. | |
float | GetTowerEnergy (int ich) |
Returns the EmcModule corresponding to the reconstructed impact tower. | |
float | GetTowerEnergy (int ix, int iy) |
Returns the energy of the tower ix,iy. | |
float | GetTowerToF (int ich) |
Returns the ToF of the ich-tower. | |
float | GetE4 () |
Returns the energy in 2x2 towers around the cluster Center of Gravity. | |
float | GetE9 () |
Returns the energy in 3x3 towers around the cluster Center of Gravity. | |
float | GetE9 (int ich) |
Returns the energy in 3x3 towers around the tower ich. | |
float | GetECore () |
Returns the cluster energy taking into account towers with E>Ethresh. | |
float | GetECoreCorrected () |
Ecore corrected for energy leak sidewise core towers. | |
float | GetTotalEnergy () |
Returns the EmcCluster total energy. | |
void | GetMoments (float &pxcg, float &pycg, float &pxx, float &pxy, float &pyy) |
Returns EmcCluster 1-st (pxcg,pycg) and 2-d momenta (pxx,pxy,pyy) | |
void | GetCorrPos (float &xc, float &yc) |
Returns the EmcCluster corrected position in Sector (SM) frame. | |
void | GetGlobalPos (float &xg, float &yg, float &zg) |
Returns the EmcCluster position in PHENIX global coord system. | |
int | GetSubClusters (std::vector< EmcCluster > &sClList, std::vector< EmcModule > &ppeaks) |
Splits the Cluster onto SubClusters; returns list of clusters and list of peak towers corresponding to subclusters. | |
float | GetProb (float &chi2, int &ndf) |
Static Public Member Functions | |
static int | max (int a, int b) |
static float | max (float a, float b) |
static double | max (double a, double b) |
static int | min (int a, int b) |
static float | min (float a, float b) |
static double | min (double a, double b) |
static int | ABS (int x) |
static float | ABS (float x) |
static double | ABS (double x) |
static int | lowint (float x) |
Protected Attributes | |
std::vector< EmcModule > | fHitList |
BEmcRec * | fOwner |
Static Protected Attributes | |
static int const | fgMaxNofPeaks = 1000 |
static int const | fgPeakIter = 6 |
static float const | fgEmin = 0.002 |
The 1-st level of the EMCal clustering: cluster is a set of contiguous towers.
Only used internally by clustering routines.
Definition at line 43 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 43 of file BEmcCluster.h
|
inline |
Constructor (zero Hit List)
Definition at line 47 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 47 of file BEmcCluster.h
|
inlineexplicit |
Definition at line 52 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 52 of file BEmcCluster.h
Constructor (inputs Hit List)
Definition at line 59 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 59 of file BEmcCluster.h
|
inlineoverride |
Definition at line 67 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 67 of file BEmcCluster.h
|
inlinestatic |
Definition at line 153 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 153 of file BEmcCluster.h
Referenced by BEmcRecCEMC::CorrectPosition(), and GetSubClusters().
|
inlinestatic |
Definition at line 157 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 157 of file BEmcCluster.h
Definition at line 161 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 161 of file BEmcCluster.h
void EmcCluster::GetCorrPos | ( | float & | xc, |
float & | yc | ||
) |
Returns the EmcCluster corrected position in Sector (SM) frame.
Definition at line 40 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 40 of file BEmcCluster.cc
References BEmcRec::CorrectPosition(), Acts::UnitConstants::e, fHitList, fOwner, BEmcRec::Momenta(), ambiguity_solver_full_chain::x, Acts::Svg::View::xy(), and y.
Referenced by GetGlobalPos().
float EmcCluster::GetE4 | ( | ) |
Returns the energy in 2x2 towers around the cluster Center of Gravity.
Definition at line 195 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 195 of file BEmcCluster.cc
References fHitList, fOwner, GetTowerEnergy(), BEmcRec::Momenta(), and Acts::Svg::View::xy().
float EmcCluster::GetE9 | ( | ) |
Returns the energy in 3x3 towers around the cluster Center of Gravity.
Definition at line 226 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 226 of file BEmcCluster.cc
References fHitList, fOwner, BEmcRec::GetNx(), BEmcRec::Momenta(), and Acts::Svg::View::xy().
float EmcCluster::GetE9 | ( | int | ich | ) |
Returns the energy in 3x3 towers around the tower ich.
Definition at line 249 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 249 of file BEmcCluster.cc
References fHitList, fOwner, BEmcRec::GetNx(), ambiguity_solver_full_chain::idx, and BEmcRec::iTowerDist().
float EmcCluster::GetECore | ( | ) |
Returns the cluster energy taking into account towers with E>Ethresh.
Definition at line 156 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 156 of file BEmcCluster.cc
References energy, fHitList, fOwner, BEmcRec::GetNx(), BEmcRec::Momenta(), BEmcRec::PredictEnergy(), and Acts::Svg::View::xy().
Referenced by GetECoreCorrected().
float EmcCluster::GetECoreCorrected | ( | ) |
Ecore corrected for energy leak sidewise core towers.
Definition at line 144 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 144 of file BEmcCluster.cc
References BEmcRec::CorrectECore(), Acts::UnitConstants::e, fHitList, fOwner, GetECore(), BEmcRec::Momenta(), ambiguity_solver_full_chain::x, Acts::Svg::View::xy(), and y.
void EmcCluster::GetGlobalPos | ( | float & | xg, |
float & | yg, | ||
float & | zg | ||
) |
Returns the EmcCluster position in PHENIX global coord system.
Definition at line 53 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 53 of file BEmcCluster.cc
References Acts::UnitConstants::e, fOwner, GetCorrPos(), GetTotalEnergy(), and BEmcRec::Tower2Global().
Referenced by GetProb().
|
inline |
Returns EmcCluster fHitList.
Definition at line 80 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 80 of file BEmcCluster.h
References fHitList.
EmcModule EmcCluster::GetMaxTower | ( | ) |
Returns the EmcModule with the maximum energy.
Definition at line 281 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 281 of file BEmcCluster.cc
References EmcModule::amp, fHitList, EmcModule::ich, and EmcModule::tof.
Referenced by GetSubClusters().
void EmcCluster::GetMoments | ( | float & | pxcg, |
float & | pycg, | ||
float & | pxx, | ||
float & | pxy, | ||
float & | pyy | ||
) |
Returns EmcCluster 1-st (pxcg,pycg) and 2-d momenta (pxx,pxy,pyy)
Definition at line 311 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 311 of file BEmcCluster.cc
References Acts::UnitConstants::e, fHitList, fOwner, and BEmcRec::Momenta().
|
inline |
Returns number of EmcModules in EmcCluster.
Definition at line 78 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 78 of file BEmcCluster.h
References fHitList.
float EmcCluster::GetProb | ( | float & | chi2, |
int & | ndf | ||
) |
Definition at line 320 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 320 of file BEmcCluster.cc
References Acts::UnitConstants::e, fHitList, fOwner, GetGlobalPos(), BEmcRec::GetProb(), and GetTotalEnergy().
int EmcCluster::GetSubClusters | ( | std::vector< EmcCluster > & | sClList, |
std::vector< EmcModule > & | ppeaks | ||
) |
Splits the Cluster onto SubClusters; returns list of clusters and list of peak towers corresponding to subclusters.
Definition at line 331 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 331 of file BEmcCluster.cc
References KFPMath::a, ABS(), EmcModule::amp, dy, fgEmin, fgMaxNofPeaks, fgPeakIter, fHitList, fOwner, BEmcRec::fTowerDist(), GetMaxTower(), BEmcRec::GetNx(), BEmcRec::GetPeakThreshold(), BEmcRec::HitNCompare(), i, EmcModule::ich, ambiguity_solver_full_chain::idx, in, BEmcRec::iTowerDist(), BEmcRec::PredictEnergy(), ReInitialize(), EmcModule::tof, and BEmcRec::ZeroVector().
float EmcCluster::GetTotalEnergy | ( | ) |
Returns the EmcCluster total energy.
Definition at line 124 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 124 of file BEmcCluster.cc
References fHitList.
Referenced by GetGlobalPos(), and GetProb().
float EmcCluster::GetTowerEnergy | ( | int | ich | ) |
Returns the EmcModule corresponding to the reconstructed impact tower.
Returns the energy of the ich-tower
Definition at line 64 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 64 of file BEmcCluster.cc
References fHitList.
Referenced by GetE4(), and GetTowerEnergy().
float EmcCluster::GetTowerEnergy | ( | int | ix, |
int | iy | ||
) |
Returns the energy of the tower ix,iy.
Definition at line 86 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 86 of file BEmcCluster.cc
References fHitList, fOwner, BEmcRec::GetNx(), and GetTowerEnergy().
float EmcCluster::GetTowerToF | ( | int | ich | ) |
Returns the ToF of the ich-tower.
Definition at line 102 of file BEmcCluster.cc.
View newest version in sPHENIX GitHub at line 102 of file BEmcCluster.cc
References fHitList.
|
inlinestatic |
Definition at line 166 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 166 of file BEmcCluster.h
Referenced by BEmcRecCEMC::CorrectPosition().
|
inlinestatic |
Definition at line 127 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 127 of file BEmcCluster.h
References KFPMath::b.
|
inlinestatic |
Definition at line 131 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 131 of file BEmcCluster.h
References KFPMath::b.
Definition at line 135 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 135 of file BEmcCluster.h
References KFPMath::b.
|
inlinestatic |
Definition at line 140 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 140 of file BEmcCluster.h
References KFPMath::b.
|
inlinestatic |
Definition at line 144 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 144 of file BEmcCluster.h
References KFPMath::b.
Definition at line 148 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 148 of file BEmcCluster.h
References KFPMath::b.
|
inline |
Reinitializes EmcCluster supplying new Hit List.
Definition at line 73 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 73 of file BEmcCluster.h
References fHitList.
Referenced by BEmcRec::FindClusters(), and GetSubClusters().
|
staticprotected |
Definition at line 122 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 122 of file BEmcCluster.h
Referenced by GetSubClusters().
|
staticprotected |
Definition at line 120 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 120 of file BEmcCluster.h
Referenced by GetSubClusters().
|
staticprotected |
Definition at line 121 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 121 of file BEmcCluster.h
Referenced by GetSubClusters().
|
protected |
Definition at line 115 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 115 of file BEmcCluster.h
Referenced by GetCorrPos(), GetE4(), GetE9(), GetECore(), GetECoreCorrected(), GetHitList(), GetMaxTower(), GetMoments(), GetNofHits(), GetProb(), GetSubClusters(), GetTotalEnergy(), GetTowerEnergy(), GetTowerToF(), and ReInitialize().
|
protected |
Definition at line 117 of file BEmcCluster.h.
View newest version in sPHENIX GitHub at line 117 of file BEmcCluster.h
Referenced by GetCorrPos(), GetE4(), GetE9(), GetECore(), GetECoreCorrected(), GetGlobalPos(), GetMoments(), GetProb(), GetSubClusters(), and GetTowerEnergy().