Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtDecayTable.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
_decaytable.clear(); | _decaytable.clear(); | ||||
} | } | ||||
EvtDecayTable* EvtDecayTable::getInstance() | EvtDecayTable* EvtDecayTable::getInstance() | ||||
{ | { | ||||
static EvtDecayTable* theDecayTable = nullptr; | static EvtDecayTable* theDecayTable = nullptr; | ||||
if ( theDecayTable == nullptr ) { | if ( !theDecayTable ) { | ||||
theDecayTable = new EvtDecayTable(); | theDecayTable = new EvtDecayTable(); | ||||
} | } | ||||
return theDecayTable; | return theDecayTable; | ||||
} | } | ||||
int EvtDecayTable::getNMode( int ipar ) | int EvtDecayTable::getNMode( int ipar ) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,563 Lines • Show Last 20 Lines |