ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::DataPoint Class Reference

#include <DataPoint.h>

Collaboration diagram for MuonCalib::DataPoint:

Public Member Functions

 DataPoint ()
 Default constructor. Gives the vector of length 0.
 DataPoint (const unsigned int &length, const double fill)
 Constructor.
 DataPoint (const Amg::VectorX &vec, const unsigned int ref_comp)
 Constructor.
 DataPoint (const CLHEP::HepVector &vec, const unsigned int ref_comp)
 Constructor.
const Amg::VectorXdataVector () const
 get the data vector
Amg::VectorXdataVector ()
 get the data vector
unsigned int referenceComponent () const
 get the ordering component (>=0)
void setReferenceComponent (const unsigned int &ref_comp)
 set the ordering component to ref_comp (>=0)
bool operator< (const DataPoint &point) const
bool operator> (const DataPoint &point) const
bool operator<= (const DataPoint &point) const
bool operator>= (const DataPoint &point) const
bool operator== (const DataPoint &point) const

Private Attributes

Amg::VectorX m_vec
unsigned int m_ref_comp

Detailed Description

Definition at line 32 of file DataPoint.h.

Constructor & Destructor Documentation

◆ DataPoint() [1/4]

DataPoint::DataPoint ( )

Default constructor. Gives the vector of length 0.

Definition at line 23 of file DataPoint.cxx.

23 : m_ref_comp(0){
24}
unsigned int m_ref_comp
Definition DataPoint.h:77

◆ DataPoint() [2/4]

DataPoint::DataPoint ( const unsigned int & length,
const double fill )

Constructor.

Parameters
lengthLength of the vector.
fillSets the value of the components of the vector to fill.

Definition at line 32 of file DataPoint.cxx.

33 : m_vec (length),
34 m_ref_comp (0)
35{
36 for (unsigned int k=0; k<length; k++) {
37 m_vec[k] = fill;
38 }
39}
double length(const pvec &v)
Amg::VectorX m_vec
Definition DataPoint.h:76
void fill(H5::Group &out_file, size_t iterations)

◆ DataPoint() [3/4]

DataPoint::DataPoint ( const Amg::VectorX & vec,
const unsigned int ref_comp )

Constructor.

Parameters
vecVector to be made the data point.
ref_compComponent used for ordering and comparison (>=0).

Definition at line 47 of file DataPoint.cxx.

48 : m_vec(vec),
49 m_ref_comp(ref_comp)
50{
51}
std::vector< size_t > vec

◆ DataPoint() [4/4]

DataPoint::DataPoint ( const CLHEP::HepVector & vec,
const unsigned int ref_comp )

Constructor.

Parameters
vecVector to be made the data point.
ref_compComponent used for ordering and comparison (>=0).

Definition at line 59 of file DataPoint.cxx.

60 : m_vec(vec.num_row()),
61 m_ref_comp (ref_comp)
62{
63 for(int i=0; i<vec.num_row(); i++)
64 {
65 m_vec[i]=vec[i];
66 }
67}

Member Function Documentation

◆ dataVector() [1/2]

Amg::VectorX & DataPoint::dataVector ( )

get the data vector

Definition at line 87 of file DataPoint.cxx.

87 {
88
89 return m_vec;
90
91}

◆ dataVector() [2/2]

const Amg::VectorX & DataPoint::dataVector ( ) const

get the data vector

Definition at line 75 of file DataPoint.cxx.

75 {
76
77 return m_vec;
78
79}

◆ operator<()

bool DataPoint::operator< ( const DataPoint & point) const
inline

Definition at line 16 of file DataPoint.h.

◆ operator<=()

bool DataPoint::operator<= ( const DataPoint & point) const
inline

Definition at line 40 of file DataPoint.h.

◆ operator==()

bool DataPoint::operator== ( const DataPoint & point) const
inline

Definition at line 64 of file DataPoint.h.

◆ operator>()

bool DataPoint::operator> ( const DataPoint & point) const
inline

Definition at line 28 of file DataPoint.h.

30 {
31
32class DataPoint {
DataPoint()
Default constructor. Gives the vector of length 0.
Definition DataPoint.cxx:23

◆ operator>=()

bool DataPoint::operator>= ( const DataPoint & point) const
inline

Definition at line 52 of file DataPoint.h.

◆ referenceComponent()

unsigned int DataPoint::referenceComponent ( ) const

get the ordering component (>=0)

Definition at line 99 of file DataPoint.cxx.

99 {
100
101 return m_ref_comp;
102
103}

◆ setReferenceComponent()

void DataPoint::setReferenceComponent ( const unsigned int & ref_comp)

set the ordering component to ref_comp (>=0)

Definition at line 111 of file DataPoint.cxx.

111 {
112
113 m_ref_comp = ref_comp;
114
115}

Member Data Documentation

◆ m_ref_comp

unsigned int MuonCalib::DataPoint::m_ref_comp
private

Definition at line 77 of file DataPoint.h.

◆ m_vec

Amg::VectorX MuonCalib::DataPoint::m_vec
private

Definition at line 76 of file DataPoint.h.


The documentation for this class was generated from the following files: