BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSymTable Class Reference

#include <EvtSymTable.hh>

Public Member Functions

 EvtSymTable ()
 
 ~EvtSymTable ()
 
 EvtSymTable ()
 
 ~EvtSymTable ()
 

Static Public Member Functions

static void Define (const std::string &name, std::string d)
 
static std::string Get (const std::string &name, int &ierr)
 
static void Define (const std::string &name, std::string d)
 
static std::string Get (const std::string &name, int &ierr)
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtSymTable() [1/2]

EvtSymTable::EvtSymTable ( )

Definition at line 37 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSymTable.cc.

37 {
38
39}

◆ ~EvtSymTable() [1/2]

EvtSymTable::~EvtSymTable ( )

◆ EvtSymTable() [2/2]

EvtSymTable::EvtSymTable ( )

◆ ~EvtSymTable() [2/2]

EvtSymTable::~EvtSymTable ( )

Member Function Documentation

◆ Define() [1/2]

void EvtSymTable::Define ( const std::string &  name,
std::string  d 
)
static

Definition at line 41 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSymTable.cc.

41 {
42
43 if ( _symMap.find(symname)!=_symMap.end() ) {
44 report(INFO,"EvtGen") << "Symbol:"<<symname.c_str()<<
45 " redefined, old value:"<<_symMap[symname].c_str()<<" new value:"<<d.c_str()<<endl;
46 _symMap[symname]=d;
47 return;
48 }
49
50 _symMap[symname]=d;
51 return;
52}
ostream & report(Severity severity, const char *facility)

Referenced by EvtDecayTable::readDecayFile().

◆ Define() [2/2]

static void EvtSymTable::Define ( const std::string &  name,
std::string  d 
)
static

◆ Get() [1/2]

std::string EvtSymTable::Get ( const std::string &  name,
int &  ierr 
)
static

Definition at line 55 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSymTable.cc.

55 {
56
57 ierr=0;
58
59 if ( _symMap.find(symname)!=_symMap.end() ) return _symMap[symname];
60
61 // If no matching symbol found just return the string
62
63 return symname;
64}

Referenced by EvtCPUtil::incoherentMix(), and EvtDecayTable::readDecayFile().

◆ Get() [2/2]

static std::string EvtSymTable::Get ( const std::string &  name,
int &  ierr 
)
static

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