BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkContext.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkContext.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Holds information about the "environment" in which a track is created --
7// BField, track id manager. One of these objects must be passed
8// to the track when it is created. The idea is to decouple the tracks
9// from the sources of this information. (See TrkFitter/TrkContextEv for
10// semi-automatic creation of an object of this class.)
11//
12// Environment:
13// Software developed for the BaBar Detector at the SLAC B-Factory.
14//
15// Author(s): Steve Schaffner
16//
17//------------------------------------------------------------------------
18
19#ifndef TRKCONTEXT_HH
20#define TRKCONTEXT_HH
21
22namespace MdcPatRec {
23 class BField;
24}
25class TrkIdManager;
26class TrkId;
27
28// Class interface //
29class TrkContext {
30
31public:
34 virtual ~TrkContext();
36
37 const MdcPatRec::BField* bField() const { return _bf; }
38 virtual TrkId getId() const = 0;
39
40 void setBField( const MdcPatRec::BField* bf );
41 bool operator==( const TrkContext& ) const;
42
43protected:
44private:
45 const MdcPatRec::BField* _bf;
46};
47
48#endif
bool operator==(const TrkContext &) const
virtual ~TrkContext()
virtual TrkId getId() const =0
TrkContext & operator=(const TrkContext &)
TrkContext(const MdcPatRec::BField *)
TrkContext(const TrkContext &)
void setBField(const MdcPatRec::BField *bf)