ATLAS Offline Software
SamplePoint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SamplePointHXX
6 #define SamplePointHXX
7 
8 namespace MuonCalib {
9 
17  class SamplePoint {
18 
19  private:
20  // sample point triplet //
21  double m_x1;
22  double m_x2;
23  double m_sigma;
24 
25  // inline methods //
34  inline void init(double triplet[3]);
35 
44  inline void init(const double & mx1, const double & mx2,
45  const double & msigma);
46 
47  public:
48  // Constructors
49  SamplePoint(void) {
50  m_x1 = 0.0; m_x2 = 0.0; m_sigma = 0.0;
51  }
52 
60  SamplePoint(double triplet[3]) {
61  init(triplet);
62  }
63 
72  SamplePoint(const double & mx1, const double & mx2,
73  const double & msigma) {
74  init(mx1, mx2, msigma);
75  }
76 
77  // Methods
78  // get-methods //
79  inline double x1(void) const;
80  inline double x2(void) const;
81  inline double error(void) const;
82 
83  // set-methods //
92  inline void set_triplet(const double x[3]);
93  inline void set_x1(const double & mx1);
94  inline void set_x2(const double & mx2);
95  inline void set_error(const double & merror);
96 
97  };
98 
99 }
100 
102 // INCLUDE IMPLEMENTATION OF THE INLINE METHODS //
104 
105 #include "SamplePoint.ixx"
106 
107 #endif
MuonCalib::SamplePoint::init
void init(const double &mx1, const double &mx2, const double &msigma)
initialization method,
MuonCalib::SamplePoint::set_x2
void set_x2(const double &mx2)
set the x2 coordinate of the sample point to mx2
MuonCalib::SamplePoint::SamplePoint
SamplePoint(const double &mx1, const double &mx2, const double &msigma)
constructor,
Definition: SamplePoint.h:72
x
#define x
MuonCalib::SamplePoint::init
void init(double triplet[3])
initialization method,
MuonCalib::SamplePoint::x1
double x1(void) const
get the x1 coordinate of the sample point
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::SamplePoint::set_error
void set_error(const double &merror)
set the error of the x2 coordinate sample point to merror
MuonCalib::SamplePoint::m_x2
double m_x2
x2 coordinate of the sample point
Definition: SamplePoint.h:22
fitman.mx2
mx2
Definition: fitman.py:536
MuonCalib::SamplePoint::error
double error(void) const
get the error on the x2 coordinate of the sample point
MuonCalib::SamplePoint::set_x1
void set_x1(const double &mx1)
set the x1 coordinate of the sample point to mx1
MuonCalib::SamplePoint
Definition: SamplePoint.h:17
MuonCalib::SamplePoint::m_sigma
double m_sigma
error of the x2 coordinate of the sample point
Definition: SamplePoint.h:23
MuonCalib::SamplePoint::x2
double x2(void) const
get the x2 coordinate of the sample point
MuonCalib::SamplePoint::set_triplet
void set_triplet(const double x[3])
set the sample point,
MuonCalib::SamplePoint::m_x1
double m_x1
x1 coordinate of the sample point
Definition: SamplePoint.h:21
MuonCalib::SamplePoint::SamplePoint
SamplePoint(double triplet[3])
constructor,
Definition: SamplePoint.h:60
MuonCalib::SamplePoint::SamplePoint
SamplePoint(void)
default constructor
Definition: SamplePoint.h:49