73 "Tadpole",
"Mass",
"Triangle",
"Box",
"Pentagon" 85 return static_cast<Type>(
87 | ((nLegs == 2) *
Mass)
89 | ((nLegs == 4) *
Box)
90 | ((nLegs == 5) * Pentagon)
103 if (t ==
Any) out <<
"Any";
104 else out << *(names.begin() +
static_cast<int>(t)/2);
Definition: topology.h:53
Definition: topology.h:52
Definition: topology.h:55
Definition: topology.h:51
std::ostream & operator<<(std::ostream &out, Type t)
Overload of output stream operator for a topology.
Definition: topology.h:102
constexpr auto names
Names for topologies.
Definition: topology.h:72
Type
Enumeration of the different possible topologies.
Definition: topology.h:50
Namespace containing topology utilities for Feynman diagram calculations.
Definition: topology.h:31
constexpr auto topologyList
List of the different possible topologies.
Definition: topology.h:65
Type legsToTopology(int nLegs)
Converts an integer corresponding to a number of legs to a topology.
Definition: topology.h:84
Any topologies i.e. combination of all 5 possible topologies.
Definition: topology.h:59
Definition: topology.h:54