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

#include <EvtRecTrack.h>

+ Inheritance diagram for EvtRecTrack:

Public Member Functions

virtual const CLID & clID () const
 
 EvtRecTrack ()
 
 ~EvtRecTrack ()
 
 EvtRecTrack (const EvtRecTrack &)
 
int trackId () const
 
int partId () const
 
int quality () const
 
bool isElectron () const
 
bool isMuon () const
 
bool isPion () const
 
bool isKaon () const
 
bool isProton () const
 
bool isMdcTrackValid ()
 
bool isMdcKalTrackValid ()
 
bool isMdcDedxValid ()
 
bool isCgemTrackValid ()
 
bool isCgemSegmentValid ()
 
bool isCgemKalTrackValid ()
 
bool isCgemDedxValid ()
 
bool isTofTrackValid ()
 
bool isEmcShowerValid ()
 
bool isMucTrackValid ()
 
bool isExtTrackValid ()
 
RecMdcTrackmdcTrack ()
 
RecMdcKalTrackmdcKalTrack ()
 
RecMdcDedxmdcDedx ()
 
RecCgemTrackcgemTrack ()
 
RecCgemSegmentcgemSegment ()
 
RecCgemKalTrackcgemKalTrack ()
 
RecCgemDedxcgemDedx ()
 
RecExtTrackextTrack ()
 
SmartRefVector< RecTofTracktofTrack ()
 
RecEmcShoweremcShower ()
 
RecMucTrackmucTrack ()
 
void setTrackId (const int trkId)
 
void setPartId (const int partId)
 
void setQuality (const int quality)
 
void tagElectron ()
 
void tagMuon ()
 
void tagPion ()
 
void tagKaon ()
 
void tagProton ()
 
void setMdcTrack (const RecMdcTrack *trk)
 
void setMdcKalTrack (const RecMdcKalTrack *trk)
 
void setMdcDedx (const RecMdcDedx *trk)
 
void setCgemTrack (const RecCgemTrack *trk)
 
void setCgemSegment (const RecCgemSegment *trk)
 
void setCgemKalTrack (const RecCgemKalTrack *trk)
 
void setCgemDedx (const RecCgemDedx *trk)
 
void setExtTrack (const RecExtTrack *trk)
 
void setTofTrack (const SmartRefVector< RecTofTrack > trk)
 
void addTofTrack (const SmartRef< RecTofTrack > trk)
 
void setEmcShower (const RecEmcShower *shower)
 
void setMucTrack (const RecMucTrack *trk)
 
EvtRecTrackoperator= (const EvtRecTrack &)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 25 of file EvtRecTrack.h.

Constructor & Destructor Documentation

◆ EvtRecTrack() [1/2]

EvtRecTrack::EvtRecTrack ( )

Definition at line 3 of file EvtRecTrack.cxx.

3 :
4 m_trackId(-1),
5 m_partId(-1),
6 m_quality(-1)
7{
8 m_originMdcTrack = 0;
9 m_originMdcKalTrack = 0;
10 m_originMdcDedx = 0;
11 m_originCgemTrack = 0;
12 m_originCgemSegment = 0;
13 m_originCgemKalTrack = 0;
14 m_originCgemDedx = 0;
15 m_originTofTrack.clear();
16 m_originEmcShower = 0;
17 m_originMucTrack = 0;
18 m_originExtTrack = 0;
19}

◆ ~EvtRecTrack()

EvtRecTrack::~EvtRecTrack ( )
inline

Definition at line 31 of file EvtRecTrack.h.

31{;}

◆ EvtRecTrack() [2/2]

EvtRecTrack::EvtRecTrack ( const EvtRecTrack & trk)

Definition at line 21 of file EvtRecTrack.cxx.

21 : ContainedObject(trk),
22 m_trackId(trk.m_trackId),
23 m_partId(trk.m_partId),
24 m_quality(trk.m_quality),
25 m_originMdcTrack(trk.m_originMdcTrack),
26 m_originMdcKalTrack(trk.m_originMdcKalTrack),
27 m_originMdcDedx(trk.m_originMdcDedx),
28 m_originCgemTrack(trk.m_originCgemTrack),
29 m_originCgemSegment(trk.m_originCgemSegment),
30 m_originCgemKalTrack(trk.m_originCgemKalTrack),
31 m_originCgemDedx(trk.m_originCgemDedx),
32 m_originTofTrack(trk.m_originTofTrack),
33 m_originEmcShower(trk.m_originEmcShower),
34 m_originMucTrack(trk.m_originMucTrack),
35 m_originExtTrack(trk.m_originExtTrack)
36{
37}

Member Function Documentation

◆ addTofTrack()

void EvtRecTrack::addTofTrack ( const SmartRef< RecTofTrack > trk)
inline

Definition at line 97 of file EvtRecTrack.h.

97{m_originTofTrack.push_back(trk);}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ cgemDedx()

RecCgemDedx * EvtRecTrack::cgemDedx ( )
inline

