CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiStripPI::Entry Class Reference

#include <SiStripPayloadInspectorHelper.h>

Public Member Functions

void add (double val)
 
 Entry ()
 
double mean ()
 
double mean_rms ()
 
void reset ()
 
double std_dev ()
 

Private Attributes

long int entries
 
double sq_sum
 
double sum
 

Detailed Description

Definition at line 29 of file SiStripPayloadInspectorHelper.h.

Constructor & Destructor Documentation

SiStripPI::Entry::Entry ( )
inline

Member Function Documentation

void SiStripPI::Entry::add ( double  val)
inline
double SiStripPI::Entry::mean ( )
inline
double SiStripPI::Entry::mean_rms ( )
inline

Definition at line 38 of file SiStripPayloadInspectorHelper.h.

References entries, mathSSE::sqrt(), and std_dev().

void SiStripPI::Entry::reset ( void  )
inline
double SiStripPI::Entry::std_dev ( )
inline

Definition at line 34 of file SiStripPayloadInspectorHelper.h.

References entries, mean(), sq_sum, and mathSSE::sqrt().

Referenced by mean_rms().

34  {
35  double tmean = mean();
36  return sqrt((sq_sum - entries * tmean * tmean) / (entries - 1));
37  }
T sqrt(T t)
Definition: SSEVec.h:19

Member Data Documentation

long int SiStripPI::Entry::entries
private
double SiStripPI::Entry::sq_sum
private

Definition at line 54 of file SiStripPayloadInspectorHelper.h.

Referenced by add(), reset(), and std_dev().

double SiStripPI::Entry::sum
private

Definition at line 54 of file SiStripPayloadInspectorHelper.h.

Referenced by add(), SiStripPI::getTheRange(), mean(), and reset().