BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalParams.h
Go to the documentation of this file.
1#ifndef MDCCALPARAMS_H
2#define MDCCALPARAMS_H
3
4#include <string>
5
6const int MdcCalNLayer = 43;
7const int MdcCalInnNLay = 8;
8const int MdcCalMaxCell = 288;
9const int MdcCalTotCell = 6796;
10const int MdcCalLR = 3;
11
12const int MdcCalNENTRXT = 18;
13const int MdcCalXtOrd = 6;
14const int MdcCalXtNPars = 8;
15
16const int MdcCalQtOrd = 2;
17const int MdcCalNQBin = 10;
18
19const int MdcCalNENTRSD = 6;
20const int MdcCalSdNBIN = 24;
21
22const int MdcCalWrNBin = 15;
23
24const double MdcCalTdcCnv = 0.09375;
25const double MdcCalAdcCnv = 1.0;
26
27const double HFPI = 1.570796327;
28const double PI2 = 6.283185307;
29
30class MdcCalParams {
31public:
32 int fillNtuple;
33 int nEvtNtuple;
34 int fgCalDetEffi; /* calculating hit efficiency without tracking algorithm impacts */
35
36 double ecm;
37 double boostPar[3];
38
39 int particle;
40 int nEsFlag;
41 int esFlag[50];
42 double timeShift; /* if T<0 after subtracting Tes, use this */
43 double tesMin; /* minimun Tes for calibration */
44 double tesMax; /* maximun Tes for calibration */
45
46 int fgIniCalConst; /* effective for IniMdcCalib */
47 bool preT0SetTm; /* flag for updating Tm in PreT0Calib */
48
49 double initT0; /* initial value of T0 fit */
50 double t0Shift; /* t0 shift based on leading edge fitting */
51 double tminFitChindf; /* chisquare cut for Tmin fit */
52 double tmaxFitChindf; /* chisquare cut for Tmax fit */
53 double initSigma; /* initial value of spatial resolution in the first calibration */
54
55 int calSigma;
56 int resiType; /* 0: including measurement point; 1: excluding */
57
58 int fixXtC0; /* 1: fix c0 at 0 */
59 int fixXtEdge; /* 1: fix X-T in the edge of the cell */
60
61 int fgAdjacLayerCut; /* a cut for adjacent layers in MdcCalib.cxx */
62 int fgBoundLayerCut; /* a cut for boundary layers in MdcCalib.cxx */
63 int nTrkCut[2];
64 int nHitLayCut;
65 int nHitCut;
66 int hitStatCut; /* hitStatCut=1 for MdcxReco & MdcPatRec */
67
68 bool noiseCut; /* cut of noise level */
69 double costheCut[2]; /* cut of cos(theta) */
70 double drCut;
71 double dzCut;
72 double maxDocaInner;
73 double maxDocaOuter;
74
76 double tminFitRange[MdcCalNLayer][2];
77 double tmaxFitRange[MdcCalNLayer][2];
78 double initTm[MdcCalNLayer]; /* initial value of Tm fit */
79 double resiCut[MdcCalNLayer];
80 double qmin[MdcCalNLayer];
81 double qmax[MdcCalNLayer];
82
83 std::string wpcFile;
84};
85
86#endif /* MDCCALPARAMS_H */