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

#include <EvtSymTable.hh>

Public Member Functions

 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)
 

Detailed Description

Definition at line 28 of file EvtSymTable.hh.

Constructor & Destructor Documentation

◆ EvtSymTable()

EvtSymTable::EvtSymTable ( )

Definition at line 37 of file EvtSymTable.cc.

37 {
38
39}

◆ ~EvtSymTable()

EvtSymTable::~EvtSymTable ( )

Definition at line 35 of file EvtSymTable.cc.

35{}

Member Function Documentation

◆ Define()

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

Definition at line 41 of file 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)
Definition: EvtReport.cc:36
@ INFO
Definition: EvtReport.hh:52

Referenced by EvtDecayTable::readDecayFile().

◆ Get()

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

Definition at line 55 of file 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().


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