BOSS 8.0.0
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 "TrkBase/TrkId.h"
21#include "TrkFitter/TrkIdManDefault.h"
22#include "TrkFitter/TrkIdManDumb.h"
23// #include "ErrLogger/ErrLog.h"
24// #include "TrkEnv/TrkEnv.h"
25// #include "AbsEnv/AbsEnv.h"
26#include "PatBField/BField.h"
27
29
30//------------------------------------------------------------------------
32 : TrkContext( bf )
33//------------------------------------------------------------------------
34{
35 TrkIdManager* manTmp;
36 // if (anEvent == 0) {
37 // manTmp = TrkIdManDumb::instance();//yzhang temp
38 /* }
39 else {
40 // Default Id manager
41 TrkIdManager* manDef =
42 Ifd< TrkIdManager >::get( anEvent, IfdStrKey("Default") );
43 if (0 == manDef) {
44 manDef = new TrkIdManDefault(1);
45 IfdDataProxy<TrkIdManager>* theProxy =
46 new IfdDataProxy<TrkIdManager>(manDef);
47 if (!(Ifd<TrkIdManager>::put(anEvent,theProxy,IfdStrKey("Default")))){
48 ErrMsg(error) << "TrkContextEv: Oops - couldn't put TrkIdManager"
49 << endmsg;
50 }
51 }
52 manTmp = manDef;
53 }*/
54 // yzhang
55 TrkIdManDefault* manDef = new TrkIdManDefault( 0 );
56 manTmp = dynamic_cast<TrkIdManager*>( manDef );
57 // zhangy
58 _idman = manTmp;
59}
60
61//------------------------------------------------------------------------
63 //------------------------------------------------------------------------
64 delete _idman;
65}
66
67//------------------------------------------------------------------------
69 //------------------------------------------------------------------------
70 return TrkId( idManager() );
71}
virtual TrkId getId() const
virtual ~TrkContextEv()
TrkContextEv(const MdcPatRec::BField *)
TrkContext(const MdcPatRec::BField *)