ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/CaloReco/BEmcRec.h>
Public Member Functions | |
BEmcRec () | |
virtual | ~BEmcRec () |
void | SetVertex (float *vv) |
void | SetDim (int nx, int ny) |
bool | SetTowerGeometry (int ix, int iy, float xx, float yy, float zz) |
bool | GetTowerGeometry (int ix, int iy, TowerGeom &geom) |
bool | CompleteTowerGeometry () |
void | PrintTowerGeometry (const std::string &fname) |
void | SetPlanarGeometry () |
void | SetCylindricalGeometry () |
bool | isCylindrical () const |
void | SetProfileProb (bool bprob) |
void | SetCalotype (int caloid) |
void | SetScinSize (float S_S) |
int | GetNx () const |
int | GetNy () const |
int | GetCalotype () const |
float | GetScinSize () const |
float | GetVx () const |
float | GetVy () const |
float | GetVz () const |
void | SetPeakThreshold (float Thresh) |
float | GetPeakThreshold () |
void | SetTowerThreshold (float Thresh) |
float | GetTowerThreshold () |
void | SetModules (std::vector< EmcModule > const *modules) |
std::vector< EmcModule > * | GetModules () |
std::vector< EmcCluster > * | GetClusters () |
int | iTowerDist (int ix1, int ix2) |
float | fTowerDist (float x1, float x2) |
int | FindClusters () |
void | Momenta (std::vector< EmcModule > *, float &, float &, float &, float &, float &, float &, float thresh=0) |
void | Tower2Global (float E, float xC, float yC, float &xA, float &yA, float &zA) |
float | GetTowerEnergy (int iy, int iz, std::vector< EmcModule > *plist) |
float | PredictEnergy (float, float, float, int, int) |
float | PredictEnergyProb (float en, float xcg, float ycg, int ix, int iy) |
virtual float | PredictEnergyParam (float, float, float) |
virtual void | CorrectEnergy (float energy, float, float, float &ecorr) |
virtual void | CorrectECore (float ecore, float, float, float &ecorecorr) |
virtual void | CorrectPosition (float, float x, float y, float &xcorr, float &ycorr) |
virtual void | CorrectShowerDepth (float, float x, float y, float z, float &xc, float &yc, float &zc) |
virtual void | LoadProfile (const std::string &fname) |
virtual void | GetImpactThetaPhi (float, float, float, float &theta, float &phi) |
float | GetProb (std::vector< EmcModule > HitList, float e, float xg, float yg, float zg, float &chi2, int &ndf) |
void | SetProbNoiseParam (float rn) |
float | GetProbNoiseParam () |
virtual std::string | Name () const |
virtual void | Name (const std::string &name) |
Static Public Member Functions | |
static int | HitNCompare (const void *, const void *) |
static int | HitACompare (const void *, const void *) |
static void | CopyVector (int *, int *, int) |
static void | CopyVector (EmcModule *, EmcModule *, int) |
static void | ZeroVector (int *, int) |
static void | ZeroVector (float *, int) |
static void | ZeroVector (EmcModule *, int) |
Protected Attributes | |
bool | bCYL = true |
bool | bProfileProb = false |
int | fNx = -1 |
int | fNy = -1 |
std::map< int, TowerGeom > | fTowerGeom |
float | fVx = 0. |
float | fVy = 0. |
float | fVz = 0. |
std::vector< EmcModule > * | fModules |
std::vector< EmcCluster > * | fClusters |
float | fgProbNoiseParam = 0.04 |
float | fgTowerThresh = 0.01 |
float | fgMinPeakEnergy = 0.08 |
BEmcProfile * | _emcprof = nullptr |
Static Protected Attributes | |
static int const | fgMaxLen = 1000 |
Private Member Functions | |
BEmcRec (const BEmcRec &)=delete | |
Private Attributes | |
std::string | m_ThisName = "NOTSET" |
int | Calorimeter_ID = 0 |
float | Scin_size = NAN |
Definition at line 29 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 29 of file BEmcRec.h
BEmcRec::BEmcRec | ( | ) |
Definition at line 23 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 23 of file BEmcRec.cc
References fClusters, fModules, and fTowerGeom.
|
virtual |
Definition at line 32 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 32 of file BEmcRec.cc
|
privatedelete |
bool BEmcRec::CompleteTowerGeometry | ( | ) |
Definition at line 119 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 119 of file BEmcRec.cc
References TowerGeom::dX, TowerGeom::dY, TowerGeom::dZ, fNx, fTowerGeom, GetTowerGeometry(), incremental_prev_tag::idx, it, TowerGeom::Xcenter, TowerGeom::Ycenter, and TowerGeom::Zcenter.
Referenced by RawClusterBuilderTemplate::InitRun().
Definition at line 802 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 802 of file BEmcRec.cc
References N.
Referenced by FindClusters().
Definition at line 810 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 810 of file BEmcRec.cc
References N.
|
inlinevirtual |
Reimplemented in BEmcRecCEMC, BEmcRecEEMC, and BEmcRecFEMC.
Definition at line 93 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 93 of file BEmcRec.h
Referenced by EmcCluster::GetECoreCorrected().
|
inlinevirtual |
Reimplemented in BEmcRecCEMC, BEmcRecEEMC, and BEmcRecFEMC.
Definition at line 92 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 92 of file BEmcRec.h
References energy.
|
inlinevirtual |
Reimplemented in BEmcRecCEMC, BEmcRecEEMC, and BEmcRecFEMC.
Definition at line 94 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 94 of file BEmcRec.h
Referenced by EmcCluster::GetCorrPos().
|
inlinevirtual |
Reimplemented in BEmcRecCEMC, BEmcRecEEMC, and BEmcRecFEMC.
Definition at line 99 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 99 of file BEmcRec.h
Referenced by Tower2Global().
int BEmcRec::FindClusters | ( | ) |
Definition at line 275 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 275 of file BEmcRec.cc
References bCYL, CopyVector(), fClusters, fgMaxLen, fModules, fNx, HitNCompare(), EmcModule::ich, EmcCluster::ReInitialize(), and ZeroVector().
Referenced by RawClusterBuilderTemplate::process_event().
float BEmcRec::fTowerDist | ( | float | x1, |
float | x2 | ||
) |
Definition at line 256 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 256 of file BEmcRec.cc
References kdfinder::abs(), bCYL, fNx, and x1.
Referenced by EmcCluster::GetSubClusters(), PredictEnergy(), and PredictEnergyProb().
|
inline |
Definition at line 62 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 62 of file BEmcRec.h
References Calorimeter_ID.
Referenced by BEmcRecEEMC::CorrectShowerDepth().
|
inline |
|
inlinevirtual |
Reimplemented in BEmcRecEEMC, BEmcRecFEMC, and BEmcRecCEMC.
Definition at line 106 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 106 of file BEmcRec.h
Referenced by GetProb(), and PredictEnergyProb().
|
inline |
|
inline |
Definition at line 60 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 60 of file BEmcRec.h
References fNx.
Referenced by EmcCluster::GetE9(), EmcCluster::GetECore(), EmcCluster::GetSubClusters(), and EmcCluster::GetTowerEnergy().
|
inline |
|
inline |
Definition at line 68 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 68 of file BEmcRec.h
References fgMinPeakEnergy.
Referenced by EmcCluster::GetSubClusters().
float BEmcRec::GetProb | ( | std::vector< EmcModule > | HitList, |
float | e, | ||
float | xg, | ||
float | yg, | ||
float | zg, | ||
float & | chi2, | ||
int & | ndf | ||
) |
Definition at line 659 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 659 of file BEmcRec.cc
References _emcprof, e1, e2, e3, e4, check_license::err(), GetImpactThetaPhi(), GetProbNoiseParam(), GetTowerEnergy(), GetTowerThreshold(), int(), BEmcProfile::IsLoaded(), Momenta(), G4InuclParticleNames::nn, NP, phi, BEmcProfile::PredictEnergy(), theta(), and zz.
Referenced by EmcCluster::GetProb().
|
inline |
|
inline |
Definition at line 640 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 640 of file BEmcRec.cc
References fNx, izt, and G4InuclParticleNames::nn.
Referenced by GetProb().
Definition at line 90 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 90 of file BEmcRec.cc
References fNx, fNy, fTowerGeom, and it.
Referenced by CompleteTowerGeometry(), and Tower2Global().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 763 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 763 of file BEmcRec.cc
Definition at line 756 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 756 of file BEmcRec.cc
Referenced by FindClusters(), and EmcCluster::GetSubClusters().
|
inline |
Definition at line 237 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 237 of file BEmcRec.cc
References kdfinder::abs(), bCYL, and fNx.
Referenced by EmcCluster::GetE9(), EmcCluster::GetSubClusters(), Momenta(), and PredictEnergyProb().
|
virtual |
Reimplemented in BEmcRecEEMC, BEmcRecFEMC, and BEmcRecCEMC.
Definition at line 51 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 51 of file BEmcRec.cc
References Name().
Referenced by RawClusterBuilderTemplate::LoadProfile().
void BEmcRec::Momenta | ( | std::vector< EmcModule > * | phit, |
float & | pe, | ||
float & | px, | ||
float & | py, | ||
float & | pxx, | ||
float & | pyy, | ||
float & | pyx, | ||
float | thresh = 0 |
||
) |
Definition at line 417 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 417 of file BEmcRec.cc
References a, e, emax, fNx, incremental_prev_tag::idx, iTowerDist(), x, xx, and y.
Referenced by EmcCluster::GetCorrPos(), EmcCluster::GetE4(), EmcCluster::GetE9(), EmcCluster::GetECore(), EmcCluster::GetECoreCorrected(), EmcCluster::GetMoments(), and GetProb().
|
inlinevirtual |
Definition at line 116 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 116 of file BEmcRec.h
References m_ThisName.
Referenced by BEmcRecEEMC::BEmcRecEEMC(), and LoadProfile().
|
inlinevirtual |
Definition at line 117 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 117 of file BEmcRec.h
References m_ThisName.
Definition at line 507 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 507 of file BEmcRec.cc
References _emcprof, bProfileProb, dx, dy, fTowerDist(), PredictEnergyParam(), and PredictEnergyProb().
Referenced by EmcCluster::GetECore(), and EmcCluster::GetSubClusters().
|
virtual |
Definition at line 516 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 516 of file BEmcRec.cc
References dx, dy, e, r1, and r2.
Referenced by PredictEnergy().
Definition at line 568 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 568 of file BEmcRec.cc
References _emcprof, dx, dy, e, check_license::err(), fNx, fTowerDist(), GetImpactThetaPhi(), incremental_prev_tag::idx, int(), iTowerDist(), phi, BEmcProfile::PredictEnergy(), BEmcProfile::PredictEnergyR(), theta(), and Tower2Global().
Referenced by PredictEnergy().
void BEmcRec::PrintTowerGeometry | ( | const std::string & | fname | ) |
Definition at line 56 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 56 of file BEmcRec.cc
References TowerGeom::dX, TowerGeom::dY, TowerGeom::dZ, fNx, fNy, fTowerGeom, it, TowerGeom::Xcenter, TowerGeom::Ycenter, and TowerGeom::Zcenter.
Referenced by RawClusterBuilderTemplate::InitRun().
Definition at line 57 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 57 of file BEmcRec.h
References Calorimeter_ID.
Referenced by RawClusterBuilderTemplate::InitRun().
|
inline |
|
inline |
Definition at line 67 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 67 of file BEmcRec.h
References fgMinPeakEnergy.
|
inline |
Definition at line 52 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 52 of file BEmcRec.h
References bCYL.
Referenced by BEmcRecEEMC::BEmcRecEEMC(), and RawClusterBuilderTemplate::SetPlanarGeometry().
|
inline |
Definition at line 113 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 113 of file BEmcRec.h
References fgProbNoiseParam.
Referenced by RawClusterBuilderTemplate::Detector(), and RawClusterBuilderTemplate::process_event().
|
inline |
Definition at line 56 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 56 of file BEmcRec.h
References bProfileProb.
Referenced by RawClusterBuilderTemplate::process_event().
|
inline |
Definition at line 102 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 102 of file BEmcRec.cc
References TowerGeom::dX, TowerGeom::dY, TowerGeom::dZ, fNx, fNy, fTowerGeom, TowerGeom::Xcenter, xx, TowerGeom::Ycenter, TowerGeom::Zcenter, and zz.
Referenced by RawClusterBuilderTemplate::InitRun().
|
inline |
Definition at line 69 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 69 of file BEmcRec.h
References fgTowerThresh.
Referenced by RawClusterBuilderTemplate::Detector(), and RawClusterBuilderTemplate::process_event().
|
inline |
Definition at line 35 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 35 of file BEmcRec.h
Referenced by RawClusterBuilderTemplate::Detector(), and RawClusterBuilderTemplate::process_event().
void BEmcRec::Tower2Global | ( | float | E, |
float | xC, | ||
float | yC, | ||
float & | xA, | ||
float & | yA, | ||
float & | zA | ||
) |
Definition at line 178 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 178 of file BEmcRec.cc
References CorrectShowerDepth(), TowerGeom::dX, TowerGeom::dY, TowerGeom::dZ, fNx, fNy, GetTowerGeometry(), incremental_prev_tag::idx, m_ThisName, Xc, TowerGeom::Xcenter, TowerGeom::Ycenter, Zc, and TowerGeom::Zcenter.
Referenced by BEmcRecEEMC::CorrectPosition(), EmcCluster::GetGlobalPos(), and PredictEnergyProb().
Definition at line 773 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 773 of file BEmcRec.cc
Referenced by FindClusters(), and EmcCluster::GetSubClusters().
Definition at line 781 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 781 of file BEmcRec.cc
Definition at line 789 of file BEmcRec.cc.
View newest version in sPHENIX GitHub at line 789 of file BEmcRec.cc
References EmcModule::amp, EmcModule::ich, N, and EmcModule::tof.
|
protected |
Definition at line 147 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 147 of file BEmcRec.h
Referenced by GetProb(), BEmcRecEEMC::LoadProfile(), PredictEnergy(), PredictEnergyProb(), and ~BEmcRec().
|
protected |
Definition at line 130 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 130 of file BEmcRec.h
Referenced by FindClusters(), fTowerDist(), isCylindrical(), iTowerDist(), SetCylindricalGeometry(), and SetPlanarGeometry().
|
protected |
Definition at line 131 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 131 of file BEmcRec.h
Referenced by PredictEnergy(), and SetProfileProb().
|
private |
Definition at line 151 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 151 of file BEmcRec.h
Referenced by GetCalotype(), and SetCalotype().
|
protected |
Definition at line 140 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 140 of file BEmcRec.h
Referenced by BEmcRec(), FindClusters(), GetClusters(), and ~BEmcRec().
|
staticprotected |
Definition at line 145 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 145 of file BEmcRec.h
Referenced by FindClusters().
|
protected |
Definition at line 144 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 144 of file BEmcRec.h
Referenced by GetPeakThreshold(), and SetPeakThreshold().
|
protected |
Definition at line 142 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 142 of file BEmcRec.h
Referenced by GetProbNoiseParam(), and SetProbNoiseParam().
|
protected |
Definition at line 143 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 143 of file BEmcRec.h
Referenced by GetTowerThreshold(), and SetTowerThreshold().
|
protected |
Definition at line 139 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 139 of file BEmcRec.h
Referenced by BEmcRec(), FindClusters(), GetModules(), SetModules(), and ~BEmcRec().
|
protected |
Definition at line 132 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 132 of file BEmcRec.h
Referenced by CompleteTowerGeometry(), FindClusters(), fTowerDist(), GetNx(), GetTowerEnergy(), GetTowerGeometry(), iTowerDist(), Momenta(), PredictEnergyProb(), PrintTowerGeometry(), SetDim(), SetTowerGeometry(), and Tower2Global().
|
protected |
Definition at line 133 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 133 of file BEmcRec.h
Referenced by GetNy(), GetTowerGeometry(), PrintTowerGeometry(), SetDim(), SetTowerGeometry(), and Tower2Global().
Definition at line 134 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 134 of file BEmcRec.h
Referenced by BEmcRec(), CompleteTowerGeometry(), GetTowerGeometry(), PrintTowerGeometry(), and SetTowerGeometry().
|
protected |
|
protected |
|
protected |
Definition at line 137 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 137 of file BEmcRec.h
Referenced by BEmcRecEEMC::CorrectPosition(), BEmcRecEEMC::CorrectShowerDepth(), BEmcRecEEMC::GetImpactThetaPhi(), GetVz(), and SetVertex().
|
private |
|
private |
Definition at line 152 of file BEmcRec.h.
View newest version in sPHENIX GitHub at line 152 of file BEmcRec.h
Referenced by GetScinSize(), and SetScinSize().