CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRecVeeVertex Class Reference

#include <EvtRecVeeVertex.h>

+ Inheritance diagram for EvtRecVeeVertex:

Public Member Functions

virtual const CLID & clID () const
 
 EvtRecVeeVertex ()
 
 ~EvtRecVeeVertex ()
 
 EvtRecVeeVertex (const EvtRecVeeVertex &)
 
EvtRecVeeVertexoperator= (const EvtRecVeeVertex &)
 
int vertexId () const
 
int vertexType () const
 
double chi2 () const
 
int ndof () const
 
double mass () const
 
const HepVector & w () const
 
const HepSymMatrix & Ew () const
 
const std::pair< int, int > & pair () const
 
int pair (int i) const
 
int nCharge () const
 
int nTracks () const
 
std::pair< SmartRef< EvtRecTrack >, SmartRef< EvtRecTrack > > & pairDaughters ()
 
SmartRef< EvtRecTrack > & daughter (int i)
 
void setVertexId (int vtxId)
 
void setVertexType (int vtxType)
 
void setChi2 (double chi2)
 
void setNdof (int ndof)
 
void setMass (double mass)
 
void setW (const HepVector &w)
 
void setEw (const HepSymMatrix &Ew)
 
void setPair (const std::pair< int, int > &pair)
 
void setNCharge (int nCharge)
 
void setNTracks (int nTracks)
 
void addDaughter (const SmartRef< EvtRecTrack > &track, int i)
 
void setDaughter (const std::pair< SmartRef< EvtRecTrack >, SmartRef< EvtRecTrack > > &p)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 24 of file EvtRecVeeVertex.h.

Constructor & Destructor Documentation

◆ EvtRecVeeVertex() [1/2]

EvtRecVeeVertex::EvtRecVeeVertex ( )

Definition at line 3 of file EvtRecVeeVertex.cxx.

3 :
4 m_w(7, 0),
5 m_Ew(7, 0),
6 m_pair(-1, -1),
7 m_daughters(SmartRef<EvtRecTrack>((EvtRecTrack*)0), SmartRef<EvtRecTrack>((EvtRecTrack*)0)) {
8 m_vertexId = -1;
9 m_vertexType = -1;
10 m_chi2 = 999.9;
11 m_ndof = -3;
12 m_mass = 0.;
13 m_nCharge = -1;
14 m_nTracks = -1;
15}

◆ ~EvtRecVeeVertex()

EvtRecVeeVertex::~EvtRecVeeVertex ( )
inline

Definition at line 30 of file EvtRecVeeVertex.h.

30{;}

◆ EvtRecVeeVertex() [2/2]

EvtRecVeeVertex::EvtRecVeeVertex ( const EvtRecVeeVertex & vtx)

Definition at line 18 of file EvtRecVeeVertex.cxx.

18 :
19 ContainedObject(vtx),
20 m_w(vtx.m_w),
21 m_Ew(vtx.m_Ew),
22 m_pair(vtx.m_pair),
23 m_daughters(vtx.m_daughters) {
24 m_vertexId = vtx.m_vertexId;
25 m_vertexType = vtx.m_vertexType;
26 m_chi2 = vtx.m_chi2;
27 m_ndof = vtx.m_ndof;
28 m_mass = vtx.m_mass;
29 m_nCharge = vtx.m_nCharge;
30 m_nTracks = vtx.m_nTracks;
31}

Member Function Documentation

◆ addDaughter()

void EvtRecVeeVertex::addDaughter ( const SmartRef< EvtRecTrack > & track,
int i )
inline

Definition at line 97 of file EvtRecVeeVertex.h.

97 {
98 if (i == 0) {
99 m_daughters.first = track;
100 } else if (i == 1) {
101 m_daughters.second = track;
102 } else {
103 assert(false);
104 }
105}

Referenced by KShortReconstruction::execute(), LambdaReconstruction::execute(), and EvtRecVeeVertexCnv::TObjectToDataObject().

◆ chi2()

double EvtRecVeeVertex::chi2 ( ) const
inline

Definition at line 37 of file EvtRecVeeVertex.h.

37{return m_chi2;}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject(), LocalKsSelector::operator()(), and setChi2().

◆ classID()

static const CLID & EvtRecVeeVertex::classID ( )
inlinestatic

Definition at line 27 of file EvtRecVeeVertex.h.

const CLID & CLID_EvtRecVeeVertex

Referenced by clID().

◆ clID()

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

Definition at line 26 of file EvtRecVeeVertex.h.

static const CLID & classID()

◆ daughter()

SmartRef< EvtRecTrack > & EvtRecVeeVertex::daughter ( int i)
inline

Definition at line 89 of file EvtRecVeeVertex.h.

89 {
90 if (i == 0) {
91 return m_daughters.first;
92 }
93 assert(i == 1);
94 return m_daughters.second;
95}

Referenced by CDKs::CDKs(), CDLambda::CDLambda(), EvtRecVeeVertexCnv::DataObjectToTObject(), ChargedDReconstruction::execute(), DsReconstruction::execute(), and NeutralDReconstruction::execute().

