BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRecPrimaryVertex Class Reference

#include <EvtRecPrimaryVertex.h>

+ Inheritance diagram for EvtRecPrimaryVertex:

Public Member Functions

virtual const CLID & clID () const
 
 EvtRecPrimaryVertex ()
 
 ~EvtRecPrimaryVertex ()
 
 EvtRecPrimaryVertex (const EvtRecPrimaryVertex &)
 
EvtRecPrimaryVertexoperator= (const EvtRecPrimaryVertex &)
 
bool isValid () const
 
int nTracks () const
 
const std::vector< int > & trackIdList () const
 
double chi2 () const
 
int ndof () const
 
int fitMethod () const
 
const HepVector & vertex () const
 
const HepSymMatrix & errorVertex () const
 
void setIsValid (bool isValid)
 
void setNTracks (int nTracks)
 
void setTrackIdList (const std::vector< int > &trackIdList)
 
void setChi2 (double chi2)
 
void setNdof (int ndof)
 
void setFitMethod (int fitMethod)
 
void setVertex (const HepVector &vtx)
 
void setErrorVertex (const HepSymMatrix &Evtx)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 22 of file EvtRecPrimaryVertex.h.

Constructor & Destructor Documentation

◆ EvtRecPrimaryVertex() [1/2]

EvtRecPrimaryVertex::EvtRecPrimaryVertex ( )

Definition at line 3 of file EvtRecPrimaryVertex.cxx.

3 :
4 m_vtx(3, 0), m_Evtx(3, 0) {
5 m_isValid = false;
6 m_nTracks = -1;
7 m_chi2 = -1;
8 m_ndof = -3;
9 m_fitMethod = -1;
10}

◆ ~EvtRecPrimaryVertex()

EvtRecPrimaryVertex::~EvtRecPrimaryVertex ( )
inline

Definition at line 28 of file EvtRecPrimaryVertex.h.

28{;}

◆ EvtRecPrimaryVertex() [2/2]

EvtRecPrimaryVertex::EvtRecPrimaryVertex ( const EvtRecPrimaryVertex & vtx)

Definition at line 13 of file EvtRecPrimaryVertex.cxx.

13 :
14 DataObject(vtx),
15 m_trackIdList(vtx.m_trackIdList),
16 m_vtx(vtx.m_vtx),
17 m_Evtx(vtx.m_Evtx) {
18 m_isValid = vtx.m_isValid;
19 m_nTracks = vtx.m_nTracks;
20 m_chi2 = vtx.m_chi2;
21 m_ndof = vtx.m_ndof;
22 m_fitMethod = vtx.m_fitMethod;
23}

Member Function Documentation

◆ chi2()

double EvtRecPrimaryVertex::chi2 ( ) const
inline

Definition at line 36 of file EvtRecPrimaryVertex.h.

36{return m_chi2;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setChi2().

◆ classID()

static const CLID & EvtRecPrimaryVertex::classID ( )
inlinestatic

Definition at line 25 of file EvtRecPrimaryVertex.h.

const CLID & CLID_EvtRecPrimaryVertex

Referenced by clID().

◆ clID()

virtual const CLID & EvtRecPrimaryVertex::clID ( ) const
inlinevirtual

Definition at line 24 of file EvtRecPrimaryVertex.h.

static const CLID & classID()

◆ errorVertex()

const HepSymMatrix & EvtRecPrimaryVertex::errorVertex ( ) const
inline

Definition at line 40 of file EvtRecPrimaryVertex.h.

40{return m_Evtx;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject().

◆ fitMethod()

int EvtRecPrimaryVertex::fitMethod ( ) const
inline

Definition at line 38 of file EvtRecPrimaryVertex.h.

38{return m_fitMethod;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setFitMethod().

◆ isValid()

bool EvtRecPrimaryVertex::isValid ( ) const
inline

Definition at line 33 of file EvtRecPrimaryVertex.h.

33{return m_isValid;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setIsValid().

◆ ndof()

int EvtRecPrimaryVertex::ndof ( ) const
inline

Definition at line 37 of file EvtRecPrimaryVertex.h.

37{return m_ndof;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setNdof().

◆ nTracks()

int EvtRecPrimaryVertex::nTracks ( ) const
inline

Definition at line 34 of file EvtRecPrimaryVertex.h.

34{return m_nTracks;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setNTracks().

◆ operator=()

EvtRecPrimaryVertex & EvtRecPrimaryVertex::operator= ( const EvtRecPrimaryVertex & vtx)

Definition at line 26 of file EvtRecPrimaryVertex.cxx.

26 {
27 m_isValid = vtx.m_isValid;
28 m_nTracks = vtx.m_nTracks;
29 m_trackIdList = vtx.m_trackIdList; // FIXME
30 m_chi2 = vtx.m_chi2;
31 m_ndof = vtx.m_ndof;
32 m_fitMethod = vtx.m_fitMethod;
33 m_vtx = vtx.m_vtx;
34 m_Evtx = vtx.m_Evtx;
35 return *this;
36}

◆ setChi2()

void EvtRecPrimaryVertex::setChi2 ( double chi2)
inline

Definition at line 45 of file EvtRecPrimaryVertex.h.

45{m_chi2 = chi2;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setErrorVertex()

void EvtRecPrimaryVertex::setErrorVertex ( const HepSymMatrix & Evtx)
inline

Definition at line 49 of file EvtRecPrimaryVertex.h.

49{m_Evtx = Evtx;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setFitMethod()

void EvtRecPrimaryVertex::setFitMethod ( int fitMethod)
inline

Definition at line 47 of file EvtRecPrimaryVertex.h.

47{m_fitMethod = fitMethod;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setIsValid()

void EvtRecPrimaryVertex::setIsValid ( bool isValid)
inline

Definition at line 42 of file EvtRecPrimaryVertex.h.

42{m_isValid = isValid;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setNdof()

void EvtRecPrimaryVertex::setNdof ( int ndof)
inline

◆ setNTracks()

void EvtRecPrimaryVertex::setNTracks ( int nTracks)
inline

Definition at line 43 of file EvtRecPrimaryVertex.h.

43{m_nTracks = nTracks;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setTrackIdList()

void EvtRecPrimaryVertex::setTrackIdList ( const std::vector< int > & trackIdList)
inline

Definition at line 44 of file EvtRecPrimaryVertex.h.

44{m_trackIdList = trackIdList;}
const std::vector< int > & trackIdList() const

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ setVertex()

void EvtRecPrimaryVertex::setVertex ( const HepVector & vtx)
inline

Definition at line 48 of file EvtRecPrimaryVertex.h.

48{m_vtx = vtx;}

Referenced by PrimaryVertex::execute(), and EvtRecPrimaryVertexCnv::TObjectToDataObject().

◆ trackIdList()

const std::vector< int > & EvtRecPrimaryVertex::trackIdList ( ) const
inline

Definition at line 35 of file EvtRecPrimaryVertex.h.

35{return m_trackIdList;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject(), and setTrackIdList().

◆ vertex()

const HepVector & EvtRecPrimaryVertex::vertex ( ) const
inline

Definition at line 39 of file EvtRecPrimaryVertex.h.

39{return m_vtx;}

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject().


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