9 #include <analysis/utility/DecayForest.h>
20 unsigned int start = 0;
21 for (
unsigned int i = 0; i < full_decaystring.size(); ++i) {
22 if (full_decaystring[i] ==
'|') {
23 forest.emplace_back(full_decaystring.substr(start, i - start), removeRadiativeGammaFlag);
25 if (save_memory and
forest.back().isValid() and
forest.size() > 1)
30 if (not(save_memory and
forest.back().isValid() and
forest.size() > 1))
31 forest.emplace_back(full_decaystring.substr(start, full_decaystring.size() - start), removeRadiativeGammaFlag);
33 for (
unsigned int j = 1; j <
forest.size(); ++j) {
47 assert(
sizeof(
float) ==
sizeof(uint32_t));
57 bitconverter.f = decayHash;
58 integer =
static_cast<uint64_t
>(bitconverter.i) << 32;
62 bitconverter.f = decayHashExtended;
63 integer += bitconverter.i;
std::vector< DecayTree > forest
vector of DecayTrees
size_t m_first_valid_original
The first valid DecayTree.
static int decayHashFloatToInt(float decayHash, float decayHashExtended)
Convert DecayHashes outputted by ParticleMCDecayString module to an integer.
DecayForest(const std::string &full_decaystring, bool save_memory=true, bool removeRadiativeGammaFlag=false)
Create a DecayForest from a full decaystring outputted by ParticleMCDecayString.
Abstract base class for different kinds of events.