CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
XtInteCalib.h
Go to the documentation of this file.
1#ifndef XTINTECALIB_H
2#define XTINTECALIB_H
3
4#include "CalibBase.h"
5
6#include "TObjArray.h"
7#include "TFile.h"
8#include "TH1F.h"
9#include "TH2F.h"
10#include "TProfile.h"
11
12class XtInteCalib: public CalibBase {
13public:
16 void init(TObjArray* hlist, MdcCosGeom* pGeom);
17 void mergeHist(TFile* fhist);
18 void calib(MdcCalibConst* calconst, TObjArray* newXtList, TObjArray* r2tList);
19
20private:
21 void renameHist();
22 bool saveOldXt(TObjArray* newXtList);
23
24 int m_nMaxGrPoint;
25 double m_tbinWid[NLAYER][3];
26 double m_tbinLim[NLAYER][4];
27
28 TFolder* m_fdPf; /* TFolder for profile */
29 TH2F* m_haxis;
30 TGraph* m_grXtOld[NLAYER][NENTRXT][2];
31 TGraph* m_grXt[NLAYER][NENTRXT][2];
32 TProfile* m_pfNear[NLAYER][NENTRXT][2];
33 TProfile* m_pfMid[NLAYER][NENTRXT][2];
34 TProfile* m_pfFar[NLAYER][NENTRXT][2];
35
36 bool getXt(int lay, int iEntr, int lr, TGraph* gr);
37 bool funXt0(int lay, int iEntr, int lr, TGraph* gr);
38 bool funXt1(int lay, int iEntr, int lr, TGraph* gr);
39 int findXtEntr(int lay, int iEntr, int lr) const;
40 int findXtEntrEdge(int lay, int iEntr, int lr) const;
41
42 vector<double> m_vt;
43 vector<double> m_vd;
44 vector<double> m_entries;
45 bool m_fgFit[NLAYER][NENTRXT][2];
46 bool m_fgEdge[NLAYER][NENTRXT][2];
47};
48
49#endif /* XTINTECALIB_H */
TGraph * gr
void calib(MdcCalibConst *calconst, TObjArray *newXtList, TObjArray *r2tList)
void mergeHist(TFile *fhist)
void init(TObjArray *hlist, MdcCosGeom *pGeom)