CentroidCalculator Class Reference

Ratpac-two: RAT::CentroidCalculator Class Reference
Ratpac-two
RAT::CentroidCalculator Class Reference

Public Member Functions

 CentroidCalculator ()
 
void Reset ()
 
void Fill (const TVector3 &point, double weight=1.0)
 
void Add (const CentroidCalculator &other)
 
TVector3 GetMean () const
 
TVector3 GetRMS () const
 

Protected Attributes

double fMoment0
 
TVector3 fMoment1
 
TVector3 fMoment2
 

Constructor & Destructor Documentation

◆ CentroidCalculator()

RAT::CentroidCalculator::CentroidCalculator ( )
inline

All accumulators cleared by default in constructor

Member Function Documentation

◆ Add()

void RAT::CentroidCalculator::Add ( const CentroidCalculator other)
inline

Add the information from another CentroidCalculator to this one

◆ Fill()

void RAT::CentroidCalculator::Fill ( const TVector3 &  point,
double  weight = 1.0 
)
inline

Add another point with given weight.

◆ GetMean()

TVector3 RAT::CentroidCalculator::GetMean ( ) const
inline

Mean of each coordinate

◆ GetRMS()

TVector3 RAT::CentroidCalculator::GetRMS ( ) const
inline

RMS of each coordinate

◆ Reset()

void RAT::CentroidCalculator::Reset ( )
inline

Clear all accumulators


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/util/include/RAT/CentroidCalculator.hh