Public Member Functions | Private Attributes | List of all members
lar_content::LayerFitContribution Class Reference

LayerFitContribution class. More...

#include <LArTwoDSlidingFitObjects.h>

Public Member Functions

 LayerFitContribution ()
 Default constructor. More...
 
void AddPoint (const float l, const float t)
 Add point to layer fit. More...
 
double GetSumT () const
 Get the sum t. More...
 
double GetSumL () const
 Get the sum l. More...
 
double GetSumTT () const
 Get the sum t * t. More...
 
double GetSumLT () const
 Get the sum l * t. More...
 
double GetSumLL () const
 Get the sum l * l. More...
 
unsigned int GetNPoints () const
 Get the number of points used. More...
 

Private Attributes

double m_sumT
 The sum t. More...
 
double m_sumL
 The sum l. More...
 
double m_sumTT
 The sum t * t. More...
 
double m_sumLT
 The sum l * t. More...
 
double m_sumLL
 The sum l * l. More...
 
unsigned int m_nPoints
 The number of points used. More...
 

Detailed Description

LayerFitContribution class.

Definition at line 91 of file LArTwoDSlidingFitObjects.h.

Constructor & Destructor Documentation

lar_content::LayerFitContribution::LayerFitContribution ( )
inline

Default constructor.

Definition at line 334 of file LArTwoDSlidingFitObjects.h.

334  : m_sumT(0.), m_sumL(0.), m_sumTT(0.), m_sumLT(0.), m_sumLL(0.), m_nPoints(0)
335 {
336 }
unsigned int m_nPoints
The number of points used.

Member Function Documentation

void lar_content::LayerFitContribution::AddPoint ( const float  l,
const float  t 
)
inline

Add point to layer fit.

Parameters
lthe longitudinal coordinate
tthe transverse coordinate

Definition at line 340 of file LArTwoDSlidingFitObjects.h.

341 {
342  const double T = static_cast<double>(t);
343  const double L = static_cast<double>(l);
344 
345  m_sumT += T;
346  m_sumL += L;
347  m_sumTT += T * T;
348  m_sumLT += L * T;
349  m_sumLL += L * L;
350  ++m_nPoints;
351 }
static QStrList * l
Definition: config.cpp:1044
unsigned int m_nPoints
The number of points used.
unsigned int lar_content::LayerFitContribution::GetNPoints ( ) const
inline

Get the number of points used.

Returns
the number of points used

Definition at line 390 of file LArTwoDSlidingFitObjects.h.

391 {
392  return m_nPoints;
393 }
unsigned int m_nPoints
The number of points used.
double lar_content::LayerFitContribution::GetSumL ( ) const
inline

Get the sum l.

Returns
the sum l

Definition at line 362 of file LArTwoDSlidingFitObjects.h.

363 {
364  return m_sumL;
365 }
double lar_content::LayerFitContribution::GetSumLL ( ) const
inline

Get the sum l * l.

Returns
the sum z * z

Definition at line 376 of file LArTwoDSlidingFitObjects.h.

377 {
378  return m_sumLL;
379 }
double lar_content::LayerFitContribution::GetSumLT ( ) const
inline

Get the sum l * t.

Returns
the sum l * t

Definition at line 369 of file LArTwoDSlidingFitObjects.h.

370 {
371  return m_sumLT;
372 }
double lar_content::LayerFitContribution::GetSumT ( ) const
inline

Get the sum t.

Returns
the sum t

Definition at line 355 of file LArTwoDSlidingFitObjects.h.

356 {
357  return m_sumT;
358 }
double lar_content::LayerFitContribution::GetSumTT ( ) const
inline

Get the sum t * t.

Returns
the sum t * t

Definition at line 383 of file LArTwoDSlidingFitObjects.h.

384 {
385  return m_sumTT;
386 }

Member Data Documentation

unsigned int lar_content::LayerFitContribution::m_nPoints
private

The number of points used.

Definition at line 155 of file LArTwoDSlidingFitObjects.h.

double lar_content::LayerFitContribution::m_sumL
private

The sum l.

Definition at line 151 of file LArTwoDSlidingFitObjects.h.

double lar_content::LayerFitContribution::m_sumLL
private

The sum l * l.

Definition at line 154 of file LArTwoDSlidingFitObjects.h.

double lar_content::LayerFitContribution::m_sumLT
private

The sum l * t.

Definition at line 153 of file LArTwoDSlidingFitObjects.h.

double lar_content::LayerFitContribution::m_sumT
private

The sum t.

Definition at line 150 of file LArTwoDSlidingFitObjects.h.

double lar_content::LayerFitContribution::m_sumTT
private

The sum t * t.

Definition at line 152 of file LArTwoDSlidingFitObjects.h.


The documentation for this class was generated from the following file: