BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHitUse Class Referenceabstract

#include <TrkHitUse.h>

+ Inheritance diagram for TrkHitUse:

Public Member Functions

 TrkHitUse (const TrkFundHit &, double fltLen, bool active=true, int usable=1)
 
virtual ~TrkHitUse ()
 
bool isActive () const
 
int isUsable () const
 
double fltLen () const
 
const TrkFundHithit () const
 
virtual const MdcHitmdcHit () const
 
virtual TrkHitOnTrkcreateHitOnTrk (const TrkRep &) const =0
 
void setFltLen (double flt)
 
virtual bool operator== (const TrkHitUse &) const =0
 

Detailed Description

Definition at line 25 of file TrkHitUse.h.

Constructor & Destructor Documentation

◆ TrkHitUse()

TrkHitUse::TrkHitUse ( const TrkFundHit theHit,
double  fltLen,
bool  active = true,
int  usable = 1 
)

Definition at line 18 of file TrkHitUse.cxx.

19 : _hit(theHit) {
20//------------------------------------------------------------------------
21 _fltLen = flt;
22 _isActive = active;
23 _isUsable = usable;
24}

◆ ~TrkHitUse()

TrkHitUse::~TrkHitUse ( )
virtual

Definition at line 27 of file TrkHitUse.cxx.

27 {
28//------------------------------------------------------------------------
29}

Member Function Documentation

◆ createHitOnTrk()

virtual TrkHitOnTrk * TrkHitUse::createHitOnTrk ( const TrkRep ) const
pure virtual

Implemented in MdcHitUse.

Referenced by TrkHitList::appendHit().

◆ fltLen()

double TrkHitUse::fltLen ( ) const
inline

Definition at line 34 of file TrkHitUse.h.

34{return _fltLen;}

◆ hit()

const TrkFundHit & TrkHitUse::hit ( ) const
inline

Definition at line 35 of file TrkHitUse.h.

35{return _hit;}

Referenced by TrkHitList::appendHit(), MdcHitUse::mdcHit(), and operator==().

◆ isActive()

bool TrkHitUse::isActive ( ) const
inline

Definition at line 32 of file TrkHitUse.h.

32{return _isActive;}

◆ isUsable()

int TrkHitUse::isUsable ( ) const
inline

Definition at line 33 of file TrkHitUse.h.

33{return _isUsable;}

◆ mdcHit()

const MdcHit * TrkHitUse::mdcHit ( ) const
virtual

Reimplemented in MdcHitUse.

Definition at line 33 of file TrkHitUse.cxx.

33 {
34//------------------------------------------------------------------------
35 return 0;
36}

Referenced by MdcHitUse::operator==().

◆ operator==()

bool TrkHitUse::operator== ( const TrkHitUse rhs) const
pure virtual

Implemented in MdcHitUse.

Definition at line 47 of file TrkHitUse.cxx.

47 {
48//------------------------------------------------------------------------
49 return ( &(hit()) == &(rhs.hit()) );
50}
const TrkFundHit & hit() const
Definition: TrkHitUse.h:35

Referenced by MdcHitUse::operator==().

◆ setFltLen()

void TrkHitUse::setFltLen ( double  flt)
inline

Definition at line 40 of file TrkHitUse.h.

40{_fltLen = flt;}

Referenced by MdcSegGrouper::transferHits().


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