BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkContextEv Class Reference

#include <TrkContextEv.h>

+ Inheritance diagram for TrkContextEv:

Public Member Functions

 TrkContextEv (const BField *)
 
virtual ~TrkContextEv ()
 
virtual TrkId getId () const
 
 TrkContextEv (const BField *)
 
virtual ~TrkContextEv ()
 
virtual TrkId getId () const
 
- Public Member Functions inherited from TrkContext
 TrkContext (const BField *)
 
 TrkContext (const TrkContext &)
 
virtual ~TrkContext ()
 
TrkContextoperator= (const TrkContext &)
 
const BFieldbField () const
 
virtual TrkId getId () const =0
 
void setBField (const BField *bf)
 
bool operator== (const TrkContext &) const
 
 TrkContext (const BField *)
 
 TrkContext (const TrkContext &)
 
virtual ~TrkContext ()
 
TrkContextoperator= (const TrkContext &)
 
const BFieldbField () const
 
virtual TrkId getId () const =0
 
void setBField (const BField *bf)
 
bool operator== (const TrkContext &) const
 

Detailed Description

Constructor & Destructor Documentation

◆ TrkContextEv() [1/2]

TrkContextEv::TrkContextEv ( const BField bf)

Definition at line 29 of file TrkContextEv.cxx.

29 :
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}

◆ ~TrkContextEv() [1/2]

TrkContextEv::~TrkContextEv ( )
virtual

Definition at line 60 of file TrkContextEv.cxx.

60 {
61//------------------------------------------------------------------------
62 delete _idman;
63}

◆ TrkContextEv() [2/2]

TrkContextEv::TrkContextEv ( const BField )

◆ ~TrkContextEv() [2/2]

virtual TrkContextEv::~TrkContextEv ( )
virtual

Member Function Documentation

◆ getId() [1/2]

TrkId TrkContextEv::getId ( ) const
virtual

Implements TrkContext.

Definition at line 68 of file TrkContextEv.cxx.

68 {
69//------------------------------------------------------------------------
70 return TrkId(idManager());
71}

◆ getId() [2/2]

virtual TrkId TrkContextEv::getId ( ) const
virtual

Implements TrkContext.


The documentation for this class was generated from the following files: