Belle II Software development
|
Class to calculate the Fox-Wolfram moments up to order 8. More...
#include <FoxWolfram.h>
Public Member Functions | |
FoxWolfram () | |
Default constructor. | |
FoxWolfram (const std::vector< ROOT::Math::XYZVector > &momenta) | |
Constructor with an array of 3-momenta. | |
~FoxWolfram () | |
Default destructor. | |
void | calculateBasicMoments () |
Method to perform the calculation of the moments up to order 4, which are the most relevant ones. | |
void | calculateAllMoments () |
Method to perform the calculation of the moments up to order 8. | |
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 before. | |
double | getH (int i) const |
Returns the i-th moment. | |
double | getR (int i) const |
Returns the i-th moment normalized to the 0th-order moment. | |
Private Attributes | |
double | m_moment [9] = {0.} |
The moments. | |
std::vector< ROOT::Math::XYZVector > | m_momenta |
The particle's momenta. | |
Class to calculate the Fox-Wolfram moments up to order 8.
Since the most common user case is the calculation of the moments up to order 4, and the calculation of the momenta 5-8 takes much longer, two methods have been implemented. FoxWolfram::calculateBasicMoments will calculate the moments up to 4, while FoxWolfram::calculateAllMoments will perform the calculation up to order 8. The two options have been implemented in two separate methods instead of using an if condition simply to minimize the computing time.
Definition at line 28 of file FoxWolfram.h.
|
inlineexplicit |
Constructor with an array of 3-momenta.
Definition at line 40 of file FoxWolfram.h.
|
inline |
void calculateAllMoments | ( | ) |
Method to perform the calculation of the moments up to order 8.
It adds a significant overhead to the total FW moments calculation time, so it should be used for debugging or development studies.
Definition at line 58 of file FoxWolfram.cc.
void calculateBasicMoments | ( | ) |
Method to perform the calculation of the moments up to order 4, which are the most relevant ones.
The momenta up to order 8 can be calculated calling FoxWolfram::calculateAllMoments().
Definition at line 14 of file FoxWolfram.cc.
|
inline |
|
inline |
Returns the i-th moment normalized to the 0th-order moment.
These are the quantities normally used for the event shape characterization and the continuum suppression.
Definition at line 89 of file FoxWolfram.h.
|
inline |
Sets the list of momenta used for the FW moment calculation, overwriting whatever list has been set before.
Definition at line 73 of file FoxWolfram.h.
|
private |
The moments.
Definition at line 93 of file FoxWolfram.h.
|
private |
The particle's momenta.
Definition at line 94 of file FoxWolfram.h.