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;
183 inline void SetBarrPosDataCor(
double p,
int nphi,
int ntheta) {barrPosDataCorPara[ntheta][nphi]=p; }
184 inline void SetWestPosDataCor(
double p,
int nphi,
int ntheta) {westPosDataCorPara[ntheta][nphi]=p; }
185 inline void SetEastPosDataCor(
double p,
int nphi,
int ntheta) {eastPosDataCorPara[ntheta][nphi]=p; }
187 inline void SetBarrPosMCCor(
double p,
int nphi,
int ntheta) {barrPosMCCorPara[ntheta][nphi]=p; }
188 inline void SetWestPosMCCor(
double p,
int nphi,
int ntheta) {westPosMCCorPara[ntheta][nphi]=p; }
189 inline void SetEastPosMCCor(
double p,
int nphi,
int ntheta) {eastPosMCCorPara[ntheta][nphi]=p; }
197 double ECorrMC(
double eg,
double theid)
const;
198 double ErrMC(
double eg,
double theid)
const;
207 double fElectronicsNoiseLevel;
209 double fEThresholdSeed;
211 double fEThresholdCluster;
213 double fLogPosOffset;
231 double fMoliereRadius;
233 double fLateralProfile;
257 double barrLogThetaPara[66][5];
258 double barrLogPhiPara[66][5];
260 double eastLogThetaPara[18][5];
261 double westLogThetaPara[18][5];
263 double eastLogPhiPara[3][5];
264 double westLogPhiPara[3][5];
266 double barrLogShMaxThetaPara[132][5];
267 double barrLogShMaxPhiPara[132][5];
269 double eastLogShMaxThetaPara[18][5];
270 double westLogShMaxThetaPara[18][5];
272 double eastLogShMaxPhiPara[3][5];
273 double westLogShMaxPhiPara[3][5];
275 double eastDataLogThetaPara[6][5];
276 double westDataLogThetaPara[6][5];
279 double eastLinThetaPara[6][5];
280 double westLinThetaPara[6][5];
282 double eastLinPhiPara[1][5];
283 double westLinPhiPara[1][5];
285 double barrLoglinThetaPara[22][5];
286 double barrLoglinPhiPara[1][5];
288 double barrLinThetaPara[66][5];
289 double barrLinPhiPara[3][5];
291 double barrShLinThetaPara[66][5];
292 double barrShLinPhiPara[3][5];
294 double barrDataLogThetaPara[22][5];
296 double barrPosDataCorPara[44][120];
297 double westPosDataCorPara[6][100];
298 double eastPosDataCorPara[6][100];
300 double barrPosMCCorPara[44][120];
301 double westPosMCCorPara[6][100];
302 double eastPosMCCorPara[6][100];
304 std::string positionMode1;
305 std::string positionMode2;
310 TGraph2DErrors *dtErr;
void SetDigiCalib(bool digi)
void SetWestPosDataCor(double p, int nphi, int ntheta)
double LogPosOffset() const
double WestLogShMaxPhiPara(int n, int m) const
void SetWestLogShMaxPhiPara(double p, int n, int m)
double ECorr(int n) const
double BarrLogShMaxPhiPara(int n, int m) 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
double EastDataLogThetaPara(int n, int m) const
double EastLogShMaxPhiPara(int n, int m) const
double EastPosMCCor(int ntheta, int nphi) const
void SetTimeMin(double min)
void SetEastLogThetaPara(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 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 EastLogShMaxThetaPara(int n, int m) const
void SetBarrLogShMaxThetaPara(double p, int n, int m)
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 SetWestLogShMaxThetaPara(double p, int n, int m)
void SetPosCorr(double en)
std::string PositionMode2() const
double SigTheta(int n) const
void SetEastLogShMaxThetaPara(double p, int n, int m)
void SetBarrLinPhiPara(double p, int n, int m)
void SetEastPosMCCor(double p, int nphi, int ntheta)
void SetBarrLogShMaxPhiPara(double p, int n, int m)
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)
double WestLogShMaxThetaPara(int n, int m) const
std::string PositionMode1() const
void SetTimeMax(double max)
double WestLogThetaPara(int n, int m) const
void SetDataMode(double en)
void SetEastLogShMaxPhiPara(double p, int n, int m)
double ElecBias(int n) 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)
static EmcRecParameter & GetInstance()
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 BarrLogShMaxThetaPara(int n, int m) const
double ErrMC(double eg, double theid) const