BOSS
7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkExtInterface.h
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: TrkExtInterface.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4
//
5
// Description:
6
// Abstract base class; derived classes enable TrkRecoTrk to give
7
// users access to representation-specific functions without having
8
// the functions in the RecoTrk interface. Users create an object of
9
// of one of the derived TrkExtInterface classes and pass it to
10
// TrkRecoTrk::attach(), which will either accept it or reject it,
11
// depending on whether the TrkRep inside recognizes it. Recognition
12
// is implemented by a simple equality test on the Rep's key.
13
//
14
// Environment:
15
// Software developed for the BaBar Detector at the SLAC B-Factory.
16
//
17
// Author(s): Steve Schaffner
18
//
19
//------------------------------------------------------------------------
20
21
#ifndef TRKEXTINTERFACE_HH
22
#define TRKEXTINTERFACE_HH
23
24
class
TrkRep
;
25
class
IfdKey
;
26
27
// Class interface //
28
class
TrkExtInterface
{
29
30
public
:
31
TrkExtInterface
();
32
virtual
~TrkExtInterface
();
33
virtual
bool
attach
(
TrkRep
*);
34
virtual
bool
attach
(
const
TrkRep
*);
35
bool
isAttached
()
const
{
return
_myRep != 0;}
36
bool
nonConstAttachment
()
const
{
return
_nonconst; }
37
protected
:
38
TrkRep
*
myRep
();
39
const
TrkRep
*
myConstRep
()
const
;
40
virtual
const
IfdKey
&
myKey
()
const
= 0;
41
void
setRep
(
const
TrkRep
*);
42
void
setRep
(
TrkRep
*);
43
private
:
44
TrkRep
* _myRep;
45
bool
_nonconst;
// keep track of whether we attached const or not
46
// Preempt
47
TrkExtInterface
& operator= (
const
TrkExtInterface
&);
48
TrkExtInterface
(
const
TrkExtInterface
&);
49
};
50
51
#endif
52
53
54
55
56
57
58
IfdKey
Definition:
IfdKey.h:48
TrkExtInterface
Definition:
TrkExtInterface.h:28
TrkExtInterface::myConstRep
const TrkRep * myConstRep() const
Definition:
TrkExtInterface.cxx:86
TrkExtInterface::isAttached
bool isAttached() const
Definition:
TrkExtInterface.h:35
TrkExtInterface::nonConstAttachment
bool nonConstAttachment() const
Definition:
TrkExtInterface.h:36
TrkExtInterface::~TrkExtInterface
virtual ~TrkExtInterface()
Definition:
TrkExtInterface.cxx:27
TrkExtInterface::attach
virtual bool attach(TrkRep *)
Definition:
TrkExtInterface.cxx:34
TrkExtInterface::TrkExtInterface
TrkExtInterface()
Definition:
TrkExtInterface.cxx:22
TrkExtInterface::setRep
void setRep(const TrkRep *)
Definition:
TrkExtInterface.cxx:57
TrkExtInterface::myRep
TrkRep * myRep()
Definition:
TrkExtInterface.cxx:70
TrkExtInterface::myKey
virtual const IfdKey & myKey() const =0
TrkRep
Definition:
TrkRep.h:43
source
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
TrkBase
TrkExtInterface.h
Generated by
1.9.6