BOSS 7.0.6
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 &)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

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

◆ ~EvtRecTrack()

EvtRecTrack::~EvtRecTrack ( )
inline

Definition at line 27 of file EvtRecTrack.h.

27{;}

◆ EvtRecTrack() [2/2]

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}

Member Function Documentation

◆ addTofTrack()

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

Definition at line 81 of file EvtRecTrack.h.

81{m_originTofTrack.push_back(trk);}

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

◆ classID()

static const CLID & EvtRecTrack::classID ( )
inlinestatic

Definition at line 24 of file EvtRecTrack.h.

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

Referenced by clID().

◆ clID()

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

Definition at line 23 of file EvtRecTrack.h.

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

◆ emcShower()

◆ extTrack()

◆ isElectron()

bool EvtRecTrack::isElectron ( ) const
inline

Definition at line 36 of file EvtRecTrack.h.

36{ return (m_partId & 0x01); }

◆ isEmcShowerValid()

bool EvtRecTrack::isEmcShowerValid ( )
inline

◆ isExtTrackValid()

◆ isKaon()

bool EvtRecTrack::isKaon ( ) const
inline

Definition at line 39 of file EvtRecTrack.h.

39{ return (m_partId & 0x08); }

◆ isMdcDedxValid()

bool EvtRecTrack::isMdcDedxValid ( )
inline

Definition at line 45 of file EvtRecTrack.h.

45{return (m_originMdcDedx != 0);}

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

◆ isMdcKalTrackValid()

◆ isMdcTrackValid()

◆ isMucTrackValid()

bool EvtRecTrack::isMucTrackValid ( )
inline

Definition at line 48 of file EvtRecTrack.h.

48{return (m_originMucTrack != 0);}

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

◆ isMuon()

bool EvtRecTrack::isMuon ( ) const
inline

Definition at line 37 of file EvtRecTrack.h.

37{ return (m_partId & 0x02); }

◆ isPion()

bool EvtRecTrack::isPion ( ) const
inline

Definition at line 38 of file EvtRecTrack.h.

38{ return (m_partId & 0x04); }

◆ isProton()

bool EvtRecTrack::isProton ( ) const
inline

Definition at line 40 of file EvtRecTrack.h.

40{ return (m_partId & 0x10); }

◆ isTofTrackValid()

◆ mdcDedx()

RecMdcDedx * EvtRecTrack::mdcDedx ( )
inline

Definition at line 55 of file EvtRecTrack.h.

55{return m_originMdcDedx;}

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

◆ mdcKalTrack()

◆ mdcTrack()

◆ mucTrack()

RecMucTrack * EvtRecTrack::mucTrack ( )
inline

Definition at line 59 of file EvtRecTrack.h.

59{return m_originMucTrack;}

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

◆ operator=()

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}

◆ partId()

int EvtRecTrack::partId ( ) const
inline

Definition at line 33 of file EvtRecTrack.h.

33{return m_partId;}

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

◆ quality()

int EvtRecTrack::quality ( ) const
inline

Definition at line 34 of file EvtRecTrack.h.

34{ return m_quality; }

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

◆ setEmcShower()

void EvtRecTrack::setEmcShower ( const RecEmcShower shower)
inline

Definition at line 82 of file EvtRecTrack.h.

82{m_originEmcShower = shower;}

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

◆ setExtTrack()

void EvtRecTrack::setExtTrack ( const RecExtTrack trk)
inline

Definition at line 79 of file EvtRecTrack.h.

79{m_originExtTrack = trk;}

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

◆ setMdcDedx()

void EvtRecTrack::setMdcDedx ( const RecMdcDedx trk)
inline

Definition at line 78 of file EvtRecTrack.h.

78{m_originMdcDedx = trk;}

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

◆ setMdcKalTrack()

void EvtRecTrack::setMdcKalTrack ( const RecMdcKalTrack trk)
inline

Definition at line 77 of file EvtRecTrack.h.

77{m_originMdcKalTrack = trk;}

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

◆ setMdcTrack()

void EvtRecTrack::setMdcTrack ( const RecMdcTrack trk)
inline

Definition at line 76 of file EvtRecTrack.h.

76{m_originMdcTrack = trk;}

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

◆ setMucTrack()

void EvtRecTrack::setMucTrack ( const RecMucTrack trk)
inline

Definition at line 83 of file EvtRecTrack.h.

83{m_originMucTrack = trk;}

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

◆ setPartId()

void EvtRecTrack::setPartId ( const int  partId)
inline

Definition at line 65 of file EvtRecTrack.h.

65{m_partId = partId;}
int partId() const
Definition: EvtRecTrack.h:33

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setQuality()

void EvtRecTrack::setQuality ( const int  quality)
inline

Definition at line 66 of file EvtRecTrack.h.

66{ m_quality = quality; }
int quality() const
Definition: EvtRecTrack.h:34

Referenced by EvtRecTrackCnv::TObjectToDataObject().

◆ setTofTrack()

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

Definition at line 80 of file EvtRecTrack.h.

80{m_originTofTrack = trk;}

◆ setTrackId()

void EvtRecTrack::setTrackId ( const int  trkId)
inline

Definition at line 64 of file EvtRecTrack.h.

64{m_trackId = trkId;}

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

◆ tagElectron()

void EvtRecTrack::tagElectron ( )
inline

Definition at line 68 of file EvtRecTrack.h.

68{ m_partId |= 0x01; }

◆ tagKaon()

void EvtRecTrack::tagKaon ( )
inline

Definition at line 71 of file EvtRecTrack.h.

71{ m_partId |= 0x08; }

◆ tagMuon()

void EvtRecTrack::tagMuon ( )
inline

Definition at line 69 of file EvtRecTrack.h.

69{ m_partId |= 0x02; }

◆ tagPion()

void EvtRecTrack::tagPion ( )
inline

Definition at line 70 of file EvtRecTrack.h.

70{ m_partId |= 0x04; }

◆ tagProton()

void EvtRecTrack::tagProton ( )
inline

Definition at line 72 of file EvtRecTrack.h.

72{ m_partId |= 0x10; }

◆ tofTrack()

◆ trackId()


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