Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtDecayParm.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | void EvtDecayParm::init( fcnPtr pfcn, int ndaug, int* daugs, int narg, | ||||
for ( i = 0; i < itsnarg; i++ ) { | for ( i = 0; i < itsnarg; i++ ) { | ||||
itsargs[i] = args[i]; | itsargs[i] = args[i]; | ||||
} | } | ||||
modelname = name; | modelname = name; | ||||
} | } | ||||
EvtDecayParm::EvtDecayParm() | EvtDecayParm::EvtDecayParm() | ||||
{ | { | ||||
itsfcn = 0; | itsfcn = nullptr; | ||||
itsndaug = 0; | itsndaug = 0; | ||||
itsnarg = 0; | itsnarg = 0; | ||||
itsdaugs = 0; | itsdaugs = nullptr; | ||||
itsargs = 0; | itsargs = nullptr; | ||||
modelname = "**********"; | modelname = "**********"; | ||||
} | } | ||||
EvtDecayParm::~EvtDecayParm() | EvtDecayParm::~EvtDecayParm() | ||||
{ | { | ||||
if ( itsdaugs != 0 ) { | if ( itsdaugs != nullptr ) { | ||||
delete[] itsdaugs; | delete[] itsdaugs; | ||||
} | } | ||||
if ( itsargs != 0 ) { | if ( itsargs != nullptr ) { | ||||
delete[] itsargs; | delete[] itsargs; | ||||
} | } | ||||
} | } |