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 41 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 37 of file SiStripPayloadInspectorHelper.h.

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

Referenced by mean_rms().

37  {
38  double tmean = mean();
39  return sqrt((sq_sum - entries*tmean*tmean)/(entries-1));
40  }
T sqrt(T t)
Definition: SSEVec.h:18

Member Data Documentation

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

Definition at line 56 of file SiStripPayloadInspectorHelper.h.

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

double SiStripPI::Entry::sum
private

Definition at line 56 of file SiStripPayloadInspectorHelper.h.

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