BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
Wr2dMdcCalib.h
Go to the documentation of this file.
1#ifndef WR2DMDCCALIB_H
2#define WR2DMDCCALIB_H
3
5
6class Wr2dMdcCalib: public MdcCalib {
7public:
10
11 void initialize(TObjArray* hlist, IMdcGeomSvc* mdcGeomSvc,
12 IMdcCalibFunSvc* mdcFunSvc, IMdcUtilitySvc* mdcUtilitySvc);
13
14 void setParam(MdcCalParams& param);
15 int fillHist(MdcCalEvent* event);
16 int updateConst(MdcCalibConst* calconst);
17 void clear();
18
19 static void fcnWireParab(Int_t &npar, Double_t *gin, Double_t &f,
20 Double_t *par, Int_t iflag);
21 static bool fgBIN[MdcCalWrNBin];
22 static double xBIN[MdcCalWrNBin];
23 static double yBIN[MdcCalWrNBin];
24 static double zBIN[MdcCalWrNBin];
25 static double zBINERR[MdcCalWrNBin];
26 static double zMIN;
27 static double zMAX;
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 double m_zwest[MdcCalNLayer];
38 double m_zeast[MdcCalNLayer];
39 double m_zwid[MdcCalNLayer];
40 double m_zbinCen[MdcCalNLayer][MdcCalWrNBin];
41
42 TFolder* m_fdWire;
43 TH1F* m_hl[MdcCalTotCell][MdcCalWrNBin];
44 TH1F* m_hr[MdcCalTotCell][MdcCalWrNBin];
45};
46
48 MdcCalib::setParam(param);
49 m_param = param;
50}
51
52#endif /* WR2DMDCCALIB_H */
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
const int MdcCalNLayer
Definition: MdcCalParams.h:6
const int MdcCalTotCell
Definition: MdcCalParams.h:9
const int MdcCalWrNBin
Definition: MdcCalParams.h:22
virtual void setParam(MdcCalParams &param)=0
Definition: MdcCalib.h:293
static double zBIN[MdcCalWrNBin]
Definition: Wr2dMdcCalib.h:24
int fillHist(MdcCalEvent *event)
static void fcnWireParab(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)
static double xBIN[MdcCalWrNBin]
Definition: Wr2dMdcCalib.h:22
static double zBINERR[MdcCalWrNBin]
Definition: Wr2dMdcCalib.h:25
static bool fgBIN[MdcCalWrNBin]
Definition: Wr2dMdcCalib.h:21
static double yBIN[MdcCalWrNBin]
Definition: Wr2dMdcCalib.h:23
int updateConst(MdcCalibConst *calconst)
static double zMAX
Definition: Wr2dMdcCalib.h:27
static double zMIN
Definition: Wr2dMdcCalib.h:26
void setParam(MdcCalParams &param)
Definition: Wr2dMdcCalib.h:47