BOSS 7.0.4
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 isTofTrackValid ()
 
bool isEmcShowerValid ()
 
bool isMucTrackValid ()
 
bool isExtTrackValid ()
 
RecMdcTrackmdcTrack ()
 
RecMdcKalTrackmdcKalTrack ()
 
RecMdcDedxmdcDedx ()
 
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 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 &)
 
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 isTofTrackValid ()
 
bool isEmcShowerValid ()
 
bool isMucTrackValid ()
 
bool isExtTrackValid ()
 
RecMdcTrackmdcTrack ()
 
RecMdcKalTrackmdcKalTrack ()
 
RecMdcDedxmdcDedx ()
 
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 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 ()
 
static const CLID & classID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtRecTrack() [1/4]

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_originTofTrack.clear();
12 m_originEmcShower = 0;
13 m_originMucTrack = 0;
14 m_originExtTrack = 0;
15}

◆ ~EvtRecTrack() [1/2]

EvtRecTrack::~EvtRecTrack ( )
inline

◆ EvtRecTrack() [2/4]

EvtRecTrack::EvtRecTrack ( const EvtRecTrack trk)

Definition at line 17 of file EvtRecTrack.cxx.

17 : ContainedObject(trk),
18 m_trackId(trk.m_trackId),
19 m_partId(trk.m_partId),
20 m_quality(trk.m_quality),
21 m_originMdcTrack(trk.m_originMdcTrack),
22 m_originMdcKalTrack(trk.m_originMdcKalTrack),
23 m_originMdcDedx(trk.m_originMdcDedx),
24 m_originTofTrack(trk.m_originTofTrack),
25 m_originEmcShower(trk.m_originEmcShower),
26 m_originMucTrack(trk.m_originMucTrack),
27 m_originExtTrack(trk.m_originExtTrack)
28{
29}

◆ EvtRecTrack() [3/4]

EvtRecTrack::EvtRecTrack ( )

◆ ~EvtRecTrack() [2/2]

EvtRecTrack::~EvtRecTrack ( )
inline

◆ EvtRecTrack() [4/4]

EvtRecTrack::EvtRecTrack ( const EvtRecTrack )

Member Function Documentation

◆ addTofTrack() [1/2]

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

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

81{m_originTofTrack.push_back(trk);}

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

◆ addTofTrack() [2/2]

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

Definition at line 81 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

81{m_originTofTrack.push_back(trk);}

◆ classID() [1/2]

static const CLID & EvtRecTrack::classID ( )
inlinestatic

Definition at line 24 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

24{ return CLID_EvtRecTrack;}
const CLID & CLID_EvtRecTrack
Definition: EventModel.cxx:375

Referenced by clID().

◆ classID() [2/2]

static const CLID & EvtRecTrack::classID ( )
inlinestatic

◆ clID() [1/2]

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

◆ clID() [2/2]

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

◆ emcShower() [1/2]

◆ emcShower() [2/2]

RecEmcShower * EvtRecTrack::emcShower ( )
inline

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

58{return m_originEmcShower;}

◆ extTrack() [1/2]

◆ extTrack() [2/2]

RecExtTrack * EvtRecTrack::extTrack ( )
inline

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

56{return m_originExtTrack;}

◆ isElectron() [1/2]

bool EvtRecTrack::isElectron ( ) const
inline

Definition at line 36 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

36{ return (m_partId & 0x01); }

◆ isElectron() [2/2]

bool EvtRecTrack::isElectron ( ) const
inline

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

36{ return (m_partId & 0x01); }

◆ isEmcShowerValid() [1/2]

◆ isEmcShowerValid() [2/2]

bool EvtRecTrack::isEmcShowerValid ( )
inline

Definition at line 47 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

47{return (m_originEmcShower!= 0);}

◆ isExtTrackValid() [1/2]

◆ isExtTrackValid() [2/2]

bool EvtRecTrack::isExtTrackValid ( )
inline

Definition at line 49 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

49{return (m_originExtTrack != 0);}

◆ isKaon() [1/2]

bool EvtRecTrack::isKaon ( ) const
inline

Definition at line 39 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

39{ return (m_partId & 0x08); }

◆ isKaon() [2/2]

bool EvtRecTrack::isKaon ( ) const
inline

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

39{ return (m_partId & 0x08); }

◆ isMdcDedxValid() [1/2]

bool EvtRecTrack::isMdcDedxValid ( )
inline

◆ isMdcDedxValid() [2/2]

bool EvtRecTrack::isMdcDedxValid ( )
inline

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

45{return (m_originMdcDedx != 0);}

◆ isMdcKalTrackValid() [1/2]

