BOSS 7.0.5
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)
 
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 ()
 
static const CLID & classID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtRecVeeVertex() [1/4]

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() [1/2]

EvtRecVeeVertex::~EvtRecVeeVertex ( )
inline

◆ EvtRecVeeVertex() [2/4]

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}

◆ EvtRecVeeVertex() [3/4]

EvtRecVeeVertex::EvtRecVeeVertex ( )

◆ ~EvtRecVeeVertex() [2/2]

EvtRecVeeVertex::~EvtRecVeeVertex ( )
inline

◆ EvtRecVeeVertex() [4/4]

EvtRecVeeVertex::EvtRecVeeVertex ( const EvtRecVeeVertex )

Member Function Documentation

◆ addDaughter() [1/2]

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

Definition at line 97 of file Event/EvtRecEvent/EvtRecEvent-00-02-03/EvtRecEvent/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().

◆ addDaughter() [2/2]

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

◆ chi2() [1/2]

double EvtRecVeeVertex::chi2 ( ) const
inline

◆ chi2() [2/2]

double EvtRecVeeVertex::chi2 ( ) const
inline

Definition at line 37 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

37{return m_chi2;}

◆ classID() [1/2]

static const CLID & EvtRecVeeVertex::classID ( )
inlinestatic

Definition at line 27 of file Event/EvtRecEvent/EvtRecEvent-00-02-03/EvtRecEvent/EvtRecVeeVertex.h.

const CLID & CLID_EvtRecVeeVertex
Definition: EventModel.cxx:377

Referenced by clID().

◆ classID() [2/2]

static const CLID & EvtRecVeeVertex::classID ( )
inlinestatic

◆ clID() [1/2]

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

◆ clID() [2/2]

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

◆ daughter() [1/2]

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

◆ daughter() [2/2]

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

◆ Ew() [1/2]

const HepSymMatrix & EvtRecVeeVertex::Ew ( ) const
inline

◆ Ew() [2/2]

const HepSymMatrix & EvtRecVeeVertex::Ew ( ) const
inline

Definition at line 41 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

41{return m_Ew;}

◆ mass() [1/2]

◆ mass() [2/2]

double EvtRecVeeVertex::mass ( ) const
inline

Definition at line 39 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

39{return m_mass;}

◆ nCharge() [1/2]

int EvtRecVeeVertex::nCharge ( ) const
inline

◆ nCharge() [2/2]

int EvtRecVeeVertex::nCharge ( ) const
inline

Definition at line 44 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

44{return m_nCharge;}

◆ ndof() [1/2]

int EvtRecVeeVertex::ndof ( ) const
inline

◆ ndof() [2/2]

int EvtRecVeeVertex::ndof ( ) const
inline

Definition at line 38 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

38{return m_ndof;}

◆ nTracks() [1/2]

int EvtRecVeeVertex::nTracks ( ) const
inline

◆ nTracks() [2/2]

int EvtRecVeeVertex::nTracks ( ) const
inline

Definition at line 45 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

45{return m_nTracks;}

◆ operator=() [1/2]

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}

◆ operator=() [2/2]

EvtRecVeeVertex & EvtRecVeeVertex::operator= ( const EvtRecVeeVertex )

◆ pair() [1/4]

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

◆ pair() [2/4]

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

Definition at line 42 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

42{return m_pair;}

◆ pair() [3/4]

int EvtRecVeeVertex::pair ( int  i) const
inline

Definition at line 81 of file Event/EvtRecEvent/EvtRecEvent-00-02-03/EvtRecEvent/EvtRecVeeVertex.h.

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

◆ pair() [4/4]

int EvtRecVeeVertex::pair ( int  i) const
inline

◆ pairDaughters() [1/2]

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

Definition at line 46 of file Event/EvtRecEvent/EvtRecEvent-00-02-03/EvtRecEvent/EvtRecVeeVertex.h.

46 {
47 return m_daughters;
48 }

Referenced by LocalKsSelector::operator()(), and utility::SecondaryVFit().

◆ pairDaughters() [2/2]

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

Definition at line 46 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

46 {
47 return m_daughters;
48 }

◆ setChi2() [1/2]

◆ setChi2() [2/2]

void EvtRecVeeVertex::setChi2 ( double  chi2)
inline

Definition at line 53 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

53{m_chi2 = chi2;}

◆ setDaughter() [1/2]

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

Definition at line 62 of file Event/EvtRecEvent/EvtRecEvent-00-02-03/EvtRecEvent/EvtRecVeeVertex.h.

62 {
63 m_daughters = p;
64 }

◆ setDaughter() [2/2]

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

Definition at line 62 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

62 {
63 m_daughters = p;
64 }

◆ setEw() [1/2]

◆ setEw() [2/2]

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

Definition at line 57 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

57{m_Ew = Ew;}

◆ setMass() [1/2]

◆ setMass() [2/2]

void EvtRecVeeVertex::setMass ( double  mass)
inline

Definition at line 55 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

55{m_mass = mass;}

◆ setNCharge() [1/2]

◆ setNCharge() [2/2]

void EvtRecVeeVertex::setNCharge ( int  nCharge)
inline

Definition at line 59 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

59{m_nCharge = nCharge;}

◆ setNdof() [1/2]

◆ setNdof() [2/2]

void EvtRecVeeVertex::setNdof ( int  ndof)
inline

Definition at line 54 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

54{m_ndof = ndof;}

◆ setNTracks() [1/2]

◆ setNTracks() [2/2]

void EvtRecVeeVertex::setNTracks ( int  nTracks)
inline

Definition at line 60 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

60{m_nTracks = nTracks;}

◆ setPair() [1/2]

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

◆ setPair() [2/2]

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

Definition at line 58 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

58{m_pair = pair;}

◆ setVertexId() [1/2]

void EvtRecVeeVertex::setVertexId ( int  vtxId)
inline

◆ setVertexId() [2/2]

void EvtRecVeeVertex::setVertexId ( int  vtxId)
inline

Definition at line 51 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

51{m_vertexId = vtxId;}

◆ setVertexType() [1/2]

void EvtRecVeeVertex::setVertexType ( int  vtxType)
inline

◆ setVertexType() [2/2]

void EvtRecVeeVertex::setVertexType ( int  vtxType)
inline

Definition at line 52 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

52{m_vertexType = vtxType;}

◆ setW() [1/2]

◆ setW() [2/2]

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

Definition at line 56 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

56{m_w = w;}

◆ vertexId() [1/2]

◆ vertexId() [2/2]

int EvtRecVeeVertex::vertexId ( ) const
inline

Definition at line 35 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

35{return m_vertexId;}

◆ vertexType() [1/2]

int EvtRecVeeVertex::vertexType ( ) const
inline

◆ vertexType() [2/2]

int EvtRecVeeVertex::vertexType ( ) const
inline

Definition at line 36 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

36{return m_vertexType;}

◆ w() [1/2]

const HepVector & EvtRecVeeVertex::w ( ) const
inline

◆ w() [2/2]

const HepVector & EvtRecVeeVertex::w ( ) const
inline

Definition at line 40 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecVeeVertex.h.

40{return m_w;}

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