BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/XtMdcCalib.h
Go to the documentation of this file.
1#ifndef XTMDCCALIB_H
2#define XTMDCCALIB_H
3
4#include "MdcCalibAlg/MdcCalib.h"
5#include <vector>
6#include <map>
7
8#include "TFolder.h"
9
10class XtMdcCalib: public MdcCalib {
11public:
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
79inline void XtMdcCalib::setParam(MdcCalParams& param){
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
TTree * t
Definition: binning.cxx:23
virtual void setParam(MdcCalParams &param)=0
int getHxtKey(int lay, int entr, int lr, int bin) const
int updateConst(MdcCalibConst *calconst)
static double xtFun(double t, double xtpar[])
static void fcnXT(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
int fillHist(MdcCalEvent *event)
void clear()
static void fcnXtEdge(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)
void setParam(MdcCalParams &param)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")