ATLAS Offline Software
PolygonBase.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 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 // 29.06.2006, AUTHOR: OLIVER KORTNER
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 
9 #ifndef PolygonBaseH
10 #define PolygonBaseH
11 
12 //:::::::::::::::::::::::
13 //:: CLASS PolygonBase ::
14 //:::::::::::::::::::::::
15 
16 namespace MuonCalib {
24 }
25 
26 //::::::::::::::::::
27 //:: HEADER FILES ::
28 //::::::::::::::::::
29 
30 // standard C++ //
31 #include "math.h"
32 
33 // STL //
34 #include <vector>
35 
36 // MuonCalib //
38 
39 
40 namespace MuonCalib {
41 
42 class PolygonBase : public BaseFunction {
43 
44 public:
45 // Constructor //
46  PolygonBase(const std::vector<double> & x) {
47  init(x);
48  }
52 
53 // Method //
54  double value(const int & k, const double & x) const;
57 
58 private:
59  std::vector<double> m_x; // vector containing the abscissae of the base
60  // points of the polygon
61  void init(const std::vector<double> & x);
62  // initialization method,
63  // x contains the abscissae of the base points
64  // of the polygon.
65 
66 };
67 
68 }
69 
70 #endif
MuonCalib::PolygonBase::init
void init(const std::vector< double > &x)
Definition: PolygonBase.cxx:12
x
#define x
MuonCalib::BaseFunction
Definition: BaseFunction.h:23
MuonCalib::PolygonBase::PolygonBase
PolygonBase(const std::vector< double > &x)
Constructor: the vector x contains the abscissae of the base points of the polygon.
Definition: PolygonBase.h:46
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::PolygonBase::value
double value(const int &k, const double &x) const
get the value of the k-th base
Definition: PolygonBase.cxx:40
BaseFunction.h
MuonCalib::PolygonBase::m_x
std::vector< double > m_x
Definition: PolygonBase.h:59
MuonCalib::PolygonBase
Definition: PolygonBase.h:42
fitman.k
k
Definition: fitman.py:528