ATLAS Offline Software
ScatteringAngles.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SCATTERINGANGLEONTRACK_H
6 #define SCATTERINGANGLEONTRACK_H
7 
8 #include <iostream>
9 
10 class MsgStream;
11 
12 namespace Trk {
25 class ScatteringAngles final
26 {
27 
28 public:
30  ScatteringAngles() = default;
33  double deltaTheta,
34  double sigmaDeltaPhi,
35  double sigmaDeltaTheta)
40  {}
41 
47  ~ScatteringAngles() = default;
48 
50  double deltaPhi() const;
51 
53  double deltaTheta() const;
54 
56  double sigmaDeltaPhi() const;
57 
59  double sigmaDeltaTheta() const;
60 
61 private:
63  double m_deltaPhi{ 0.0 };
65  double m_deltaTheta{ 0.0 };
67  double m_sigmaDeltaPhi{ 0.0 };
69  double m_sigmaDeltaTheta{ 0.0 };
70 };
71 
73 MsgStream&
74 operator<<(MsgStream& sl, const Trk::ScatteringAngles& saos);
76 std::ostream&
77 operator<<(std::ostream& sl, const Trk::ScatteringAngles& saos);
78 
79 } // end of Trk ns
80 
81 inline double
83 {
84  return m_deltaPhi;
85 }
86 
87 inline double
89 {
90  return m_deltaTheta;
91 }
92 
93 inline double
95 {
96  return m_sigmaDeltaPhi;
97 }
98 
99 inline double
101 {
102  return m_sigmaDeltaTheta;
103 }
104 
105 #endif
106 
Trk::ScatteringAngles::deltaPhi
double deltaPhi() const
returns the
Definition: ScatteringAngles.h:82
Trk::ScatteringAngles::ScatteringAngles
ScatteringAngles(double deltaPhi, double deltaTheta, double sigmaDeltaPhi, double sigmaDeltaTheta)
full constructor passing two deflection angles and their uncertainties
Definition: ScatteringAngles.h:32
Trk::ScatteringAngles::ScatteringAngles
ScatteringAngles()=default
default constructor for POOL
Trk::ScatteringAngles::operator=
ScatteringAngles & operator=(const ScatteringAngles &)=default
Trk::ScatteringAngles
represents a deflection of the track caused through multiple scattering in material.
Definition: ScatteringAngles.h:26
Trk::ScatteringAngles::ScatteringAngles
ScatteringAngles(ScatteringAngles &&)=default
Trk::ScatteringAngles::sigmaDeltaTheta
double sigmaDeltaTheta() const
returns the
Definition: ScatteringAngles.h:100
Trk::ScatteringAngles::m_sigmaDeltaTheta
double m_sigmaDeltaTheta
holds the error on the theta deflection
Definition: ScatteringAngles.h:69
Trk::ScatteringAngles::~ScatteringAngles
~ScatteringAngles()=default
destructor
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ScatteringAngles::m_deltaPhi
double m_deltaPhi
holds deflection
Definition: ScatteringAngles.h:63
Trk::ScatteringAngles::ScatteringAngles
ScatteringAngles(const ScatteringAngles &)=default
Trk::ScatteringAngles::m_sigmaDeltaPhi
double m_sigmaDeltaPhi
holds the error on the phi deflection
Definition: ScatteringAngles.h:67
yodamerge_tmp.saos
list saos
Definition: yodamerge_tmp.py:161
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
Trk::ScatteringAngles::operator=
ScatteringAngles & operator=(ScatteringAngles &&)=default
Trk::ScatteringAngles::sigmaDeltaPhi
double sigmaDeltaPhi() const
returns the
Definition: ScatteringAngles.h:94
Trk::ScatteringAngles::m_deltaTheta
double m_deltaTheta
holds deflection
Definition: ScatteringAngles.h:65
Trk::ScatteringAngles::deltaTheta
double deltaTheta() const
returns the
Definition: ScatteringAngles.h:88