BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecParameter Class Reference

#include <EmcRecParameter.h>

Public Member Functions

double ElectronicsNoiseLevel () const
 
double EThresholdSeed () const
 
double EThresholdCluster () const
 
double LogPosOffset () const
 
double TimeMin () const
 
double TimeMax () const
 
double MoliereRadius () const
 
double LateralProfile () const
 
double ECorr (int n) const
 
double SigE (int n) const
 
double SigTheta (int n) const
 
double SigPhi (int n) const
 
double HitNb (int n) const
 
double ElecBias (int n) const
 
double SmCut (int n) const
 
double Peak (int n) const
 
bool DigiCalib () const
 
void SetDigiCalib (bool digi)
 
void SetTimeMin (double min)
 
void SetTimeMax (double max)
 
void SetPeak (double e, int n)
 
std::string PositionMode1 () const
 
std::string PositionMode2 () const
 
void SetPositionMode (std::vector< std::string > &mode)
 
double ECorrMC (double eg, double theid) const
 
double ErrMC (double eg, double theid) const
 

Static Public Member Functions

static EmcRecParameterGetInstance ()
 
static bool Exist ()
 
static void Kill ()
 
static void lock ()
 
static void unlock ()
 

Detailed Description

Definition at line 18 of file EmcRecParameter.h.

Member Function Documentation

◆ DigiCalib()

bool EmcRecParameter::DigiCalib ( ) const
inline

Definition at line 72 of file EmcRecParameter.h.

72{ return digiCalib; }

Referenced by EmcRecDigit2Hit::Convert().

◆ ECorr()

double EmcRecParameter::ECorr ( int  n) const

Definition at line 177 of file EmcRecParameter.cxx.

178{
179 return eCorr[n];
180}
const Int_t n

Referenced by EmcRecShowerEnergy::ECorrection(), and EmcRecTofMatch::ECorrection().

◆ ECorrMC()

double EmcRecParameter::ECorrMC ( double  eg,
double  theid 
) const

Definition at line 226 of file EmcRecParameter.cxx.

227{
228 double Energy5x5=eg;
229 if(eg<0.02)eg=0.02;
230 if(eg>1.74)eg=1.74;
231 if(theid<=0)theid=0.001;
232 if(theid>=27)theid=26.999;
233 Float_t einter = eg + 0.00001;
234 Float_t tinter = theid+0.0001;
235 double ecor=dt->Interpolate(einter,tinter);
236 if(!(ecor))return Energy5x5;
237 if(ecor<0.5)return Energy5x5;
238 double EnergyCor=Energy5x5/ecor;
239 return EnergyCor;
240}

Referenced by EmcRecShowerEnergy::Energy().

◆ ElecBias()

double EmcRecParameter::ElecBias ( int  n) const

Definition at line 202 of file EmcRecParameter.cxx.

203{
204 return elecBias[n];
205}

Referenced by EmcRecDigit2Hit::Convert().

◆ ElectronicsNoiseLevel()

double EmcRecParameter::ElectronicsNoiseLevel ( ) const

Definition at line 137 of file EmcRecParameter.cxx.

138{
139 return fElectronicsNoiseLevel;
140}

Referenced by EmcRecDigit2Hit::Convert(), and EmcRecSplitWeighted::Split().

◆ ErrMC()

double EmcRecParameter::ErrMC ( double  eg,
double  theid 
) const

Definition at line 243 of file EmcRecParameter.cxx.

244{
245 if(eg<0.02)eg=0.02;
246 if(eg>1.74)eg=1.74;
247 if(theid<=0)theid=0.001;
248 if(theid>=27)theid=26.999;
249 Float_t einter = eg + 0.00001;
250 Float_t tinter = theid+0.0001;
251 double err=dtErr->Interpolate(einter,tinter);
252 return err;
253}

Referenced by EmcRecShowerEnergy::Energy().

◆ EThresholdCluster()

double EmcRecParameter::EThresholdCluster ( ) const

Definition at line 147 of file EmcRecParameter.cxx.

148{
149 return fEThresholdCluster;
150}

Referenced by EmcRecHit2Cluster::Convert(), and EmcRecSplitWeighted::Split().

◆ EThresholdSeed()

double EmcRecParameter::EThresholdSeed ( ) const

Definition at line 142 of file EmcRecParameter.cxx.

143{
144 return fEThresholdSeed;
145}

Referenced by EmcRecSeedEThreshold::EmcRecSeedEThreshold().

◆ Exist()

bool EmcRecParameter::Exist ( )
static

Definition at line 123 of file EmcRecParameter.cxx.

124{
125 return fpInstance!=0;
126}

Referenced by GetInstance(), and Kill().

◆ GetInstance()

◆ HitNb()

double EmcRecParameter::HitNb ( int  n) const

Definition at line 197 of file EmcRecParameter.cxx.

198{
199 return hitNb[n];
200}

Referenced by EmcRecShowerEnergy::Energy().

◆ Kill()

void EmcRecParameter::Kill ( )
static

Definition at line 128 of file EmcRecParameter.cxx.

129{
130 if(Exist()) {
131 delete fpInstance;
132 fpInstance=0;
133 }
134}

