CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
share/distcalib/src/include/MdcCalibConst.h
Go to the documentation of this file.
1#ifndef MDCCALIBCONST_H
2#define MDCCALIBCONST_H
3
4#include <map>
5#include <vector>
6
7class MdcCalibConst {
8
9public:
11 MdcCalibConst(const MdcCalibConst& calconst);
12
13 void fillXtpar(int key, double val);
14 void resetXtpar(int lay, int entr, int lr, int order, double val);
15 int getXtSize() const { return m_xtmap.size(); }
16 void setXtBegin();
17 int getNextXtpar(int& key, double& xtpar);
18 double getXtpar(int lay, int entr, int lr, int order);
19 int getXtKey(int lay, int entr, int lr, int order) const;
20
21 void fillT0(double val) { m_t0.push_back( val ); }
22 void fillDelT0(double val) { m_delt0.push_back( val ); }
23 void resetT0(int wireid, double val) { m_t0[wireid] = val; }
24 void resetDelT0(int wireid, double val) { m_delt0[wireid] = val; }
25 double getT0(int wireid) const { return m_t0[wireid]; }
26 double getDelT0(int wireid) const { return m_delt0[wireid]; }
27 int getT0Size() const { return m_t0.size(); }
28
29/* void fillWshift(double val) { m_wshift.push_back( val ); } */
30/* void fillDelWshift(double val) { m_delwshift.push_back( val ); } */
31/* void resetWshift(int wireid, double val) {m_wshift[wireid] = val;} */
32/* void resetDelWshift(int wireid, double val){m_delwshift[wireid] = val;} */
33/* double getWshift(int wireid) const { return m_wshift[wireid]; } */
34/* double getDelWshift(int wireid) const { return m_delwshift[wireid]; } */
35/* int getWshSize() const { return m_wshift.size(); } */
36
37 void fillQtpar(int order, double val);
38 void fillQtpar0(double val) { m_qtpar0.push_back( val ); }
39 void fillQtpar1(double val) { m_qtpar1.push_back( val ); }
40 void resetQtpar(int lay, int order, double val);
41 void resetQtpar0(int lay, double val) { m_qtpar0[lay] = val; }
42 void resetQtpar1(int lay, double val) { m_qtpar1[lay] = val; }
43 double getQtpar(int lay, int order) const;
44 double getQtpar0(int lay) const { return m_qtpar0[lay]; }
45 double getQtpar1(int lay) const { return m_qtpar1[lay]; }
46 int getQtSize() const { return m_qtpar0.size(); }
47
48 void fillSdpar(int key, double val);
49 void resetSdpar(int lay, int entr, int lr, int bin, double val);
50 int getSdSize() const { return m_sdmap.size(); }
51 void setSdBegin();
52 int getNextSdpar(int& key, double& sdpar);
53 double getSdpar(int lay, int entr, int lr, int bin);
54 int getSdKey(int lay, int entr, int lr, int bin) const;
55
56 void clear();
57
58private:
59 std::map<int, double> m_xtmap;
60 std::vector<double> m_t0;
61 std::vector<double> m_delt0;
62/* std::vector<double> m_wshift; */
63/* std::vector<double> m_delwshift; */
64 std::vector<double> m_qtpar0;
65 std::vector<double> m_qtpar1;
66 std::map<int, double> m_sdmap;
67
68 std::map<int, double>::iterator m_xtiter;
69 std::map<int, double>::iterator m_sditer;
70
71 static const int XTLAYER_INDEX = 11;
72 static const int XTLAYER_MASK = 0x1F800;
73
74 static const int XTENTRA_INDEX = 6;
75 static const int XTENTRA_MASK = 0x7C0;
76
77 static const int XTLR_INDEX = 4;
78 static const int XTLR_MASK = 0x30;
79
80 static const int XTORDER_INDEX = 0;
81 static const int XTORDER_MASK = 0xF;
82
83
84 static const int SDLAYER_INDEX = 10;
85 static const int SDLAYER_MASK = 0xFC00;
86
87 static const int SDENTRA_INDEX = 7;
88 static const int SDENTRA_MASK = 0x380;
89
90 static const int SDLR_INDEX = 5;
91 static const int SDLR_MASK = 0x60;
92
93 static const int SDBIN_INDEX = 0;
94 static const int SDBIN_MASK = 0x1F;
95};
96
97#endif /* MDCCALIBCONST_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
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
Definition Taupair.h:42
int getXtKey(int lay, int entr, int lr, int order) const
void fillXtpar(int key, double val)
void resetQtpar0(int lay, double val)
void resetSdpar(int lay, int entr, int lr, int bin, double val)
MdcCalibConst(const MdcCalibConst &calconst)
void resetXtpar(int lay, int entr, int lr, int order, double val)
void resetQtpar1(int lay, double val)
void resetDelT0(int wireid, double val)
double getXtpar(int lay, int entr, int lr, int order)
void fillQtpar(int order, double val)
double getQtpar(int lay, int order) const
int getNextXtpar(int &key, double &xtpar)
void resetQtpar(int lay, int order, double val)
double getSdpar(int lay, int entr, int lr, int bin)
int getSdKey(int lay, int entr, int lr, int bin) const
void resetT0(int wireid, double val)
void setXtBegin()
int getNextSdpar(int &key, double &sdpar)
void setSdBegin()
void fillSdpar(int key, double val)