9#include <Math/Vector4D.h>
40 explicit FoxWolfram(
const std::vector<ROOT::Math::PxPyPzEVector>& momenta)
73 void setMomenta(
const std::vector<ROOT::Math::PxPyPzEVector>& 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.
void setMomenta(const std::vector< ROOT::Math::PxPyPzEVector > &momenta)
Sets the list of momenta used for the FW moment calculation, overwriting whatever list has been set b...
std::vector< ROOT::Math::PxPyPzEVector > 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.
FoxWolfram(const std::vector< ROOT::Math::PxPyPzEVector > &momenta)
Constructor with an array of 4-momenta.
void calculateBasicMoments()
Method to perform the calculation of the moments up to order 4, which are the most relevant ones.
double getH(int i) const
Returns the i-th moment.
FoxWolfram()
Default constructor.
Abstract base class for different kinds of events.