Definition at line 67 of file EvtRecTrack.h.

67{return m_originCgemDedx;}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ cgemKalTrack()

RecCgemKalTrack * EvtRecTrack::cgemKalTrack ( )
inline

Definition at line 66 of file EvtRecTrack.h.

66{return m_originCgemKalTrack;}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ cgemSegment()

RecCgemSegment * EvtRecTrack::cgemSegment ( )
inline

Definition at line 65 of file EvtRecTrack.h.

65{return m_originCgemSegment;}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ cgemTrack()

RecCgemTrack * EvtRecTrack::cgemTrack ( )
inline

Definition at line 64 of file EvtRecTrack.h.

64{return m_originCgemTrack;}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ classID()

static const CLID & EvtRecTrack::classID ( )
inlinestatic

Definition at line 28 of file EvtRecTrack.h.

28{ return CLID_EvtRecTrack;}
const CLID & CLID_EvtRecTrack

Referenced by clID().

◆ clID()

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

Definition at line 27 of file EvtRecTrack.h.

27{return EvtRecTrack::classID();}
static const CLID & classID()
Definition EvtRecTrack.h:28

◆ emcShower()

◆ extTrack()

◆ isCgemDedxValid()

bool EvtRecTrack::isCgemDedxValid ( )
inline

Definition at line 53 of file EvtRecTrack.h.

