BOSS 8.0.0
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 36 of file EvtSymTable.cc.

36{}

◆ ~EvtSymTable()

EvtSymTable::~EvtSymTable ( )

Definition at line 34 of file EvtSymTable.cc.

34{}

Member Function Documentation

◆ Define()

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

Definition at line 38 of file EvtSymTable.cc.

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

Referenced by EvtDecayTable::readDecayFile().

◆ Get()

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

Definition at line 54 of file EvtSymTable.cc.

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

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


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