◆ isMdcKalTrackValid() [2/2]

bool EvtRecTrack::isMdcKalTrackValid ( )
inline

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

44{return (m_originMdcKalTrack != 0);}

◆ isMdcTrackValid() [1/2]

◆ isMdcTrackValid() [2/2]

bool EvtRecTrack::isMdcTrackValid ( )
inline

Definition at line 43 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

43{return (m_originMdcTrack != 0);}

◆ isMucTrackValid() [1/2]

bool EvtRecTrack::isMucTrackValid ( )
inline

◆ isMucTrackValid() [2/2]

bool EvtRecTrack::isMucTrackValid ( )
inline

Definition at line 48 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

48{return (m_originMucTrack != 0);}

◆ isMuon() [1/2]

bool EvtRecTrack::isMuon ( ) const
inline

Definition at line 37 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

37{ return (m_partId & 0x02); }

◆ isMuon() [2/2]

bool EvtRecTrack::isMuon ( ) const
inline

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

37{ return (m_partId & 0x02); }

◆ isPion() [1/2]

bool EvtRecTrack::isPion ( ) const
inline

Definition at line 38 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

38{ return (m_partId & 0x04); }

◆ isPion() [2/2]

bool EvtRecTrack::isPion ( ) const
inline

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

38{ return (m_partId & 0x04); }

◆ isProton() [1/2]

bool EvtRecTrack::isProton ( ) const
inline

Definition at line 40 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

40{ return (m_partId & 0x10); }

◆ isProton() [2/2]

bool EvtRecTrack::isProton ( ) const
inline

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

40{ return (m_partId & 0x10); }

◆ isTofTrackValid() [1/2]

◆ isTofTrackValid() [2/2]

bool EvtRecTrack::isTofTrackValid ( )
inline

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

46{return (!m_originTofTrack.empty());}

◆ mdcDedx() [1/2]

RecMdcDedx * EvtRecTrack::mdcDedx ( )
inline

◆ mdcDedx() [2/2]

RecMdcDedx * EvtRecTrack::mdcDedx ( )
inline

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

55{return m_originMdcDedx;}

◆ mdcKalTrack() [1/2]

◆ mdcKalTrack() [2/2]

RecMdcKalTrack * EvtRecTrack::mdcKalTrack ( )
inline

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

54{return m_originMdcKalTrack;}

◆ mdcTrack() [1/2]

◆ mdcTrack() [2/2]

RecMdcTrack * EvtRecTrack::mdcTrack ( )
inline

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

53{return m_originMdcTrack;}

◆ mucTrack() [1/2]

RecMucTrack * EvtRecTrack::mucTrack ( )
inline

◆ mucTrack() [2/2]

RecMucTrack * EvtRecTrack::mucTrack ( )
inline

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

59{return m_originMucTrack;}

◆ operator=() [1/2]

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

Definition at line 31 of file EvtRecTrack.cxx.

31 {
32 m_trackId = trk.m_trackId;
33 m_partId = trk.m_partId;
34 m_quality = trk.m_quality;
35 m_originMdcTrack = trk.m_originMdcTrack;
36 m_originMdcKalTrack = trk.m_originMdcKalTrack;
37 m_originMdcDedx = trk.m_originMdcDedx;
38 m_originTofTrack = trk.m_originTofTrack;
39 m_originEmcShower = trk.m_originEmcShower;
40 m_originMucTrack = trk.m_originMucTrack;
41 m_originExtTrack = trk.m_originExtTrack;
42 return *this;
43}

◆ operator=() [2/2]

EvtRecTrack & EvtRecTrack::operator= ( const EvtRecTrack )

◆ partId() [1/2]

int EvtRecTrack::partId ( ) const
inline

◆ partId() [2/2]

int EvtRecTrack::partId ( ) const
inline

Definition at line 33 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

33{return m_partId;}

◆ quality() [1/2]

int EvtRecTrack::quality ( ) const
inline

Definition at line 34 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

34{ return m_quality; }

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

◆ quality() [2/2]

int EvtRecTrack::quality ( ) const
inline

Definition at line 34 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

34{ return m_quality; }

◆ setEmcShower() [1/2]

void EvtRecTrack::setEmcShower ( const RecEmcShower shower)
inline

◆ setEmcShower() [2/2]

void EvtRecTrack::setEmcShower ( const RecEmcShower shower)
inline

Definition at line 82 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

82{m_originEmcShower = shower;}

◆ setExtTrack() [1/2]

void EvtRecTrack::setExtTrack ( const RecExtTrack trk)
inline

◆ setExtTrack() [2/2]

