BOSS 8.0.0
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 <map>
6#include <vector>
7
8#include "TFolder.h"
9
10class XtMdcCalib : public MdcCalib {
11public:
12 XtMdcCalib();
14 void initialize( TObjArray* hlist, IMdcGeomSvc* mdcGeomSvc, IMdcCalibFunSvc* mdcFunSvc,
15 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, Double_t* par, Int_t iflag );
26 static void fcnXtEdge( Int_t& npar, Double_t* gin, Double_t& f, Double_t* par, Int_t iflag );
27 static double xtFun( double t, double xtpar[] );
28
29 static std::vector<double> XMEAS;
30 static std::vector<double> TBINCEN;
31 static std::vector<double> ERR;
32
33 static double Tmax;
34 static double Dmax;
35 static std::vector<double> XMEASED;
36 static std::vector<double> TBINCENED;
37 static std::vector<double> ERRED;
38
39private:
40 MdcCalParams m_param;
41
42 TObjArray* m_hlist;
43 IMdcGeomSvc* m_mdcGeomSvc;
44 IMdcCalibFunSvc* m_mdcFunSvc;
45 IMdcUtilitySvc* m_mdcUtilitySvc;
46
47 int m_nlayer;
48 int m_nEntr[43];
49 int m_nLR;
50 int m_nbin;
51 int m_nxtpar;
52 double m_tbinw;
53
54 bool m_fgIni;
55 double m_docaMax[MdcCalNLayer];
56 double m_tm[MdcCalNLayer][MdcCalNENTRXT][MdcCalLR];
57
58 TFolder* m_fdXt;
59 std::vector<TH1D*> m_hxt;
60 std::map<int, int> m_hxtmap;
61
62 /* for the index of the histograms */
63 static const int HXTLAYER_INDEX = 13;
64 static const int HXTLAYER_MASK = 0x7E000;
65
66 static const int HXTENTRA_INDEX = 8;
67 static const int HXTENTRA_MASK = 0x1F00;
68
69 static const int HXTLR_INDEX = 6;
70 static const int HXTLR_MASK = 0xC0;
71
72 static const int HXTBIN_INDEX = 0;
73 static const int HXTBIN_MASK = 0x3F;
74};
75
76inline void XtMdcCalib::setParam( MdcCalParams& param ) {
77 MdcCalib::setParam( param );
78 m_param = param;
79}
80
81#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
virtual void setParam(MdcCalParams &param)=0
Definition MdcCalib.h:305
static double Dmax
Definition XtMdcCalib.h:34
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:33
static std::vector< double > ERR
Definition XtMdcCalib.h:31
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:37
void printCut() const
void clear()
static std::vector< double > XMEAS
Definition XtMdcCalib.h:29
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:35
void setParam(MdcCalParams &param)
Definition XtMdcCalib.h:76
static std::vector< double > TBINCEN
Definition XtMdcCalib.h:30
static std::vector< double > TBINCENED
Definition XtMdcCalib.h:36
int t()
Definition t.c:1