CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
XtMdcCalib.h
Go to the documentation of this file.
1#ifndef XTMDCCALIB_H
2#define XTMDCCALIB_H
3
5#include <vector>
6#include <map>
7
8#include "TFolder.h"
9
10class XtMdcCalib: public MdcCalib {
11public:
12 XtMdcCalib();
14 void initialize(TObjArray* hlist, IMdcGeomSvc* mdcGeomSvc,
15 IMdcCalibFunSvc* mdcFunSvc, IMdcUtilitySvc* mdcUtilitySvc);
16
17 void setParam(MdcCalParams& param);
18 int fillHist(MdcCalEvent* event);
19 int updateConst(MdcCalibConst* calconst);
20 void clear();
21
22 int getHxtKey(int lay, int entr, int lr, int bin) const;
23
24 static void fcnXT(Int_t &npar, Double_t *gin, Double_t &f,
25 Double_t *par, Int_t iflag);
26 static void fcnXtEdge(Int_t &npar, Double_t *gin, Double_t &f,
27 Double_t *par, Int_t iflag);
28 static double xtFun(double t, double xtpar[]);
29
30 static std::vector<double> XMEAS;
31 static std::vector<double> TBINCEN;
32 static std::vector<double> ERR;
33
34 static double Tmax;
35 static double Dmax;
36 static std::vector<double> XMEASED;
37 static std::vector<double> TBINCENED;
38 static std::vector<double> ERRED;
39
40private:
41 MdcCalParams m_param;
42
43 TObjArray* m_hlist;
44 IMdcGeomSvc* m_mdcGeomSvc;
45 IMdcCalibFunSvc* m_mdcFunSvc;
46 IMdcUtilitySvc* m_mdcUtilitySvc;
47
48 int m_nlayer;
49 int m_nEntr[43];
50 int m_nLR;
51 int m_nbin;
52 int m_nxtpar;
53 double m_tbinw;
54
55 bool m_fgIni;
56 double m_docaMax[MdcCalNLayer];
57 double m_tm[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
58
59 TFolder* m_fdXt;
60 std::vector<TH1D*> m_hxt;
61 std::map<int, int> m_hxtmap;
62
63
64 /* for the index of the histograms */
65 static const int HXTLAYER_INDEX = 13;
66 static const int HXTLAYER_MASK = 0x7E000;
67
68 static const int HXTENTRA_INDEX = 8;
69 static const int HXTENTRA_MASK = 0x1F00;
70
71 static const int HXTLR_INDEX = 6;
72 static const int HXTLR_MASK = 0xC0;
73
74 static const int HXTBIN_INDEX = 0;
75 static const int HXTBIN_MASK = 0x3F;
76
77};
78
80 MdcCalib::setParam(param);
81 m_param = param;
82}
83
84#endif /* XTMDCCALIB_H */
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
Definition FoamA.h:85
const int MdcCalNLayer
Definition MdcCalParams.h:6
const int MdcCalNENTRXT
const int MdcCalLR
virtual void setParam(MdcCalParams &param)=0
Definition MdcCalib.h:293
static double Dmax
Definition XtMdcCalib.h:35
int getHxtKey(int lay, int entr, int lr, int bin) const
int updateConst(MdcCalibConst *calconst)
static double xtFun(double t, double xtpar[])
static double Tmax
Definition XtMdcCalib.h:34
static std::vector< double > ERR
Definition XtMdcCalib.h:32
static void fcnXT(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
int fillHist(MdcCalEvent *event)
static std::vector< double > ERRED
Definition XtMdcCalib.h:38
void clear()
static std::vector< double > XMEAS
Definition XtMdcCalib.h:30
void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)
static void fcnXtEdge(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
static std::vector< double > XMEASED
Definition XtMdcCalib.h:36
void setParam(MdcCalParams &param)
Definition XtMdcCalib.h:79
static std::vector< double > TBINCEN
Definition XtMdcCalib.h:31
static std::vector< double > TBINCENED
Definition XtMdcCalib.h:37
int t()
Definition t.c:1