BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
GrXtMdcCalib.h
Go to the documentation of this file.
1#ifndef GRXTMDCCALIB_H
2#define GRXTMDCCALIB_H
3
5#include <vector>
6#include <map>
7
8#include "TH2F.h"
9#include "TGraph.h"
10#include "TFolder.h"
11
12class GrXtMdcCalib: public MdcCalib {
13public:
16 void initialize(TObjArray* hlist, IMdcGeomSvc* mdcGeomSvc,
17 IMdcCalibFunSvc* mdcFunSvc, IMdcUtilitySvc* mdcUtilitySvc);
18
19 void setParam(MdcCalParams& param);
20 int fillHist(MdcCalEvent* event);
21 int updateConst(MdcCalibConst* calconst);
22 void printCut() const;
23 void clear();
24
25 int findXtEntr(int lay, int iEntr, int lr) const;
26
27 static Double_t xtfun(Double_t *x, Double_t *par);
28 static Double_t xtedge(Double_t *x, Double_t *par);
29
30private:
31 MdcCalParams m_param;
32
33 TObjArray* m_hlist;
34 IMdcGeomSvc* m_mdcGeomSvc;
35 IMdcCalibFunSvc* m_mdcFunSvc;
36 IMdcUtilitySvc* m_mdcUtilitySvc;
37
38 int m_maxNhit; /* for each graph */
39 bool m_fgIni;
40 double m_docaMax[MdcCalNLayer];
41
43 bool m_fgFit[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
44
45 TFolder* m_fdXt;
46 TH2F* m_haxis;
47 TGraph* m_grxt[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
48
49 static double DMAX;
50 static double TMAX;
51};
52
54 MdcCalib::setParam(param);
55 m_param = param;
56}
57
58#endif /* GRXTMDCCALIB_H */
Double_t x[10]
const int MdcCalNLayer
Definition MdcCalParams.h:6
const int MdcCalNENTRXT
const int MdcCalLR
void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)
int findXtEntr(int lay, int iEntr, int lr) const
static Double_t xtedge(Double_t *x, Double_t *par)
static Double_t xtfun(Double_t *x, Double_t *par)
void printCut() const
int fillHist(MdcCalEvent *event)
void setParam(MdcCalParams &param)
int updateConst(MdcCalibConst *calconst)
virtual void setParam(MdcCalParams &param)=0
Definition MdcCalib.h:306