A class that allows for a fast calculation of the flavours of the descendants of a vertex, particle, or a set of particles.
More...
#include <DecayProducts.h>
template<class T>
class DecayBase< T >
A class that allows for a fast calculation of the flavours of the descendants of a vertex, particle, or a set of particles.
Definition at line 13 of file DecayProducts.h.
◆ apd() [1/3]
Definition at line 21 of file DecayProducts.h.
21 {
int ret = 0;
for (
auto ii:
i) ret +=
apd(ii);
return ret; }
◆ apd() [2/3]
◆ apd() [3/3]
template<class T >
int DecayBase< T >::apd |
( |
int |
i1, |
|
|
int |
i2 |
|
) |
| const |
|
inline |
Definition at line 18 of file DecayProducts.h.
18 {
int ret = 0;
for (
auto &
a:
m_apids)
if (i1 <=
a.first &&
a.first <= i2) ret +=
a.second;
return ret; }
◆ apply()
Definition at line 23 of file DecayProducts.h.
23 {
int ret = 0;
for (
auto &
a:
m_pids)
if (func(
a.first)) ret+=
a.second;
return ret; }
◆ count()
◆ pd() [1/3]
Definition at line 20 of file DecayProducts.h.
20 {
int ret = 0;
for (
auto ii:
i) ret +=
pd(ii);
return ret;}
◆ pd() [2/3]
◆ pd() [3/3]
template<class T >
int DecayBase< T >::pd |
( |
int |
i1, |
|
|
int |
i2 |
|
) |
| const |
|
inline |
Definition at line 17 of file DecayProducts.h.
17 {
int ret = 0;
for (
auto &
a:
m_pids)
if (i1 <=
a.first &&
a.first <= i2) ret +=
a.second;
return ret; }
◆ size()
◆ m_apids
◆ m_pids
◆ m_size
The documentation for this class was generated from the following file: