Vee.cxx
Go to the documentation of this file.
1 //
2 // Vee.cxx
3 // garsoft-mrb
4 //
5 // Created by Tom Junk May 3, 2020
6 
8 
9 namespace gar {
10  namespace rec {
11 
12  //--------------------------------------------------------------------------
13  Vee::Vee(const float *pos,
14  const float *covmat,
15  const float chisq,
16  const double time,
17  const TLorentzVector *FourMomentum)
18  {
19  fChisq = chisq;
20  fTime = time;
23 
24  size_t icounter = 0;
25  for (size_t i=0; i<3; ++i)
26  {
27  fVertexPos[i] = pos[i];
28  fFourMomentum[i] = FourMomentum[i];
29  for (size_t j=0; j<3; ++j)
30  {
31  fVertexCov[i][j] = covmat[icounter++];
32  }
33  }
34  }
35 
36  //--------------------------------------------------------------------------
37  // empty constructor -- zero all entries -- not sure if we need this -- could be misleading if we ever have one.
38 
40  : fTime(0)
41  {
44 
45  for (size_t i=0;i<3;++i)
46  {
47  fVertexPos[i] = 0;
48  fFourMomentum[i] *= 0;
49  for (size_t j=0; j<3; ++j)
50  {
51  fVertexCov[i][j] = 0;
52  }
53  }
54  }
55 
56 
57 
58  //--------------------------------------------------------------------------
59  // ID number methods
60  bool Vee::operator==(const Vee& rhs) const {
61  return (this->fIDnumero == rhs.fIDnumero);
62  }
63 
64  bool Vee::operator!=(const Vee& rhs) const {
65  return (this->fIDnumero != rhs.fIDnumero);
66  }
67 
69 
70  } // rec
71 } // gar
rec
Definition: tracks.py:88
static gar::rec::IDNumber const FirstNumber
Definition: Vee.h:29
bool operator==(const Vee &rhs) const
Definition: Vee.cxx:60
float fChisq
Definition: Vee.h:35
float fVertexCov[3][3]
uncertainties on vertex position, in cm
Definition: Vee.h:33
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
Definition: IDNumberGen.cxx:18
bool operator!=(const Vee &rhs) const
Definition: Vee.cxx:64
float fVertexPos[3]
position of the vertex, in cm
Definition: Vee.h:32
General GArSoft Utilities.
gar::rec::IDNumber fIDnumero
Definition: Vee.h:30
TLorentzVector fFourMomentum[3]
Definition: Vee.h:36
gar::rec::IDNumber getIDNumber() const
Definition: Vee.cxx:68
double fTime
Definition: Vee.h:34
size_t IDNumber
Definition: IDNumberGen.h:71