9#include <Math/Vector3D.h>
40 explicit FoxWolfram(
const std::vector<ROOT::Math::XYZVector>& momenta)
73 void setMomenta(
const std::vector<ROOT::Math::XYZVector>& momenta)
83 double getH(
int i)
const {
return (i < 0 || i > 8) ? NAN :
m_moment[i]; }
Class to calculate the Fox-Wolfram moments up to order 8.
double m_moment[9]
The moments.
std::vector< ROOT::Math::XYZVector > m_momenta
The particle's momenta.
~FoxWolfram()
Default destructor.
double getR(int i) const
Returns the i-th moment normalized to the 0th-order moment.
void calculateAllMoments()
Method to perform the calculation of the moments up to order 8.
void calculateBasicMoments()
Method to perform the calculation of the moments up to order 4, which are the most relevant ones.
FoxWolfram(const std::vector< ROOT::Math::XYZVector > &momenta)
Constructor with an array of 3-momenta.
void setMomenta(const std::vector< ROOT::Math::XYZVector > &momenta)
Sets the list of momenta used for the FW moment calculation, overwriting whatever list has been set b...
double getH(int i) const
Returns the i-th moment.
FoxWolfram()
Default constructor.
Abstract base class for different kinds of events.