#include <BranchingRatios.h>
Public Member Functions | |
BranchingRatios () | |
double | getFactor (const Hadronisation *hadronisation, const boost::shared_ptr< LHEEvent > &event) const |
void | reset () |
void | set (int pdgId, bool both=true, double value=1.0) |
~BranchingRatios () | |
Private Member Functions | |
double | get (int pdgId, const Hadronisation *hadronisation) const |
Private Attributes | |
std::map< int, double > | cache |
Definition at line 13 of file BranchingRatios.h.
|
inline |
Definition at line 15 of file BranchingRatios.h.
|
inline |
Definition at line 16 of file BranchingRatios.h.
|
private |
Definition at line 38 of file BranchingRatios.cc.
References cache, and lhef::Hadronisation::totalBranchingRatio().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
double lhef::BranchingRatios::getFactor | ( | const Hadronisation * | hadronisation, |
const boost::shared_ptr< LHEEvent > & | event | ||
) | const |
Definition at line 25 of file BranchingRatios.cc.
References i, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, and lhef::HEPEUP::NUP.
Referenced by LHEProducer::filter().
void lhef::BranchingRatios::reset | ( | void | ) |
void lhef::BranchingRatios::set | ( | int | pdgId, |
bool | both = true , |
||
double | value = 1.0 |
||
) |
Definition at line 18 of file BranchingRatios.cc.
References cache, benchmark_cfg::pdgId, and relativeConstraints::value.
Referenced by betterConfigParser.BetterConfigParser::getGeneral(), and LHEProducer::LHEProducer().
|
mutableprivate |
Definition at line 27 of file BranchingRatios.h.