ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonCalib::DataPoint Class Reference

#include <DataPoint.h>

Collaboration diagram for MuonCalib::DataPoint:

Public Member Functions

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

Default constructor. Gives the vector of length 0.

Definition at line 23 of file DataPoint.cxx.

23  : m_ref_comp(0){
24 }

◆ 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 }

◆ 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 }

◆ 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 ( void  )

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 ( void  ) const

get the data vector

Definition at line 75 of file DataPoint.cxx.

75  {
76 
77  return m_vec;
78 
79 }

◆ operator<()

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

◆ operator<=()

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

◆ operator==()

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

◆ operator>()

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

◆ operator>=()

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

◆ referenceComponent()

unsigned int DataPoint::referenceComponent ( void  ) 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:
MuonCalib::DataPoint::m_vec
Amg::VectorX m_vec
Definition: DataPoint.h:76
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonCalib::DataPoint::m_ref_comp
unsigned int m_ref_comp
Definition: DataPoint.h:77
lumiFormat.i
int i
Definition: lumiFormat.py:92
lumiFormat.fill
fill
Definition: lumiFormat.py:111
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
fitman.k
k
Definition: fitman.py:528