◆ Ew()

const HepSymMatrix & EvtRecVeeVertex::Ew ( ) const
inline

Definition at line 41 of file EvtRecVeeVertex.h.

41{return m_Ew;}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject(), and setEw().

◆ mass()

double EvtRecVeeVertex::mass ( ) const
inline

◆ nCharge()

int EvtRecVeeVertex::nCharge ( ) const
inline

Definition at line 44 of file EvtRecVeeVertex.h.

44{return m_nCharge;}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject(), and setNCharge().

◆ ndof()

int EvtRecVeeVertex::ndof ( ) const
inline

Definition at line 38 of file EvtRecVeeVertex.h.

38{return m_ndof;}

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

◆ nTracks()

int EvtRecVeeVertex::nTracks ( ) const
inline

Definition at line 45 of file EvtRecVeeVertex.h.

45{return m_nTracks;}

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

◆ operator=()

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

Definition at line 34 of file EvtRecVeeVertex.cxx.

34 {
35 this->ContainedObject::operator=(vtx);
36 m_w = vtx.m_w;
37 m_Ew = vtx.m_Ew;
38 m_pair = vtx.m_pair;
39 m_daughters = vtx.m_daughters;
40 m_vertexId = vtx.m_vertexId;
41 m_vertexType = vtx.m_vertexType;
42 m_chi2 = vtx.m_chi2;
43 m_ndof = vtx.m_ndof;
44 m_mass = vtx.m_mass;
45 m_nCharge = vtx.m_nCharge;
46 m_nTracks = vtx.m_nTracks;
47 return *this;
48}

◆ pair() [1/2]

const std::pair< int, int > & EvtRecVeeVertex::pair ( ) const
inline

Definition at line 42 of file EvtRecVeeVertex.h.

42{return m_pair;}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject(), and setPair().

◆ pair() [2/2]

int EvtRecVeeVertex::pair ( int i) const
inline

Definition at line 81 of file EvtRecVeeVertex.h.

81 {
82 if (i == 0) {
83 return m_pair.first;
84 }
85 assert(i == 1);
86 return m_pair.second;
87}

◆ pairDaughters()

std::pair< SmartRef< EvtRecTrack >, SmartRef< EvtRecTrack > > & EvtRecVeeVertex::pairDaughters ( )
inline

Definition at line 46 of file EvtRecVeeVertex.h.

46 {
47 return m_daughters;
48 }

◆ setChi2()

void EvtRecVeeVertex::setChi2 ( double chi2)
inline

◆ setDaughter()

void EvtRecVeeVertex::setDaughter ( const std::pair< SmartRef< EvtRecTrack >, SmartRef< EvtRecTrack > > & p)
inline

Definition at line 62 of file EvtRecVeeVertex.h.

62 {
63 m_daughters = p;
64 }

◆ setEw()

void EvtRecVeeVertex::setEw ( const HepSymMatrix & Ew)
inline

Definition at line 57 of file EvtRecVeeVertex.h.

57{m_Ew = Ew;}
const HepSymMatrix & Ew() const

Referenced by KShortReconstruction::execute(), LambdaReconstruction::execute(), and EvtRecVeeVertexCnv::TObjectToDataObject().

◆ setMass()

void EvtRecVeeVertex::setMass ( double mass)
inline

◆ setNCharge()

void EvtRecVeeVertex::setNCharge ( int nCharge)
inline

◆ setNdof()

void EvtRecVeeVertex::setNdof ( int ndof)
inline

◆ setNTracks()

void EvtRecVeeVertex::setNTracks ( int nTracks)
inline

◆ setPair()

void EvtRecVeeVertex::setPair ( const std::pair< int, int > & pair)
inline

Definition at line 58 of file EvtRecVeeVertex.h.

58{m_pair = pair;}
const std::pair< int, int > & pair() const

Referenced by KShortReconstruction::execute(), LambdaReconstruction::execute(), and EvtRecVeeVertexCnv::TObjectToDataObject().

◆ setVertexId()

void EvtRecVeeVertex::setVertexId ( int vtxId)
inline

◆ setVertexType()

void EvtRecVeeVertex::setVertexType ( int vtxType)
inline

Definition at line 52 of file EvtRecVeeVertex.h.

52{m_vertexType = vtxType;}

Referenced by KShortReconstruction::execute(), LambdaReconstruction::execute(), and EvtRecVeeVertexCnv::TObjectToDataObject().

◆ setW()

void EvtRecVeeVertex::setW ( const HepVector & w)
inline

◆ vertexId()

int EvtRecVeeVertex::vertexId ( ) const
inline

◆ vertexType()

int EvtRecVeeVertex::vertexType ( ) const
inline

Definition at line 36 of file EvtRecVeeVertex.h.

36{return m_vertexType;}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().

◆ w()

const HepVector & EvtRecVeeVertex::w ( ) const
inline

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