CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Cgem/CgemGeomSvc/CgemGeomSvc-00-00-31-p01/CgemGeomSvc/CgemGeoAlign.h
Go to the documentation of this file.
1#ifndef CGEMGEOALIGN_H
2#define CGEMGEOALIGN_H
3
4#include "CgemGeomSvc/StraightLine.h"
5#include "CLHEP/Geometry/Point3D.h"
6
7#include <string>
8
10
11public:
13
14 void initAlignPar(std::string alignFile);
15 void setLayerR(int layer, double r) { m_r[layer] = r; }
16
17 double getDx(int layer) { return m_dx[layer]; }
18 double getDy(int layer) { return m_dy[layer]; }
19 double getDz(int layer) { return m_dz[layer]; }
20 double getRx(int layer) { return m_rx[layer]; }
21 double getRy(int layer) { return m_ry[layer]; }
22 double getRz(int layer) { return m_rz[layer]; }
23
24 /* modification of alignment parameters (used by alignment algorithm) */
25 void setDx(int layer, double v) { m_dx[layer] = v; }
26 void setDy(int layer, double v) { m_dy[layer] = v; }
27 void setDz(int layer, double v) { m_dz[layer] = v; }
28 void setRx(int layer, double v) { m_rx[layer] = v; }
29 void setRy(int layer, double v) { m_ry[layer] = v; }
30 void setRz(int layer, double v) { m_rz[layer] = v; }
31
32 /* resest alignment parameters to original values (used by alignment) */
33 void resetAlignPar();
34
35 StraightLine StraightLineConversion(int layer, StraightLine lineOriginal);
36
37 /* written by Jingyi */
38 void StraightLineConversion_v1(int layer, double lineOriginal[], double lineConverted[]);
39
40 void HelixConversion(int layer, double helixOriginal[], double helixConverted[]);
41
43
44 void point_transform(double& x, double& y, double& z, double shift_x,
45 double shift_y, double shift_z, double rotation_z);
46
48
49private:
50 double m_r[3];
51
52 double m_dx[3];
53 double m_dy[3];
54 double m_dz[3];
55 double m_rx[3];
56 double m_ry[3];
57 double m_rz[3];
58
59 double m_dxOrig[3];
60 double m_dyOrig[3];
61 double m_dzOrig[3];
62 double m_rxOrig[3];
63 double m_ryOrig[3];
64 double m_rzOrig[3];
65
66};
67
68#endif
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
void StraightLineConversion_v1(int layer, double lineOriginal[], double lineConverted[])
StraightLine StraightLineConversion(int layer, StraightLine lineOriginal)
void initAlignPar(std::string alignFile)
HepPoint3D point_transform(int layer, HepPoint3D pos)
void resetAlignPar()
HepPoint3D point_invTransform(int layer, HepPoint3D pos)
void HelixConversion(int layer, double helixOriginal[], double helixConverted[])