Public Member Functions | Private Attributes | Static Private Attributes | List of all members
gar::rec::Vertex Class Reference

#include <Vertex.h>

Public Member Functions

 Vertex ()
 
 Vertex (const float *pos, const float *covmat, const double time)
 
bool operator== (const Vertex &rhs) const
 
bool operator!= (const Vertex &rhs) const
 
gar::rec::IDNumber getIDNumber () const
 
const float * Position () const
 
const float * CovMat () const
 
double Time () const
 

Private Attributes

gar::rec::IDNumber fIDnumero
 
float fPosition [3]
 position of vertex More...
 
float fCovMat [3][3]
 uncertianties on the position More...
 
double fTime
 timestamp (ROOT's portable version of uint64_t) More...
 

Static Private Attributes

static gar::rec::IDNumber const FirstNumber = 400000
 

Detailed Description

Definition at line 21 of file Vertex.h.

Constructor & Destructor Documentation

gar::rec::Vertex::Vertex ( )

Definition at line 36 of file Vertex.cxx.

37  : fTime(0)
38  {
41 
42  for (size_t i=0;i<3;++i)
43  {
44  fPosition[i] = 0;
45  for (size_t j=0; j<3; ++j)
46  {
47  fCovMat[i][j] = 0;
48  }
49  }
50  }
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
Definition: IDNumberGen.cxx:18
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
float fCovMat[3][3]
uncertianties on the position
Definition: Vertex.h:33
static gar::rec::IDNumber const FirstNumber
Definition: Vertex.h:29
double fTime
timestamp (ROOT&#39;s portable version of uint64_t)
Definition: Vertex.h:34
float fPosition[3]
position of vertex
Definition: Vertex.h:32
gar::rec::Vertex::Vertex ( const float *  pos,
const float *  covmat,
const double  time 
)

Definition at line 13 of file Vertex.cxx.

16  : fTime(time)
17  {
20 
21  size_t icounter = 0;
22  for (size_t i=0;i<3;++i)
23  {
24  fPosition[i] = pos[i];
25  for (size_t j=0; j<3; ++j)
26  {
27  fCovMat[i][j] = covmat[icounter];
28  ++icounter;
29  }
30  }
31  }
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
Definition: IDNumberGen.cxx:18
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
float fCovMat[3][3]
uncertianties on the position
Definition: Vertex.h:33
static gar::rec::IDNumber const FirstNumber
Definition: Vertex.h:29
double fTime
timestamp (ROOT&#39;s portable version of uint64_t)
Definition: Vertex.h:34
float fPosition[3]
position of vertex
Definition: Vertex.h:32

Member Function Documentation

const float * gar::rec::Vertex::CovMat ( ) const
inline

Definition at line 57 of file Vertex.h.

57 { return &(fCovMat[0][0]); }
float fCovMat[3][3]
uncertianties on the position
Definition: Vertex.h:33
gar::rec::IDNumber gar::rec::Vertex::getIDNumber ( ) const

Definition at line 64 of file Vertex.cxx.

64 {return fIDnumero;}
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
bool gar::rec::Vertex::operator!= ( const Vertex rhs) const

Definition at line 60 of file Vertex.cxx.

60  {
61  return (this->fIDnumero != rhs.fIDnumero);
62  }
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
bool gar::rec::Vertex::operator== ( const Vertex rhs) const

Definition at line 56 of file Vertex.cxx.

56  {
57  return (this->fIDnumero == rhs.fIDnumero);
58  }
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
const float * gar::rec::Vertex::Position ( ) const
inline

Definition at line 56 of file Vertex.h.

56 { return &fPosition[0]; }
float fPosition[3]
position of vertex
Definition: Vertex.h:32
double gar::rec::Vertex::Time ( ) const
inline

Definition at line 58 of file Vertex.h.

58 { return fTime; }
double fTime
timestamp (ROOT&#39;s portable version of uint64_t)
Definition: Vertex.h:34

Member Data Documentation

float gar::rec::Vertex::fCovMat[3][3]
private

uncertianties on the position

Definition at line 33 of file Vertex.h.

gar::rec::IDNumber gar::rec::Vertex::fIDnumero
private

Definition at line 30 of file Vertex.h.

gar::rec::IDNumber const gar::rec::Vertex::FirstNumber = 400000
staticprivate

Definition at line 29 of file Vertex.h.

float gar::rec::Vertex::fPosition[3]
private

position of vertex

Definition at line 32 of file Vertex.h.

double gar::rec::Vertex::fTime
private

timestamp (ROOT's portable version of uint64_t)

Definition at line 34 of file Vertex.h.


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