Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtParticleDecay.hh
Show All 21 Lines | |||||
#define EVTPARTICLEDECAY_HH | #define EVTPARTICLEDECAY_HH | ||||
#include "EvtGenBase/EvtDecayBase.hh" | #include "EvtGenBase/EvtDecayBase.hh" | ||||
class EvtParticleDecay { | class EvtParticleDecay { | ||||
public: | public: | ||||
EvtParticleDecay() | EvtParticleDecay() | ||||
{ | { | ||||
_decay = 0; | _decay = nullptr; | ||||
_brfrsum = 0.0; | _brfrsum = 0.0; | ||||
_massmin = 0.0; | _massmin = 0.0; | ||||
} | } | ||||
~EvtParticleDecay() | ~EvtParticleDecay() | ||||
{ | { | ||||
if ( _decay != 0 ) | if ( _decay != nullptr ) | ||||
delete _decay; | delete _decay; | ||||
} | } | ||||
void chargeConj( EvtParticleDecay* decay ); | void chargeConj( EvtParticleDecay* decay ); | ||||
void setDecayModel( EvtDecayBase* decay ) { _decay = decay; } | void setDecayModel( EvtDecayBase* decay ) { _decay = decay; } | ||||
EvtDecayBase* getDecayModel() { return _decay; } | EvtDecayBase* getDecayModel() { return _decay; } | ||||
double getBrfrSum() { return _brfrsum; } | double getBrfrSum() { return _brfrsum; } | ||||
Show All 14 Lines |