BOSS 7.0.2
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//------------------------------------------------------------------------
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//------------------------------------------------------------------------
61//------------------------------------------------------------------------
62 delete _idman;
63}
64
65
66//------------------------------------------------------------------------
69//------------------------------------------------------------------------
70 return TrkId(idManager());
71}
72
virtual TrkId getId() const
virtual ~TrkContextEv()
TrkContextEv(const BField *)