53{return (m_originCgemDedx != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ isCgemKalTrackValid()

bool EvtRecTrack::isCgemKalTrackValid ( )
inline

Definition at line 52 of file EvtRecTrack.h.

52{return (m_originCgemKalTrack != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ isCgemSegmentValid()

bool EvtRecTrack::isCgemSegmentValid ( )
inline

Definition at line 51 of file EvtRecTrack.h.

51{return (m_originCgemSegment != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ isCgemTrackValid()

bool EvtRecTrack::isCgemTrackValid ( )
inline

Definition at line 50 of file EvtRecTrack.h.

50{return (m_originCgemTrack != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ isElectron()

bool EvtRecTrack::isElectron ( ) const
inline

Definition at line 40 of file EvtRecTrack.h.

40{ return (m_partId & 0x01); }

◆ isEmcShowerValid()

bool EvtRecTrack::isEmcShowerValid ( )
inline

◆ isExtTrackValid()

◆ isKaon()

bool EvtRecTrack::isKaon ( ) const
inline

Definition at line 43 of file EvtRecTrack.h.

43{ return (m_partId & 0x08); }

◆ isMdcDedxValid()

bool EvtRecTrack::isMdcDedxValid ( )
inline

Definition at line 49 of file EvtRecTrack.h.

49{return (m_originMdcDedx != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject(), DTagTool::isMuon(), and DedxPID::particleIDCalculation().

◆ isMdcKalTrackValid()

◆ isMdcTrackValid()

◆ isMucTrackValid()

bool EvtRecTrack::isMucTrackValid ( )
inline

Definition at line 56 of file EvtRecTrack.h.

56{return (m_originMucTrack != 0);}

Referenced by EvtRecTrackCnv::DataObjectToTObject(), DTagTool::isMuon(), and MucPID::particleIDCalculation().

◆ isMuon()

bool EvtRecTrack::isMuon ( ) const
inline

Definition at line 41 of file EvtRecTrack.h.

41{ return (m_partId & 0x02); }

◆ isPion()

bool EvtRecTrack::isPion ( ) const
inline

Definition at line 42 of file EvtRecTrack.h.

42{ return (m_partId & 0x04); }

◆ isProton()

bool EvtRecTrack::isProton ( ) const
inline

Definition at line 44 of file EvtRecTrack.h.

44{ return (m_partId & 0x10); }

◆ isTofTrackValid()

◆ mdcDedx()

RecMdcDedx * EvtRecTrack::mdcDedx ( )
inline

Definition at line 63 of file EvtRecTrack.h.

63{return m_originMdcDedx;}

Referenced by EvtRecTrackCnv::DataObjectToTObject(), DTagTool::isMuon(), and DedxPID::particleIDCalculation().

◆ mdcKalTrack()

◆ mdcTrack()

◆ mucTrack()

RecMucTrack * EvtRecTrack::mucTrack ( )
inline

Definition at line 71 of file EvtRecTrack.h.

71{return m_originMucTrack;}

Referenced by EvtRecTrackCnv::DataObjectToTObject(), DTagTool::isMuon(), and MucPID::particleIDCalculation().

◆ operator=()

EvtRecTrack & EvtRecTrack::operator= ( const EvtRecTrack & trk)

Definition at line 39 of file EvtRecTrack.cxx.

39 {
40 m_trackId = trk.m_trackId;
41 m_partId = trk.m_partId;
42 m_quality = trk.m_quality;
43 m_originMdcTrack = trk.m_originMdcTrack;
44 m_originMdcKalTrack = trk.m_originMdcKalTrack;
45 m_originMdcDedx = trk.m_originMdcDedx;
46 m_originCgemTrack = trk.m_originCgemTrack;
47 m_originCgemSegment = trk.m_originCgemSegment;
48 m_originCgemKalTrack = trk.m_originCgemKalTrack;
49 m_originCgemDedx = trk.m_originCgemDedx;
50 m_originTofTrack = trk.m_originTofTrack;
51 m_originEmcShower = trk.m_originEmcShower;
52 m_originMucTrack = trk.m_originMucTrack;
53 m_originExtTrack = trk.m_originExtTrack;
54 return *this;
55}

◆ partId()

int EvtRecTrack::partId ( ) const
inline

Definition at line 37 of file EvtRecTrack.h.

37{return m_partId;}

Referenced by EvtRecTrackCnv::DataObjectToTObject(), and setPartId().

◆ quality()

int EvtRecTrack::quality ( ) const
inline

Definition at line 38 of file EvtRecTrack.h.

38{ return m_quality; }

Referenced by EvtRecTrackCnv::DataObjectToTObject(), and setQuality().

◆ setCgemDedx()

void EvtRecTrack::setCgemDedx ( const RecCgemDedx * trk)
inline

Definition at line 94 of file EvtRecTrack.h.

94{m_originCgemDedx = trk;}

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setCgemKalTrack()

void EvtRecTrack::setCgemKalTrack ( const RecCgemKalTrack * trk)
inline

Definition at line 93 of file EvtRecTrack.h.

93{m_originCgemKalTrack = trk;}

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setCgemSegment()

void EvtRecTrack::setCgemSegment ( const RecCgemSegment * trk)
inline

Definition at line 92 of file EvtRecTrack.h.

92{m_originCgemSegment = trk;}

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setCgemTrack()

void EvtRecTrack::setCgemTrack ( const RecCgemTrack * trk)
inline

Definition at line 91 of file EvtRecTrack.h.

91{m_originCgemTrack = trk;}

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setEmcShower()

void EvtRecTrack::setEmcShower ( const RecEmcShower * shower)
inline

Definition at line 98 of file EvtRecTrack.h.

98{m_originEmcShower = shower;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setExtTrack()

void EvtRecTrack::setExtTrack ( const RecExtTrack * trk)
inline

Definition at line 95 of file EvtRecTrack.h.

95{m_originExtTrack = trk;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setMdcDedx()

void EvtRecTrack::setMdcDedx ( const RecMdcDedx * trk)
inline

Definition at line 90 of file EvtRecTrack.h.

90{m_originMdcDedx = trk;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setMdcKalTrack()

void EvtRecTrack::setMdcKalTrack ( const RecMdcKalTrack * trk)
inline

Definition at line 89 of file EvtRecTrack.h.

89{m_originMdcKalTrack = trk;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setMdcTrack()

void EvtRecTrack::setMdcTrack ( const RecMdcTrack * trk)
inline

Definition at line 88 of file EvtRecTrack.h.

88{m_originMdcTrack = trk;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setMucTrack()

void EvtRecTrack::setMucTrack ( const RecMucTrack * trk)
inline

Definition at line 99 of file EvtRecTrack.h.

99{m_originMucTrack = trk;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ setPartId()

void EvtRecTrack::setPartId ( const int partId)
inline

Definition at line 77 of file EvtRecTrack.h.

77{m_partId = partId;}
int partId() const
Definition EvtRecTrack.h:37

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setQuality()

void EvtRecTrack::setQuality ( const int quality)
inline

Definition at line 78 of file EvtRecTrack.h.

78{ m_quality = quality; }
int quality() const
Definition EvtRecTrack.h:38

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setTofTrack()

void EvtRecTrack::setTofTrack ( const SmartRefVector< RecTofTrack > trk)
inline

Definition at line 96 of file EvtRecTrack.h.

96{m_originTofTrack = trk;}

◆ setTrackId()

void EvtRecTrack::setTrackId ( const int trkId)
inline

Definition at line 76 of file EvtRecTrack.h.

76{m_trackId = trkId;}

Referenced by EventAssemblyAlg::execute(), and EvtRecTrackCnv::TObjectToDataObject().

◆ tagElectron()

void EvtRecTrack::tagElectron ( )
inline

Definition at line 80 of file EvtRecTrack.h.

80{ m_partId |= 0x01; }

◆ tagKaon()

void EvtRecTrack::tagKaon ( )
inline

Definition at line 83 of file EvtRecTrack.h.

83{ m_partId |= 0x08; }

◆ tagMuon()

void EvtRecTrack::tagMuon ( )
inline

Definition at line 81 of file EvtRecTrack.h.

81{ m_partId |= 0x02; }

◆ tagPion()

void EvtRecTrack::tagPion ( )
inline

Definition at line 82 of file EvtRecTrack.h.

82{ m_partId |= 0x04; }

◆ tagProton()

void EvtRecTrack::tagProton ( )
inline

Definition at line 84 of file EvtRecTrack.h.

84{ m_partId |= 0x10; }

◆ tofTrack()

◆ trackId()


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