BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkContextEv.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: TrkContextEv.cxx,v 1.2 2006/12/01 01:10:32 zhangy Exp $
4
//
5
// Description:
6
//
7
//
8
// Environment:
9
// Software developed for the BaBar Detector at the SLAC B-Factory.
10
//
11
// Author(s): Steve Schaffner
12
//
13
//------------------------------------------------------------------------
14
15
//#include "BaBar/BaBar.h"
16
#include "
TrkFitter/TrkContextEv.h
"
17
//#include "AbsEnv/AbsEnv.h"
18
//#include "AbsEvent/AbsEvent.h"
19
//#include "ProxyDict/Ifd.h"
20
#include "
TrkFitter/TrkIdManDefault.h
"
21
#include "
TrkFitter/TrkIdManDumb.h
"
22
#include "
TrkBase/TrkId.h
"
23
//#include "ErrLogger/ErrLog.h"
24
//#include "TrkEnv/TrkEnv.h"
25
//#include "AbsEnv/AbsEnv.h"
26
#include "
BField/BField.h
"
27
28
//------------------------------------------------------------------------
29
TrkContextEv::TrkContextEv
(
const
BField
*bf) :
30
TrkContext
(bf)
31
//------------------------------------------------------------------------
32
{
33
TrkIdManager
* manTmp;
34
// if (anEvent == 0) {
35
// manTmp = TrkIdManDumb::instance();//yzhang temp
36
/* }
37
else {
38
// Default Id manager
39
TrkIdManager* manDef =
40
Ifd< TrkIdManager >::get( anEvent, IfdStrKey("Default") );
41
if (0 == manDef) {
42
manDef = new TrkIdManDefault(1);
43
IfdDataProxy<TrkIdManager>* theProxy =
44
new IfdDataProxy<TrkIdManager>(manDef);
45
if (!(Ifd<TrkIdManager>::put(anEvent,theProxy,IfdStrKey("Default")))){
46
ErrMsg(error) << "TrkContextEv: Oops - couldn't put TrkIdManager"
47
<< endmsg;
48
}
49
}
50
manTmp = manDef;
51
}*/
52
//yzhang
53
TrkIdManDefault
* manDef =
new
TrkIdManDefault
(0);
54
manTmp =
dynamic_cast<
TrkIdManager
*
>
(manDef);
55
//zhangy
56
_idman = manTmp;
57
}
58
59
//------------------------------------------------------------------------
60
TrkContextEv::~TrkContextEv
() {
61
//------------------------------------------------------------------------
62
delete
_idman;
63
}
64
65
66
//------------------------------------------------------------------------
67
TrkId
68
TrkContextEv::getId
()
const
{
69
//------------------------------------------------------------------------
70
return
TrkId
(idManager());
71
}
72
BField.h
TrkContextEv.h
TrkIdManDefault.h
TrkIdManDumb.h
TrkId.h
BField
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/BField/BField.h:33
TrkContextEv::getId
virtual TrkId getId() const
Definition:
TrkContextEv.cxx:68
TrkContextEv::~TrkContextEv
virtual ~TrkContextEv()
Definition:
TrkContextEv.cxx:60
TrkContextEv::TrkContextEv
TrkContextEv(const BField *)
Definition:
TrkContextEv.cxx:29
TrkContext
Definition:
TrkContext.h:27
TrkIdManDefault
Definition:
TrkIdManDefault.h:20
TrkIdManager
Definition:
TrkIdManager.h:18
TrkId
Definition:
TrkId.h:21
source
Reconstruction
MdcPatRec
TrkFitter
TrkFitter-00-01-11
src
TrkContextEv.cxx
Generated by
1.9.6