BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcCalibAlg/MdcCalibAlg-01-00-00/share/distcalib/src/include/MdcCosLayer.h
Go to the documentation of this file.
1/* Class MdcCosLayer describes the sense layer property */
2/* Created by Wu Linghui, 2006/05/28 */
3
4#ifndef MDCCOSLAYER_H
5#define MDCCOSLAYER_H
6
7class MdcCosLayer{
8public:
9/* /\* constructor *\/ */
10/* MdcCosLayer(); */
11
12/* /\* destructor *\/ */
13/* ~MdcCosLayer(); */
14
15 /* get layer type, 0 for axial, 1 for stereo-, 2 for stereo+ */
16 int getLayerType() const { return m_typ; }
17
18 /* get the number of cells in the layer */
19 int getNcell() const { return m_ncell; }
20
21 /* get layer radius and the endplate */
22 double getLayerRad() const { return m_rad; }
23
24 /* get wire length in the layer in z direction, [mm] */
25 double getLength() const { return m_length; }
26
27 /* get number of twist cells */
28 double getTwistCell() const { return m_twist; }
29
30 /* get slant angle */
31 double getSlant() const { return m_slant; }
32
33 /* get the index of the alignment parameter */
34 int getAlignParId(int i) const { return m_iAlignPar[i]; }
35
36 /* get flag of inner chamber, true for inner, false for outer */
37 bool isInner() const { return m_fginner; }
38
39
40 /* set layer type, 0 for axial, 1 for stereo-, 2 for stereo+ */
41 void setLayerType(int type) { m_typ = type; }
42
43 /* set the number of cells in the layer */
44 void setNcell(int ncell) { m_ncell = ncell; }
45
46 /* set layer radius and the endplate */
47 void setLayerRad(double rad) { m_rad = rad; }
48
49 /* set wire length in the layer in z direction, [mm] */
50 void setLength(double length) { m_length = length; }
51
52 /* set number of twist cells */
53 void setTwistCell(double twist) { m_twist = twist; }
54
55 /* set slant angle */
56 void setSlant(double slant) { m_slant = slant; }
57
58 /* set flag of inner chamber, true for inner, false for outer */
59 void setFgInner(bool fginner) { m_fginner = fginner; }
60
61 /* set the index of the alignment parameter */
62 void setAlignParId(int ipar[]);
63
64private:
65/* std::string m_fname; */
66/* MdcCosWire* m_wire[WIRENMAX]; */
67/* int m_wiretable[LAYERNMAX][CELLNMAX]; */
68
69 int m_typ;
70 int m_ncell;
71 int m_iAlignPar[6];
72 double m_rad;
73 double m_length;
74 double m_twist;
75 double m_slant;
76 bool m_fginner;
77
78};
79
80inline void MdcCosLayer::setAlignParId(int ipar[]){
81 for(int i=0; i<6; i++){
82 m_iAlignPar[i] = ipar[i];
83 }
84}
85
86#endif /* MDCCOSLAYER_H */
void setAlignParId(int ipar[])
const float rad
Definition: vector3.h:134