 |
Belle II Software
release-05-02-19
|
11 #include <analysis/utility/DecayNode.h>
23 if (to_find == (*
this))
26 if (node.find_decay(to_find))
34 std::stringstream output;
36 for (
unsigned int i = 0; i < indent; ++i) {
40 output << std::to_string(
pdg);
44 output << d.print_node(indent + 1);
52 if (node1.
pdg == node2.
pdg) {
56 for (
unsigned int i = 0; i < node1.
daughters.size(); ++i) {
69 return not(node1 == node2);
std::string print_node(unsigned int indent=0) const
Output a single node.
bool operator==(const DecayNode &node1, const DecayNode &node2)
Compare two Decay Nodes: They are equal if All daughter decay nodes are equal or one of the daughter ...
bool operator!=(const DecayNode &node1, const DecayNode &node2)
Not equal: See operator==.
Abstract base class for different kinds of events.
bool find_decay(const DecayNode &to_find) const
Check if the decay node contains the given decay tree.
DecayNode describes the decay of a particle identified by its pdg code, into list of daughters.
std::vector< DecayNode > daughters
daughter decay nodes
int pdg
pdg code of the particle