69 #ifndef NBODYPHASESPACEGEN_H
70 #define NBODYPHASESPACEGEN_H
89 for (
unsigned int i = 1; i <=
n; ++i)
104 return sqrt((M - m1 - m2) * (M + m1 + m2) * (M - m1 + m2) * (M + m1 - m2)) / (2 *
M);
117 bool setDecay(
const std::vector<double>& daughterMasses);
119 const double* daughterMasses);
141 const unsigned int nmbOfIterations = 10000);
157 double phi (
const int index)
const {
return _phi[index]; }
160 std::ostream&
print(std::ostream& out = std::cout)
const;
163 {
return gen.
print(out); }
184 std::vector<double>
_m;
188 std::vector<double>
_M;
207 for (
unsigned int i = 1; i <
_n; ++i) {
218 const double max = (maxWeight <= 0) ?
_maxWeight : maxWeight;
220 printWarn <<
"maximum weight = " << max <<
" does not make sense. rejecting event." << std::endl;
229 #endif // NBODYPHASESPACEGEN_H