ATLAS Offline Software
DataPoint.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 // 07.06.2008, AUTHOR: OLIVER KORTNER
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 
9 #ifndef MuonCalib_DataPointH
10 #define MuonCalib_DataPointH
11 
12 //:::::::::::::::::::::
13 //:: CLASS DataPoint ::
14 //:::::::::::::::::::::
15 
23 
24 //::::::::::::::::::
25 //:: HEADER FILES ::
26 //::::::::::::::::::
27 
29 #include "CLHEP/Matrix/Vector.h"
30 namespace MuonCalib {
31 
32 class DataPoint {
33 
34 public:
35 // Constructors //
36  DataPoint();
38 
39  DataPoint(const unsigned int & length, const double fill);
43 
44  DataPoint(const Amg::VectorX & vec, const unsigned int ref_comp);
48 
49  DataPoint(const CLHEP::HepVector & vec, const unsigned int ref_comp);
53 
54 // Methods //
55 // get-methods //
56  const Amg::VectorX & dataVector() const;
60  unsigned int referenceComponent() const;
62 
63 // set-methods //
64  void setReferenceComponent(const unsigned int & ref_comp);
67 
68 // operators (all operators are applied to the comparison component) //
69  inline bool operator < (const DataPoint & point) const;
70  inline bool operator > (const DataPoint & point) const;
71  inline bool operator <= (const DataPoint & point) const;
72  inline bool operator >= (const DataPoint & point) const;
73  inline bool operator == (const DataPoint & point) const;
74 
75 private:
76  Amg::VectorX m_vec; // data vector
77  unsigned int m_ref_comp; // component used for ordering and comparison
78 
79 };
80 
82 // INCLUDE HEADER FILES //
84 
85 #include "MuonCalibMath/DataPoint.ixx"
86 
87 }
88 
89 #endif
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:30
MuonCalib::DataPoint::operator>=
bool operator>=(const DataPoint &point) const
MuonCalib::DataPoint::m_vec
Amg::VectorX m_vec
Definition: DataPoint.h:76
MuonCalib::DataPoint::operator<=
bool operator<=(const DataPoint &point) const
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonCalib::DataPoint::operator<
bool operator<(const DataPoint &point) const
MuonCalib::DataPoint::setReferenceComponent
void setReferenceComponent(const unsigned int &ref_comp)
set the ordering component to ref_comp (>=0)
Definition: DataPoint.cxx:111
MuonCalib::DataPoint::m_ref_comp
unsigned int m_ref_comp
Definition: DataPoint.h:77
MuonCalib::DataPoint::operator>
bool operator>(const DataPoint &point) const
MuonCalib::DataPoint::dataVector
const Amg::VectorX & dataVector() const
get the data vector
Definition: DataPoint.cxx:75
MuonCalib::DataPoint
Definition: DataPoint.h:32
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::DataPoint::referenceComponent
unsigned int referenceComponent() const
get the ordering component (>=0)
Definition: DataPoint.cxx:99
fill
void fill(H5::Group &out_file, size_t iterations)
Definition: test-hdf5-writer.cxx:95
EventPrimitives.h
MuonCalib::DataPoint::DataPoint
DataPoint()
Default constructor. Gives the vector of length 0.
Definition: DataPoint.cxx:23
MuonCalib::DataPoint::operator==
bool operator==(const DataPoint &point) const
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26