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
CondCont.h
Hold mappings of ranges to condition objects.
beamspotman.sigmaZ
sigmaZ
Definition: beamspotman.py:1625
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
beamspotman.tiltY
tiltY
Definition: beamspotman.py:1627
beamspotman.tiltX
tiltX
Definition: beamspotman.py:1626
beamspotman.sigmaXY
sigmaXY
Definition: beamspotman.py:1628
beamspotman.posX
posX
Definition: beamspotman.py:1624
InDet::BeamSpotData::beamVtx
const Trk::RecVertex & beamVtx() const noexcept
Definition: BeamSpotData.h:79
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
beamspotman.sigmaX
sigmaX
Definition: beamspotman.py:1625
CONDCONT_DEF
CONDCONT_DEF(InDet::BeamSpotData, 34275740)
beamspotman.sigmaY
sigmaY
Definition: beamspotman.py:1625
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
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
InDet::BeamSpotData::beamSigmaXY
float beamSigmaXY() const noexcept
Definition: BeamSpotData.h:72
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.posZ
posZ
Definition: beamspotman.py:1624
InDet::BeamSpotData::m_status
int m_status
Definition: BeamSpotData.h:56
InDet::BeamSpotData::beamPos
const Amg::Vector3D & beamPos() const noexcept
Definition: BeamSpotData.h:68
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDet::BeamSpotData::m_vertex
Trk::RecVertex m_vertex
Definition: BeamSpotData.h:63
beamspotman.posY
posY
Definition: beamspotman.py:1624
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
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