BOSS 7.1.1
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 printCut() const;
21 void clear();
22
23 int getHxtKey(int lay, int entr, int lr, int bin) const;
24
25 static void fcnXT(Int_t &npar, Double_t *gin, Double_t &f,
26 Double_t *par, Int_t iflag);
27 static void fcnXtEdge(Int_t &npar, Double_t *gin, Double_t &f,
28 Double_t *par, Int_t iflag);
29 static double xtFun(double t, double xtpar[]);
30
31 static std::vector<double> XMEAS;
32 static std::vector<double> TBINCEN;
33 static std::vector<double> ERR;
34
35 static double Tmax;
36 static double Dmax;
37 static std::vector<double> XMEASED;
38 static std::vector<double> TBINCENED;
39 static std::vector<double> ERRED;
40
41private:
42 MdcCalParams m_param;
43
44 TObjArray* m_hlist;
45 IMdcGeomSvc* m_mdcGeomSvc;
46 IMdcCalibFunSvc* m_mdcFunSvc;
47 IMdcUtilitySvc* m_mdcUtilitySvc;
48
49 int m_nlayer;
50 int m_nEntr[43];
51 int m_nLR;
52 int m_nbin;
53 int m_nxtpar;
54 double m_tbinw;
55
56 bool m_fgIni;
57 double m_docaMax[MdcCalNLayer];
58 double m_tm[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
59
60 TFolder* m_fdXt;
61 std::vector<TH1D*> m_hxt;
62 std::map<int, int> m_hxtmap;
63
64
65 /* for the index of the histograms */
66 static const int HXTLAYER_INDEX = 13;
67 static const int HXTLAYER_MASK = 0x7E000;
68
69 static const int HXTENTRA_INDEX = 8;
70 static const int HXTENTRA_MASK = 0x1F00;
71
72 static const int HXTLR_INDEX = 6;
73 static const int HXTLR_MASK = 0xC0;
74
75 static const int HXTBIN_INDEX = 0;
76 static const int HXTBIN_MASK = 0x3F;
77
78};
79
81 MdcCalib::setParam(param);
82 m_param = param;
83}
84
85#endif /* XTMDCCALIB_H */
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
*******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
TTree * t
Definition binning.cxx:23
virtual void setParam(MdcCalParams &param)=0
Definition MdcCalib.h:306
static double Dmax
Definition XtMdcCalib.h:36
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:35
static std::vector< double > ERR
Definition XtMdcCalib.h:33
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:39
void printCut() const
void clear()
static std::vector< double > XMEAS
Definition XtMdcCalib.h:31
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:37
void setParam(MdcCalParams &param)
Definition XtMdcCalib.h:80
static std::vector< double > TBINCEN
Definition XtMdcCalib.h:32
static std::vector< double > TBINCENED
Definition XtMdcCalib.h:38