8#ifndef EMC_REC_PARAMETER_A_H
9#define EMC_REC_PARAMETER_A_H
31 if(pthread_mutex_lock(&m_pthread_lock) != 0){
32 std::cerr <<
"LOCK MUTEX_LOCK @ GZFSSTREAM" << std::endl;
36 if(pthread_mutex_unlock(&m_pthread_lock) != 0){
37 std::cerr <<
"UNLOCK MUTEX_LOCK @ GZFSSTREAM" << std::endl;
46 static pthread_mutex_t m_pthread_lock;
67 double SigE(
int n)
const;
75 double Peak(
int n)
const;
168 inline void SetBarrPosDataCor(
double p,
int nphi,
int ntheta) {barrPosDataCorPara[ntheta][nphi]=p; }
169 inline void SetWestPosDataCor(
double p,
int nphi,
int ntheta) {westPosDataCorPara[ntheta][nphi]=p; }
170 inline void SetEastPosDataCor(
double p,
int nphi,
int ntheta) {eastPosDataCorPara[ntheta][nphi]=p; }
172 inline void SetBarrPosMCCor(
double p,
int nphi,
int ntheta) {barrPosMCCorPara[ntheta][nphi]=p; }
173 inline void SetWestPosMCCor(
double p,
int nphi,
int ntheta) {westPosMCCorPara[ntheta][nphi]=p; }
174 inline void SetEastPosMCCor(
double p,
int nphi,
int ntheta) {eastPosMCCorPara[ntheta][nphi]=p; }
182 double ECorrMC(
double eg,
double theid)
const;
183 double ErrMC(
double eg,
double theid)
const;
192 double fElectronicsNoiseLevel;
194 double fEThresholdSeed;
196 double fEThresholdCluster;
198 double fLogPosOffset;
216 double fMoliereRadius;
218 double fLateralProfile;
242 double barrLogThetaPara[66][5];
243 double barrLogPhiPara[66][5];
245 double eastLogThetaPara[18][5];
246 double westLogThetaPara[18][5];
248 double eastLogPhiPara[3][5];
249 double westLogPhiPara[3][5];
252 double eastDataLogThetaPara[6][5];
253 double westDataLogThetaPara[6][5];
256 double eastLinThetaPara[6][5];
257 double westLinThetaPara[6][5];
259 double eastLinPhiPara[1][5];
260 double westLinPhiPara[1][5];
262 double barrLoglinThetaPara[22][5];
263 double barrLoglinPhiPara[1][5];
265 double barrLinThetaPara[66][5];
266 double barrLinPhiPara[3][5];
268 double barrShLogThetaPara[66][5];
269 double barrShLogPhiPara[3][5];
271 double barrShLinThetaPara[66][5];
272 double barrShLinPhiPara[3][5];
274 double barrDataLogThetaPara[22][5];
276 double barrPosDataCorPara[44][120];
277 double westPosDataCorPara[6][100];
278 double eastPosDataCorPara[6][100];
280 double barrPosMCCorPara[44][120];
281 double westPosMCCorPara[6][100];
282 double eastPosMCCorPara[6][100];
284 std::string positionMode1;
285 std::string positionMode2;
290 TGraph2DErrors *dtErr;
void SetDigiCalib(bool digi)
void SetWestPosDataCor(double p, int nphi, int ntheta)
double LogPosOffset() const
double ECorr(int n) const
void SetEastLogPhiPara(double p, int n, int m)
double WestPosMCCor(int ntheta, int nphi) const
void SetBarrLoglinThetaPara(double p, int n, int m)
void SetBarrLogPhiPara(double p, int n, int m)
void SetWestLogThetaPara(double p, int n, int m)
double BarrPosMCCor(int ntheta, int nphi) const
void SetWestLinThetaPara(double p, int n, int m)
void SetPositionMode(std::vector< std::string > &mode)
void SetBarrLinThetaPara(double p, int n, int m)
double ECorrMC(double eg, double theid) const
static EmcRecParameter & GetInstance()
double EastDataLogThetaPara(int n, int m) const
double EastPosMCCor(int ntheta, int nphi) const
void SetTimeMin(double min)
void SetEastLogThetaPara(double p, int n, int m)
void SetBarrShLogThetaPara(double p, int n, int m)
double WestDataLogThetaPara(int n, int m) const
double EastLinThetaPara(int n, int m) const
double EastPosDataCor(int ntheta, int nphi) const
void SetBarrShLinPhiPara(double p, int n, int m)
double EastLinPhiPara(int n, int m) const
void SetBarrLoglinPhiPara(double p, int n, int m)
double EThresholdCluster() const
void SetBarrPosMCCor(double p, int nphi, int ntheta)
double EThresholdSeed() const
void SetBarrLogThetaPara(double p, int n, int m)
double WestPosDataCor(int ntheta, int nphi) const
void SetBarrShLogPhiPara(double p, int n, int m)
void SetBarrPosDataCor(double p, int nphi, int ntheta)
double BarrLogPhiPara(int n, int m) const
double BarrDataLogThetaPara(int n, int m) const
double HitNb(int n) const
double ElectronicsNoiseLevel() const
double E25min(int n) const
double BarrShLinPhiPara(int n, int m) const
void SetWestDataLogThetaPara(double p, int n, int m)
void SetEastDataLogThetaPara(double p, int n, int m)
double LateralProfile() const
double E25max(int n) const
double MethodMode() const
void SetPosCorr(double en)
std::string PositionMode2() const
double SigTheta(int n) const
void SetBarrLinPhiPara(double p, int n, int m)
void SetEastPosMCCor(double p, int nphi, int ntheta)
double BarrShLogThetaPara(int n, int m) const
void SetEastPosDataCor(double p, int nphi, int ntheta)
void SetPeak(double e, int n)
void SetWestLinPhiPara(double p, int n, int m)
void SetElecSaturation(int IO)
std::string PositionMode1() const
void SetTimeMax(double max)
double WestLogThetaPara(int n, int m) const
void SetDataMode(double en)
double ElecBias(int n) const
double BarrShLogPhiPara(int n, int m) const
double BarrShLinThetaPara(int n, int m) const
void SetBarrDataLogThetaPara(double p, int n, int m)
int ElecSaturation() const
double BarrPosDataCor(int ntheta, int nphi) const
double BarrLogThetaPara(int n, int m) const
void SetEastLinThetaPara(double p, int n, int m)
double BarrLoglinThetaPara(int n, int m) const
double WestLinThetaPara(int n, int m) const
double MoliereRadius() const
void SetBarrShLinThetaPara(double p, int n, int m)
double WestLogPhiPara(int n, int m) const
double BarrLinPhiPara(int n, int m) const
void SetEastLinPhiPara(double p, int n, int m)
double BarrLinThetaPara(int n, int m) const
double EastLogPhiPara(int n, int m) const
double EastLogThetaPara(int n, int m) const
void SetWestPosMCCor(double p, int nphi, int ntheta)
double BarrLoglinPhiPara(int n, int m) const
double WestLinPhiPara(int n, int m) const
void SetMethodMode(double en)
double SmCut(int n) const
void SetWestLogPhiPara(double p, int n, int m)
double SigPhi(int n) const
double ErrMC(double eg, double theid) const