BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkHitUse.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkHitUse.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Carries information about how a hit is to be used on a track, and
7// is able to create the appropriate kind of HitOnTrk. Abstract base class.
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Author(s): Steve Schaffner
13//
14//------------------------------------------------------------------------
15#ifndef TRKHITUSE_HH
16#define TRKHITUSE_HH
17
18class TrkFundHit;
19class TrkHitOnTrk;
20class TrkRep;
21// class SvtHit;
22class MdcHit;
23
24// Class interface //
25class TrkHitUse {
26
27public:
28 TrkHitUse( const TrkFundHit&, double fltLen, bool active = true, int usable = 1 );
29 virtual ~TrkHitUse();
30
31 bool isActive() const { return _isActive; }
32 int isUsable() const { return _isUsable; }
33 double fltLen() const { return _fltLen; }
34 const TrkFundHit& hit() const { return _hit; }
35 virtual const MdcHit* mdcHit() const;
36 // virtual const SvtHit* svtHit() const;
37
38 virtual TrkHitOnTrk* createHitOnTrk( const TrkRep& ) const = 0;
39 void setFltLen( double flt ) { _fltLen = flt; }
40
41 // operator== tests on equality of contents: FundHit address and anything
42 // relevant in the derived classes (e.g. ambiguity for Mdc). It does
43 // not test flight length.
44 virtual bool operator==( const TrkHitUse& ) const = 0;
45
46private:
47 const TrkFundHit& _hit;
48 bool _isActive;
49 int _isUsable;
50 double _fltLen;
51
52 // Preempt
53 TrkHitUse& operator=( const TrkHitUse& );
54 TrkHitUse( const TrkHitUse& );
55};
56
57#endif
virtual ~TrkHitUse()
virtual const MdcHit * mdcHit() const
virtual bool operator==(const TrkHitUse &) const =0
TrkHitUse(const TrkFundHit &, double fltLen, bool active=true, int usable=1)
virtual TrkHitOnTrk * createHitOnTrk(const TrkRep &) const =0