CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
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
22class BField;
23class TrkIdManager;
24class TrkId;
25
26// Class interface //
28
29public:
30 TrkContext(const BField*);
31 TrkContext(const TrkContext &);
32 virtual ~TrkContext();
34
35 const BField* bField() const {return _bf;}
36 virtual TrkId getId() const = 0;
37
38 void setBField(const BField* bf);
39 bool operator==(const TrkContext&) const;
40
41protected:
42
43private:
44 const BField* _bf;
45};
46
47#endif
48
49
50
51
52
53
54
bool operator==(const TrkContext &) const
virtual ~TrkContext()
const BField * bField() const
Definition TrkContext.h:35
virtual TrkId getId() const =0
void setBField(const BField *bf)
TrkContext & operator=(const TrkContext &)
TrkContext(const BField *)
Definition TrkId.h:21