ATLAS Offline Software
BeamSpotData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef BEAMSPOTCONDITIONSDATA_BEAMSPOTDATA_H
5 #define BEAMSPOTCONDITIONSDATA_BEAMSPOTDATA_H
6 
9 
11 
12 #ifndef SIMULATIONBASE
13 #include "VxVertex/RecVertex.h"
14 #endif
15 
16 namespace InDet
17 {
18 
19  class BeamSpotData final //Class declared as final because no virtual destructor is used
20  //if you want to inherit, remove final keyword and add virtual destructor
21  {
22  public:
23  BeamSpotData(int status, float posX, float posY, float posZ,
24  float sigmaX, float sigmaY, float sigmaZ,
25  float tiltX, float tiltY, float sigmaXY);
26 
27  BeamSpotData() = delete; //Forbid undefined behaviour
28 
29  const Amg::Vector3D& beamPos() const noexcept;
30 
36  float beamSigma(int i) const noexcept;
37 
38  float beamSigmaXY() const noexcept;
39 
45  float beamTilt(int i) const noexcept;
46 
47  int beamStatus() const noexcept;
48 
49 #ifndef SIMULATIONBASE
50  const Trk::RecVertex& beamVtx() const noexcept;
51 #endif
52 
53 
54  private:
55 
56  int m_status;
57 
58  std::array<float, 6> m_errPar;
59 
61 
62 #ifndef SIMULATIONBASE
64 #endif
65 
66  };
67 
68  inline const Amg::Vector3D& BeamSpotData::beamPos() const noexcept { return m_beamPos; }
69 
70  inline float BeamSpotData::beamSigma(int i) const noexcept { return m_errPar[i]; }
71 
72  inline float BeamSpotData::beamSigmaXY() const noexcept { return m_errPar[5]; }
73 
74  inline float BeamSpotData::beamTilt(int i) const noexcept { return m_errPar[3+i]; }
75 
76  inline int BeamSpotData::beamStatus() const noexcept { return m_status; }
77 
78 #ifndef SIMULATIONBASE
79  inline const Trk::RecVertex& BeamSpotData::beamVtx() const noexcept { return m_vertex; }
80 #endif
81 
82 }
83 
84 CLASS_DEF(InDet::BeamSpotData,188569010,1)
85 CONDCONT_DEF(InDet::BeamSpotData,34275740);
86 
87 
88 #endif
RecVertex.h
beamspotCoolDiff.sigmaZ
sigmaZ
Definition: beamspotCoolDiff.py:155
beamspotCoolDiff.tiltY
tiltY
Definition: beamspotCoolDiff.py:157
CondCont.h
Hold mappings of ranges to condition objects.
beamspotCoolDiff.posX
posX
Definition: beamspotCoolDiff.py:150
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
beamspotCoolDiff.tiltX
tiltX
Definition: beamspotCoolDiff.py:156
InDet::BeamSpotData::beamVtx
const Trk::RecVertex & beamVtx() const noexcept
Definition: BeamSpotData.h:79
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
CONDCONT_DEF
CONDCONT_DEF(InDet::BeamSpotData, 34275740)
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
beamspotCoolDiff.sigmaX
sigmaX
Definition: beamspotCoolDiff.py:153
GeoPrimitives.h
InDet::BeamSpotData::m_errPar
std::array< float, 6 > m_errPar
Definition: BeamSpotData.h:58
InDet::BeamSpotData::m_beamPos
Amg::Vector3D m_beamPos
Definition: BeamSpotData.h:60
beamspotCoolDiff.posY
posY
Definition: beamspotCoolDiff.py:151
InDet::BeamSpotData::beamSigmaXY
float beamSigmaXY() const noexcept
Definition: BeamSpotData.h:72
lumiFormat.i
int i
Definition: lumiFormat.py:92
InDet::BeamSpotData::m_status
int m_status
Definition: BeamSpotData.h:56
beamspotCoolDiff.sigmaXY
sigmaXY
Definition: beamspotCoolDiff.py:158
InDet::BeamSpotData::beamPos
const Amg::Vector3D & beamPos() const noexcept
Definition: BeamSpotData.h:68
beamspotCoolDiff.posZ
posZ
Definition: beamspotCoolDiff.py:152
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDet::BeamSpotData::m_vertex
Trk::RecVertex m_vertex
Definition: BeamSpotData.h:63
InDet::BeamSpotData
Definition: BeamSpotData.h:21
InDet::BeamSpotData::BeamSpotData
BeamSpotData()=delete
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
merge.status
status
Definition: merge.py:17
InDet::BeamSpotData::beamStatus
int beamStatus() const noexcept
Definition: BeamSpotData.h:76
beamspotCoolDiff.sigmaY
sigmaY
Definition: beamspotCoolDiff.py:154
CLASS_DEF.h
macros to associate a CLID to a type
InDet::BeamSpotData::beamTilt
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
Definition: BeamSpotData.h:74
InDet::BeamSpotData::beamSigma
float beamSigma(int i) const noexcept
Returns the beam sigma for the i-th error matrix element.
Definition: BeamSpotData.h:70