CMS 3D CMS Logo

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

#include <SiStripMiscalibrateHelper.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 14 of file SiStripMiscalibrateHelper.h.

Constructor & Destructor Documentation

SiStripMiscalibrate::Entry::Entry ( )
inline

Member Function Documentation

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

Definition at line 26 of file SiStripMiscalibrateHelper.h.

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

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

Definition at line 22 of file SiStripMiscalibrateHelper.h.

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

Referenced by mean_rms().

22  {
23  double tmean = mean();
24  return (sq_sum - entries*tmean*tmean)>0 ? sqrt((sq_sum - entries*tmean*tmean)/(entries-1)) : 0.;
25  }
T sqrt(T t)
Definition: SSEVec.h:18

Member Data Documentation

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

Definition at line 41 of file SiStripMiscalibrateHelper.h.

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

double SiStripMiscalibrate::Entry::sum
private

Definition at line 41 of file SiStripMiscalibrateHelper.h.

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