ATLAS Offline Software
NoiseOnSurface.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class NoiseOnSurface
8 // (c) ATLAS Detector software
10 // Class for noises on surface
12 // Version 1.0 3/10/2004 I.Gavrilenko
14 
15 #ifndef NoiseOnSurface_H
16 #define NoiseOnSurface_H
17 
18 class MsgStream;
19 
20 namespace Trk {
21 
23  {
25  // Public methods:
27 
28  public:
29 
34 
36  // Main methods
38 
39  const double& covarianceAzim() const {return m_covarianceAzim;}
40  const double& covariancePola() const {return m_covariancePola;}
41  const double& covarianceIMom() const {return m_covarianceIMom;}
42  const double& correctionIMom() const {return m_correctionIMom;}
43  void initiate();
44  void set(const double&,const double&,const double&,const double&);
45 
47  // Print
49 
50  std::ostream& dump(std::ostream&) const;
51  MsgStream& dump(MsgStream& ) const;
52 
53  protected:
54 
56  // Protected Data
58 
63 
65  // Methods
67 
68  };
69 
71  // Overload operator
73 
74  std::ostream& operator << (std::ostream&,const NoiseOnSurface&);
75  MsgStream& operator << (MsgStream&, const NoiseOnSurface& );
76 
78  // Inline methods
80 
81  inline NoiseOnSurface::NoiseOnSurface():m_covarianceAzim(0.), m_covariancePola(0.),
82  m_covarianceIMom(0.), m_correctionIMom(0.)
83  {
84  }
85 
87  {
88  m_covarianceAzim = N.m_covarianceAzim;
89  m_covariancePola = N.m_covariancePola;
90  m_covarianceIMom = N.m_covarianceIMom;
91  m_correctionIMom = N.m_correctionIMom;
92  }
93 
95  {
96  if (&N != this){
97  m_covarianceAzim = N.m_covarianceAzim;
98  m_covariancePola = N.m_covariancePola;
99  m_covarianceIMom = N.m_covarianceIMom;
100  m_correctionIMom = N.m_correctionIMom;
101  }
102  return(*this);
103  }
104 
106 
108  {
109  m_covarianceAzim = 0.;
110  m_covariancePola = 0.;
111  m_covarianceIMom = 0.;
112  m_correctionIMom = 1.;
113  }
114 
116  (const double& az,const double& po,const double& im,const double& imc)
117  {
118  m_covarianceAzim = az ;
119  m_covariancePola = po ;
120  m_covarianceIMom = im ;
121  m_correctionIMom = imc;
122  }
123 
124 } // end of name space
125 
126 #endif // NoiseOnSurface
Trk::NoiseOnSurface::covariancePola
const double & covariancePola() const
Definition: NoiseOnSurface.h:40
Trk::NoiseOnSurface::correctionIMom
const double & correctionIMom() const
Definition: NoiseOnSurface.h:42
Trk::NoiseOnSurface::dump
std::ostream & dump(std::ostream &) const
Definition: NoiseOnSurface.cxx:33
Trk::NoiseOnSurface::m_covariancePola
double m_covariancePola
Definition: NoiseOnSurface.h:60
Trk::NoiseOnSurface::m_correctionIMom
double m_correctionIMom
Definition: NoiseOnSurface.h:62
python.atlas_oh.im
im
Definition: atlas_oh.py:167
Trk::NoiseOnSurface::operator=
NoiseOnSurface & operator=(const NoiseOnSurface &)
Definition: NoiseOnSurface.h:94
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
Trk::NoiseOnSurface
Definition: NoiseOnSurface.h:23
Trk::NoiseOnSurface::set
void set(const double &, const double &, const double &, const double &)
Definition: NoiseOnSurface.h:116
Trk::NoiseOnSurface::NoiseOnSurface
NoiseOnSurface()
Definition: NoiseOnSurface.h:81
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::NoiseOnSurface::m_covarianceIMom
double m_covarianceIMom
Definition: NoiseOnSurface.h:61
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
Trk::NoiseOnSurface::m_covarianceAzim
double m_covarianceAzim
Definition: NoiseOnSurface.h:59
Trk::NoiseOnSurface::~NoiseOnSurface
~NoiseOnSurface()
Definition: NoiseOnSurface.h:105
Trk::NoiseOnSurface::initiate
void initiate()
Definition: NoiseOnSurface.h:107
Trk::NoiseOnSurface::covarianceAzim
const double & covarianceAzim() const
Definition: NoiseOnSurface.h:39
Trk::NoiseOnSurface::covarianceIMom
const double & covarianceIMom() const
Definition: NoiseOnSurface.h:41