Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtDecayProb.hh
Show All 23 Lines | |||||
#include "EvtGenBase/EvtDecayBase.hh" | #include "EvtGenBase/EvtDecayBase.hh" | ||||
class EvtParticle; | class EvtParticle; | ||||
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 ) { m_prob = prob; } | ||||
double getProb() { return _prob; } | double getProb() { return m_prob; } | ||||
inline void setWeight( double weight ) { _weight = weight; } | inline void setWeight( double weight ) { m_weight = weight; } | ||||
private: | private: | ||||
double _prob {1.0}; | double m_prob{ 1.0 }; | ||||
double _weight {1.0}; | double m_weight{ 1.0 }; | ||||
}; | }; | ||||
#endif | #endif |