Referenced by EmcRec::finalize().

◆ LateralProfile()

double EmcRecParameter::LateralProfile ( ) const

Definition at line 172 of file EmcRecParameter.cxx.

173{
174 return fLateralProfile;
175}

Referenced by EmcRecSplitWeighted::Split().

◆ lock()

static void EmcRecParameter::lock ( )
inlinestatic

Definition at line 30 of file EmcRecParameter.h.

30 {
31 if(pthread_mutex_lock(&m_pthread_lock) != 0){
32 std::cerr << "LOCK MUTEX_LOCK @ GZFSSTREAM" << std::endl;
33 }
34 };

Referenced by EmcRec::EmcRec().

◆ LogPosOffset()

double EmcRecParameter::LogPosOffset ( ) const

Definition at line 152 of file EmcRecParameter.cxx.

153{
154 return fLogPosOffset;
155}

Referenced by EmcRecShowerPosLog::Position().

◆ MoliereRadius()

double EmcRecParameter::MoliereRadius ( ) const

Definition at line 167 of file EmcRecParameter.cxx.

168{
169 return fMoliereRadius;
170}

Referenced by EmcRecSplitWeighted::Split().

◆ Peak()

double EmcRecParameter::Peak ( int  n) const

Definition at line 212 of file EmcRecParameter.cxx.

213{
214 return peak[n];
215}

Referenced by EmcRecShowerEnergy::ECorrTheta().

◆ PositionMode1()

std::string EmcRecParameter::PositionMode1 ( ) const
inline

Definition at line 80 of file EmcRecParameter.h.

80{ return positionMode1; }

Referenced by EmcRecSplitWeighted::EmcRecSplitWeighted().

◆ PositionMode2()

std::string EmcRecParameter::PositionMode2 ( ) const
inline

Definition at line 81 of file EmcRecParameter.h.

81{ return positionMode2; }

Referenced by EmcRecShowerPosLog::Position().

◆ SetDigiCalib()

void EmcRecParameter::SetDigiCalib ( bool  digi)
inline

Definition at line 73 of file EmcRecParameter.h.

73{ digiCalib=digi; }

Referenced by EmcRec::EmcRec().

◆ SetPeak()

void EmcRecParameter::SetPeak ( double  e,
int  n 
)
inline

Definition at line 78 of file EmcRecParameter.h.

78{ peak[n]=e; }

◆ SetPositionMode()

void EmcRecParameter::SetPositionMode ( std::vector< std::string > &  mode)

Definition at line 217 of file EmcRecParameter.cxx.

218{
219 if(mode.size()==2) {
220 positionMode1=mode[0];
221 positionMode2=mode[1];
222 }
223}

Referenced by EmcRec::EmcRec().

◆ SetTimeMax()

void EmcRecParameter::SetTimeMax ( double  max)
inline

Definition at line 76 of file EmcRecParameter.h.

76{ fTimeMax=max; }

Referenced by EmcRec::EmcRec().

◆ SetTimeMin()

void EmcRecParameter::SetTimeMin ( double  min)
inline

Definition at line 75 of file EmcRecParameter.h.

75{ fTimeMin=min; }

Referenced by EmcRec::EmcRec().

◆ SigE()

double EmcRecParameter::SigE ( int  n) const

Definition at line 182 of file EmcRecParameter.cxx.

183{
184 return sigE[n];
185}

Referenced by EmcRecShowerEnergy::Energy().

◆ SigPhi()

double EmcRecParameter::SigPhi ( int  n) const

Definition at line 192 of file EmcRecParameter.cxx.

193{
194 return sigPhi[n];
195}

Referenced by EmcRecShowerPosLin::Position(), and EmcRecShowerPosLog::Position().

◆ SigTheta()

double EmcRecParameter::SigTheta ( int  n) const

Definition at line 187 of file EmcRecParameter.cxx.

188{
189 return sigTheta[n];
190}

Referenced by EmcRecShowerPosLin::Position(), and EmcRecShowerPosLog::Position().

◆ SmCut()

double EmcRecParameter::SmCut ( int  n) const

Definition at line 207 of file EmcRecParameter.cxx.

208{
209 return smCut[n];
210}

Referenced by EmcRecSplitWeighted::Split().

◆ TimeMax()

double EmcRecParameter::TimeMax ( ) const

Definition at line 162 of file EmcRecParameter.cxx.

163{
164 return fTimeMax;
165}

Referenced by EmcRecSplitWeighted::Split().

◆ TimeMin()

double EmcRecParameter::TimeMin ( ) const

Definition at line 157 of file EmcRecParameter.cxx.

158{
159 return fTimeMin;
160}

Referenced by EmcRecSplitWeighted::Split().

◆ unlock()

static void EmcRecParameter::unlock ( )
inlinestatic

Definition at line 35 of file EmcRecParameter.h.

35 {
36 if(pthread_mutex_unlock(&m_pthread_lock) != 0){
37 std::cerr << "UNLOCK MUTEX_LOCK @ GZFSSTREAM" << std::endl;
38 }
39 };

Referenced by EmcRec::EmcRec().


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