Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtDecayProb.hh
Show All 27 Lines | |||||
class EvtDecayProb : public EvtDecayBase { | class EvtDecayProb : public EvtDecayBase { | ||||
public: | public: | ||||
void makeDecay( EvtParticle* p, bool recursive = true ) override; | void makeDecay( EvtParticle* p, bool recursive = true ) override; | ||||
void setProb( double prob ) { _prob = prob; } | void setProb( double prob ) { _prob = prob; } | ||||
double getProb() { return _prob; } | double getProb() { return _prob; } | ||||
inline void setWeight( double weight ) { _weight = weight; } | inline void setWeight( double weight ) { _weight = weight; } | ||||
virtual ~EvtDecayProb() {} | |||||
private: | private: | ||||
double _prob; | double _prob {1.0}; | ||||
double _weight; | double _weight {1.0}; | ||||
}; | }; | ||||
#endif | #endif |