CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/GrXtMdcCalib.h
Go to the documentation of this file.
1#ifndef GRXTMDCCALIB_H
2#define GRXTMDCCALIB_H
3
4#include "MdcCalibAlg/MdcCalib.h"
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 clear();
23
24 int findXtEntr(int lay, int iEntr, int lr) const;
25
26 static Double_t xtfun(Double_t *x, Double_t *par);
27 static Double_t xtedge(Double_t *x, Double_t *par);
28
29private:
30 MdcCalParams m_param;
31
32 TObjArray* m_hlist;
33 IMdcGeomSvc* m_mdcGeomSvc;
34 IMdcCalibFunSvc* m_mdcFunSvc;
35 IMdcUtilitySvc* m_mdcUtilitySvc;
36
37 int m_maxNhit; /* for each graph */
38 bool m_fgIni;
39 double m_docaMax[MdcCalNLayer];
40
42 bool m_fgFit[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
43
44 TFolder* m_fdXt;
45 TH2F* m_haxis;
46 TGraph* m_grxt[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
47
48 static double DMAX;
49 static double TMAX;
50};
51
52inline void GrXtMdcCalib::setParam(MdcCalParams& param){
53 MdcCalib::setParam(param);
54 m_param = param;
55}
56
57#endif /* GRXTMDCCALIB_H */
void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)
static Double_t xtfun(Double_t *x, Double_t *par)
int findXtEntr(int lay, int iEntr, int lr) const
static Double_t xtedge(Double_t *x, Double_t *par)
int fillHist(MdcCalEvent *event)
void setParam(MdcCalParams &param)
int updateConst(MdcCalibConst *calconst)
virtual void setParam(MdcCalParams &param)=0