void EvtRecTrack::setExtTrack ( const RecExtTrack trk)
inline

Definition at line 79 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

79{m_originExtTrack = trk;}

◆ setMdcDedx() [1/2]

void EvtRecTrack::setMdcDedx ( const RecMdcDedx trk)
inline

◆ setMdcDedx() [2/2]

void EvtRecTrack::setMdcDedx ( const RecMdcDedx trk)
inline

Definition at line 78 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

78{m_originMdcDedx = trk;}

◆ setMdcKalTrack() [1/2]

void EvtRecTrack::setMdcKalTrack ( const RecMdcKalTrack trk)
inline

◆ setMdcKalTrack() [2/2]

void EvtRecTrack::setMdcKalTrack ( const RecMdcKalTrack trk)
inline

Definition at line 77 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

77{m_originMdcKalTrack = trk;}

◆ setMdcTrack() [1/2]

void EvtRecTrack::setMdcTrack ( const RecMdcTrack trk)
inline

◆ setMdcTrack() [2/2]

void EvtRecTrack::setMdcTrack ( const RecMdcTrack trk)
inline

Definition at line 76 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

76{m_originMdcTrack = trk;}

◆ setMucTrack() [1/2]

void EvtRecTrack::setMucTrack ( const RecMucTrack trk)
inline

◆ setMucTrack() [2/2]

void EvtRecTrack::setMucTrack ( const RecMucTrack trk)
inline

Definition at line 83 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

83{m_originMucTrack = trk;}

◆ setPartId() [1/2]

void EvtRecTrack::setPartId ( const int  partId)
inline

◆ setPartId() [2/2]

void EvtRecTrack::setPartId ( const int  partId)
inline

Definition at line 65 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

65{m_partId = partId;}

◆ setQuality() [1/2]

void EvtRecTrack::setQuality ( const int  quality)
inline

◆ setQuality() [2/2]

void EvtRecTrack::setQuality ( const int  quality)
inline

Definition at line 66 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

66{ m_quality = quality; }

◆ setTofTrack() [1/2]

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

Definition at line 80 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

80{m_originTofTrack = trk;}

◆ setTofTrack() [2/2]

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

Definition at line 80 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

80{m_originTofTrack = trk;}

◆ setTrackId() [1/2]

void EvtRecTrack::setTrackId ( const int  trkId)
inline

◆ setTrackId() [2/2]

void EvtRecTrack::setTrackId ( const int  trkId)
inline

Definition at line 64 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

64{m_trackId = trkId;}

◆ tagElectron() [1/2]

void EvtRecTrack::tagElectron ( )
inline

Definition at line 68 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

68{ m_partId |= 0x01; }

◆ tagElectron() [2/2]

void EvtRecTrack::tagElectron ( )
inline

Definition at line 68 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

68{ m_partId |= 0x01; }

◆ tagKaon() [1/2]

void EvtRecTrack::tagKaon ( )
inline

Definition at line 71 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

71{ m_partId |= 0x08; }

◆ tagKaon() [2/2]

void EvtRecTrack::tagKaon ( )
inline

Definition at line 71 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

71{ m_partId |= 0x08; }

◆ tagMuon() [1/2]

void EvtRecTrack::tagMuon ( )
inline

Definition at line 69 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

69{ m_partId |= 0x02; }

◆ tagMuon() [2/2]

void EvtRecTrack::tagMuon ( )
inline

Definition at line 69 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

69{ m_partId |= 0x02; }

◆ tagPion() [1/2]

void EvtRecTrack::tagPion ( )
inline

Definition at line 70 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

70{ m_partId |= 0x04; }

◆ tagPion() [2/2]

void EvtRecTrack::tagPion ( )
inline

Definition at line 70 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

70{ m_partId |= 0x04; }

◆ tagProton() [1/2]

void EvtRecTrack::tagProton ( )
inline

Definition at line 72 of file Event/EvtRecEvent/EvtRecEvent-00-02-02/EvtRecEvent/EvtRecTrack.h.

72{ m_partId |= 0x10; }

◆ tagProton() [2/2]

void EvtRecTrack::tagProton ( )
inline

Definition at line 72 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

72{ m_partId |= 0x10; }

◆ tofTrack() [1/2]

◆ tofTrack() [2/2]

SmartRefVector< RecTofTrack > EvtRecTrack::tofTrack ( )
inline

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

57{return m_originTofTrack;}

◆ trackId() [1/2]

◆ trackId() [2/2]

int EvtRecTrack::trackId ( ) const
inline

Definition at line 32 of file InstallArea/include/EvtRecEvent/EvtRecEvent/EvtRecTrack.h.

32{return m_trackId;}

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