ATLAS Offline Software
SiGlobAlignData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef AFP_DBTOOLS_SIGLOBALIGNDATA_H
16 #define AFP_DBTOOLS_SIGLOBALIGNDATA_H
17 
18 
19 namespace AFP
20 {
21 
23  {
24  private:
30 
31  public:
33 
34  void setTracker(double x, double y, double z, double a, double b, double g)
35  {
42  }
43  void setBeam(double x, double y, double z, double a, double b, double g)
44  {
48  m_alphaBeam=a;
49  m_betaBeam=b;
50  m_gammaBeam=g;
51  }
52  void setRP(double x, double y, double z, double a, double b, double g)
53  {
54  m_xShiftRP=x;
55  m_yShiftRP=y;
56  m_zShiftRP=z;
57  m_alphaRP=a;
58  m_betaRP=b;
59  m_gammaRP=g;
60  }
61  void setCorr(double x, double y, double z, double a, double b, double g)
62  {
66  m_alphaCorr=a;
67  m_betaCorr=b;
68  m_gammaCorr=g;
69  }
70 
71  int stationID () const {return m_stationID;}
72 
73  // tracker
74  double xShiftTracker () const {return m_xShiftTracker;}
75  double yShiftTracker () const {return m_yShiftTracker;}
76  double zShiftTracker () const {return m_zShiftTracker;}
77  double alphaTracker () const {return m_alphaTracker;}
78  double betaTracker () const {return m_betaTracker;}
79  double gammaTracker () const {return m_gammaTracker;}
80 
81  // beam
82  double xShiftBeam () const {return m_xShiftBeam;}
83  double yShiftBeam () const {return m_yShiftBeam;}
84  double zShiftBeam () const {return m_zShiftBeam;}
85  double alphaBeam () const {return m_alphaBeam;}
86  double betaBeam () const {return m_betaBeam;}
87  double gammaBeam () const {return m_gammaBeam;}
88 
89  // RP
90  double xShiftRP () const {return m_xShiftRP;}
91  double yShiftRP () const {return m_yShiftRP;}
92  double zShiftRP () const {return m_zShiftRP;}
93  double alphaRP () const {return m_alphaRP;}
94  double betaRP () const {return m_betaRP;}
95  double gammaRP () const {return m_gammaRP;}
96 
97  // correction
98  double xShiftCorr () const {return m_xShiftCorr;}
99  double yShiftCorr () const {return m_yShiftCorr;}
100  double zShiftCorr () const {return m_zShiftCorr;}
101  double alphaCorr () const {return m_alphaCorr;}
102  double betaCorr () const {return m_betaCorr;}
103  double gammaCorr () const {return m_gammaCorr;}
104 
105  // all together
109  double alpha () const {return m_alphaTracker -m_alphaBeam +m_alphaRP +m_alphaCorr;}
110  double beta () const {return m_betaTracker -m_betaBeam +m_betaRP +m_betaCorr;}
111  double gamma () const {return m_gammaTracker -m_gammaBeam +m_gammaRP +m_gammaCorr;}
112 
113  };
114 
115 } // namespace AFP
116 
117 #endif // AFP_DBTOOLS_SIGLOBALIGNDATA_H
AFP::SiGlobAlignData::m_xShiftBeam
double m_xShiftBeam
Definition: SiGlobAlignData.h:27
AFP::SiGlobAlignData::xShiftCorr
double xShiftCorr() const
Definition: SiGlobAlignData.h:98
AFP::SiGlobAlignData::zShiftRP
double zShiftRP() const
Definition: SiGlobAlignData.h:92
AFP::SiGlobAlignData::m_betaRP
double m_betaRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::m_yShiftTracker
double m_yShiftTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::gammaTracker
double gammaTracker() const
Definition: SiGlobAlignData.h:79
AFP::SiGlobAlignData::setRP
void setRP(double x, double y, double z, double a, double b, double g)
Definition: SiGlobAlignData.h:52
AFP::SiGlobAlignData::betaCorr
double betaCorr() const
Definition: SiGlobAlignData.h:102
AFP::SiGlobAlignData::m_zShiftTracker
double m_zShiftTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::betaTracker
double betaTracker() const
Definition: SiGlobAlignData.h:78
AFP::SiGlobAlignData::zShiftBeam
double zShiftBeam() const
Definition: SiGlobAlignData.h:84
AFP::SiGlobAlignData::m_xShiftRP
double m_xShiftRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::m_betaBeam
double m_betaBeam
Definition: SiGlobAlignData.h:27
AFP::SiGlobAlignData::m_gammaCorr
double m_gammaCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::m_xShiftCorr
double m_xShiftCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::m_yShiftRP
double m_yShiftRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::setCorr
void setCorr(double x, double y, double z, double a, double b, double g)
Definition: SiGlobAlignData.h:61
AFP::SiGlobAlignData::gammaBeam
double gammaBeam() const
Definition: SiGlobAlignData.h:87
AFP::SiGlobAlignData::yShift
double yShift() const
Definition: SiGlobAlignData.h:107
AFP::SiGlobAlignData::m_xShiftTracker
double m_xShiftTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::setBeam
void setBeam(double x, double y, double z, double a, double b, double g)
Definition: SiGlobAlignData.h:43
AFP::SiGlobAlignData::xShiftBeam
double xShiftBeam() const
Definition: SiGlobAlignData.h:82
x
#define x
AFP::SiGlobAlignData::beta
double beta() const
Definition: SiGlobAlignData.h:110
AFP::SiGlobAlignData::m_alphaBeam
double m_alphaBeam
Definition: SiGlobAlignData.h:27
AFP
Header file for interface of SiGlobAlignDBTool used to read global alignment for database.
Definition: ISiGlobAlignDBTool.h:18
AFP::SiGlobAlignData::alphaTracker
double alphaTracker() const
Definition: SiGlobAlignData.h:77
AFP::SiGlobAlignData::zShift
double zShift() const
Definition: SiGlobAlignData.h:108
AFP::SiGlobAlignData::yShiftTracker
double yShiftTracker() const
Definition: SiGlobAlignData.h:75
AFP::SiGlobAlignData::xShift
double xShift() const
Definition: SiGlobAlignData.h:106
AFP::SiGlobAlignData::gammaRP
double gammaRP() const
Definition: SiGlobAlignData.h:95
AFP::SiGlobAlignData::gammaCorr
double gammaCorr() const
Definition: SiGlobAlignData.h:103
AFP::SiGlobAlignData::m_alphaTracker
double m_alphaTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::yShiftRP
double yShiftRP() const
Definition: SiGlobAlignData.h:91
AFP::SiGlobAlignData::xShiftTracker
double xShiftTracker() const
Definition: SiGlobAlignData.h:74
AFP::SiGlobAlignData::m_stationID
int m_stationID
Definition: SiGlobAlignData.h:25
AFP::SiGlobAlignData::gamma
double gamma() const
Definition: SiGlobAlignData.h:111
AFP::SiGlobAlignData::m_zShiftRP
double m_zShiftRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::yShiftCorr
double yShiftCorr() const
Definition: SiGlobAlignData.h:99
AFP::SiGlobAlignData::m_yShiftCorr
double m_yShiftCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::alphaRP
double alphaRP() const
Definition: SiGlobAlignData.h:93
z
#define z
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
AFP::SiGlobAlignData::m_gammaRP
double m_gammaRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::m_alphaRP
double m_alphaRP
Definition: SiGlobAlignData.h:28
AFP::SiGlobAlignData::zShiftCorr
double zShiftCorr() const
Definition: SiGlobAlignData.h:100
AFP::SiGlobAlignData
Definition: SiGlobAlignData.h:23
AFP::SiGlobAlignData::alphaBeam
double alphaBeam() const
Definition: SiGlobAlignData.h:85
AFP::SiGlobAlignData::setTracker
void setTracker(double x, double y, double z, double a, double b, double g)
Definition: SiGlobAlignData.h:34
AFP::SiGlobAlignData::betaBeam
double betaBeam() const
Definition: SiGlobAlignData.h:86
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AFP::SiGlobAlignData::m_alphaCorr
double m_alphaCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::alphaCorr
double alphaCorr() const
Definition: SiGlobAlignData.h:101
AFP::SiGlobAlignData::m_betaCorr
double m_betaCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::zShiftTracker
double zShiftTracker() const
Definition: SiGlobAlignData.h:76
AFP::SiGlobAlignData::stationID
int stationID() const
Definition: SiGlobAlignData.h:71
AFP::SiGlobAlignData::m_gammaBeam
double m_gammaBeam
Definition: SiGlobAlignData.h:27
AFP::SiGlobAlignData::SiGlobAlignData
SiGlobAlignData(int st)
Definition: SiGlobAlignData.h:32
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
AFP::SiGlobAlignData::m_zShiftCorr
double m_zShiftCorr
Definition: SiGlobAlignData.h:29
AFP::SiGlobAlignData::yShiftBeam
double yShiftBeam() const
Definition: SiGlobAlignData.h:83
AFP::SiGlobAlignData::betaRP
double betaRP() const
Definition: SiGlobAlignData.h:94
AFP::SiGlobAlignData::m_gammaTracker
double m_gammaTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::alpha
double alpha() const
Definition: SiGlobAlignData.h:109
AFP::SiGlobAlignData::m_zShiftBeam
double m_zShiftBeam
Definition: SiGlobAlignData.h:27
AFP::SiGlobAlignData::m_betaTracker
double m_betaTracker
Definition: SiGlobAlignData.h:26
AFP::SiGlobAlignData::m_yShiftBeam
double m_yShiftBeam
Definition: SiGlobAlignData.h:27
AFP::SiGlobAlignData::xShiftRP
double xShiftRP() const
Definition: SiGlobAlignData.h:90