BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcCalibAlg/MdcCalibAlg-00-09-02/share/distcalib/src/include/fun.h
Go to the documentation of this file.
1#ifndef FUN_H
2#define FUN_H
3
4#include <string>
5#include <cstring>
6#include <vector>
7#include "TROOT.h"
8#include "TObjArray.h"
9
10#include "MdcCalibConst.h"
11
12/* using namespace std; */
13const int NLAYER = 43;
14const int NWIRE = 6796;
15const int NLR = 3;
16const int NXTBIN = 50;
17const int NXTPAR = 8;
18const int NENTRXT = 18;
19const int NENTRSD = 6;
20const int NSDBIN = 24;
21
22const int gfixXtC0 = 1;
23const double gTbinw = 10.0;
24
25extern std::vector<double> XMEAS;
26extern std::vector<double> TBINCEN;
27extern std::vector<double> ERR;
28extern double Tmax;
29extern double Dmax;
30extern std::vector<double> XMEASED;
31extern std::vector<double> TBINCENED;
32extern std::vector<double> ERRED;
33
34extern int gNEntr[43];
35
36/* from calib config file */
37extern double gTimeShift; /* if T<0 after subtracting Tes, use this */
38extern double gTesMin; /* minimun Tes for calibration */
39extern double gTesMax; /* maximun Tes for calibration */
40extern int gFgIniCalConst; /* effective for IniMdcCalib */
41extern bool gPreT0SetTm; /* flag for updating Tm in PreT0Calib */
42extern double gInitT0; /* initial value of T0 fit */
43extern double gT0Shift; /* t0 shift based on leading edge fitting */
44extern double gTminFitChindf; /* chisquare cut for Tmin fit */
45extern double gTmaxFitChindf; /* chisquare cut for Tmax fit */
46extern int gResiType; /* 0: including measurement point; 1: excluding */
47extern int gCalSigma; /* flag for update sigma */
48extern int gFixXtC0; /* 1: fix c0 at 0 */
49extern int gFgCalib[NLAYER];
50extern double gTminFitRange[NLAYER][2];
51extern double gTmaxFitRange[NLAYER][2];
52extern double gInitTm[NLAYER]; /* initial value of Tm fit */
53extern double gQmin[NLAYER]; /* QT fit range */
54extern double gQmax[NLAYER]; /* QT fit range */
55
56double xtFun(double t, double xtpar[]);
57void fcnXT(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag);
58void fcnXtEdge(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag);
59Double_t xtFitFun(Double_t *x, Double_t par[]);
60Double_t xtFitEdge(Double_t *x, Double_t par[]);
61void writeConst(MdcCalibConst* calconst, TObjArray* newXtList, TObjArray* r2tList);
62std::vector<std::string> getHistList();
63std::vector<std::string> getHistList(std::string path);
64
65#endif
double xtFun(double t, double xtpar[])
Double_t xtFitEdge(Double_t *x, Double_t par[])
void fcnXT(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
std::vector< std::string > getHistList()
void fcnXtEdge(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
Double_t xtFitFun(Double_t *x, Double_t par[])
void writeConst(MdcCalibConst *calconst, TObjArray *newXtList, TObjArray *r2tList)
TTree * t
Definition: binning.cxx:23
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")