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

#include <Vee.h>

Public Types

enum  hypothesis_t { Kshort =0, Lambda1 =1, Lambda2 =2 }
 

Public Member Functions

 Vee ()
 
 Vee (const float *pos, const float *vertexcov, const float chisq, const double time, const TLorentzVector *fourmomentum)
 
const float * Position () const
 
const float * VertexCov () const
 
double Time () const
 
const TLorentzVector & FourMomentum (const size_t i) const
 
float Chisq () const
 
bool operator== (const Vee &rhs) const
 
bool operator!= (const Vee &rhs) const
 
gar::rec::IDNumber getIDNumber () const
 

Private Attributes

gar::rec::IDNumber fIDnumero
 
float fVertexPos [3]
 position of the vertex, in cm More...
 
float fVertexCov [3][3]
 uncertainties on vertex position, in cm More...
 
double fTime
 
float fChisq
 
TLorentzVector fFourMomentum [3]
 

Static Private Attributes

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

Friends

std::ostream & operator<< (std::ostream &o, gar::rec::Vee const &h)
 

Detailed Description

Definition at line 17 of file Vee.h.

Member Enumeration Documentation

Enumerator
Kshort 
Lambda1 
Lambda2 

Definition at line 26 of file Vee.h.

Constructor & Destructor Documentation

gar::rec::Vee::Vee ( )

Definition at line 39 of file Vee.cxx.

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  }
static gar::rec::IDNumber const FirstNumber
Definition: Vee.h:29
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
float fVertexPos[3]
position of the vertex, in cm
Definition: Vee.h:32
gar::rec::IDNumber fIDnumero
Definition: Vee.h:30
TLorentzVector fFourMomentum[3]
Definition: Vee.h:36
double fTime
Definition: Vee.h:34
gar::rec::Vee::Vee ( const float *  pos,
const float *  vertexcov,
const float  chisq,
const double  time,
const TLorentzVector *  fourmomentum 
)

Definition at line 13 of file Vee.cxx.

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];
29  for (size_t j=0; j<3; ++j)
30  {
31  fVertexCov[i][j] = covmat[icounter++];
32  }
33  }
34  }
static gar::rec::IDNumber const FirstNumber
Definition: Vee.h:29
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
const TLorentzVector & FourMomentum(const size_t i) const
Definition: Vee.h:69
float fVertexPos[3]
position of the vertex, in cm
Definition: Vee.h:32
gar::rec::IDNumber fIDnumero
Definition: Vee.h:30
TLorentzVector fFourMomentum[3]
Definition: Vee.h:36
double fTime
Definition: Vee.h:34

Member Function Documentation

float gar::rec::Vee::Chisq ( ) const
inline

Definition at line 68 of file Vee.h.

68 { return fChisq; }
float fChisq
Definition: Vee.h:35
const TLorentzVector & gar::rec::Vee::FourMomentum ( const size_t  i) const
inline

Definition at line 69 of file Vee.h.

69 { return fFourMomentum[i]; }
TLorentzVector fFourMomentum[3]
Definition: Vee.h:36
gar::rec::IDNumber gar::rec::Vee::getIDNumber ( ) const

Definition at line 68 of file Vee.cxx.

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

Definition at line 64 of file Vee.cxx.

64  {
65  return (this->fIDnumero != rhs.fIDnumero);
66  }
gar::rec::IDNumber fIDnumero
Definition: Vee.h:30
bool gar::rec::Vee::operator== ( const Vee rhs) const

Definition at line 60 of file Vee.cxx.

60  {
61  return (this->fIDnumero == rhs.fIDnumero);
62  }
gar::rec::IDNumber fIDnumero
Definition: Vee.h:30
const float * gar::rec::Vee::Position ( ) const
inline

Definition at line 65 of file Vee.h.

65 { return &fVertexPos[0]; }
float fVertexPos[3]
position of the vertex, in cm
Definition: Vee.h:32
double gar::rec::Vee::Time ( ) const
inline

Definition at line 67 of file Vee.h.

67 { return fTime; }
double fTime
Definition: Vee.h:34
const float * gar::rec::Vee::VertexCov ( ) const
inline

Definition at line 66 of file Vee.h.

66 { return &(fVertexCov[0][0]); }
float fVertexCov[3][3]
uncertainties on vertex position, in cm
Definition: Vee.h:33

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
gar::rec::Vee const &  h 
)
friend

Member Data Documentation

float gar::rec::Vee::fChisq
private

Definition at line 35 of file Vee.h.

TLorentzVector gar::rec::Vee::fFourMomentum[3]
private

Definition at line 36 of file Vee.h.

gar::rec::IDNumber gar::rec::Vee::fIDnumero
private

Definition at line 30 of file Vee.h.

gar::rec::IDNumber const gar::rec::Vee::FirstNumber = 800000
staticprivate

Definition at line 29 of file Vee.h.

double gar::rec::Vee::fTime
private

Definition at line 34 of file Vee.h.

float gar::rec::Vee::fVertexCov[3][3]
private

uncertainties on vertex position, in cm

Definition at line 33 of file Vee.h.

float gar::rec::Vee::fVertexPos[3]
private

position of the vertex, in cm

Definition at line 32 of file Vee.h.


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