BOSS
7.0.7
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
22
class
BField
;
23
class
TrkIdManager
;
24
class
TrkId
;
25
26
// Class interface //
27
class
TrkContext
{
28
29
public
:
30
TrkContext
(
const
BField
*);
31
TrkContext
(
const
TrkContext
&);
32
virtual
~TrkContext
();
33
TrkContext
&
operator=
(
const
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
41
protected
:
42
43
private
:
44
const
BField
* _bf;
45
};
46
47
#endif
48
49
50
51
52
53
54
BField
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/BField/BField.h:33
TrkContext
Definition:
TrkContext.h:27
TrkContext::operator==
bool operator==(const TrkContext &) const
Definition:
TrkContext.cxx:52
TrkContext::~TrkContext
virtual ~TrkContext()
Definition:
TrkContext.cxx:39
TrkContext::bField
const BField * bField() const
Definition:
TrkContext.h:35
TrkContext::getId
virtual TrkId getId() const =0
TrkContext::setBField
void setBField(const BField *bf)
Definition:
TrkContext.cxx:45
TrkContext::operator=
TrkContext & operator=(const TrkContext &)
Definition:
TrkContext.cxx:31
TrkIdManager
Definition:
TrkIdManager.h:18
TrkId
Definition:
TrkId.h:21
source
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
TrkBase
TrkContext.h
Generated by
1.9.6