Vertex.h
Go to the documentation of this file.
1 //
2 // Vertex.h
3 //
4 // Created by Tom Junk on 7/11/16.
5 // Not much track information is stored in the vertex data product -- use the associations with tracks to find them.
6 //
7 
8 #ifndef GAR_RECONSTRUCTIONDATAPRODUCTS_Vertex_h
9 #define GAR_RECONSTRUCTIONDATAPRODUCTS_Vertex_h
10 
11 #include "RtypesCore.h"
12 #include <stdint.h>
13 #include <iostream>
14 #include "IDNumberGen.h"
15 
16 
17 
18 namespace gar {
19  namespace rec {
20 
21  class Vertex {
22 
23  public:
24  Vertex();
25 
26  // let the compiler provide the dtor
27 
28  private:
29  static gar::rec::IDNumber const FirstNumber = 400000;
31 
32  float fPosition[3]; ///< position of vertex
33  float fCovMat[3][3]; ///< uncertianties on the position
34  double fTime; ///< timestamp (ROOT's portable version of uint64_t)
35 
36 #ifndef __GCCXML__
37 
38  public:
39 
40  Vertex(const float *pos,
41  const float *covmat,
42  const double time);
43 
44  bool operator==(const Vertex& rhs) const;
45  bool operator!=(const Vertex& rhs) const;
47 
48  const float* Position() const;
49  const float* CovMat() const;
50  double Time() const;
51 
52 #endif
53 
54  };
55 
56  inline const float* Vertex::Position() const { return &fPosition[0]; }
57  inline const float* Vertex::CovMat() const { return &(fCovMat[0][0]); }
58  inline double Vertex::Time() const { return fTime; }
59  } // rec
60 } // gar
61 
62 
63 #endif /* GAR_RECONSTRUCTIONDATAPRODUCTS_Hit_h */
rec
Definition: tracks.py:88
gar::rec::IDNumber getIDNumber() const
Definition: Vertex.cxx:64
bool operator!=(const Vertex &rhs) const
Definition: Vertex.cxx:60
gar::rec::IDNumber fIDnumero
Definition: Vertex.h:30
float fCovMat[3][3]
uncertianties on the position
Definition: Vertex.h:33
const float * Position() const
Definition: Vertex.h:56
const float * CovMat() const
Definition: Vertex.h:57
General GArSoft Utilities.
static gar::rec::IDNumber const FirstNumber
Definition: Vertex.h:29
double Time() const
Definition: Vertex.h:58
bool operator==(const Vertex &rhs) const
Definition: Vertex.cxx:56
size_t IDNumber
Definition: IDNumberGen.h:71
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