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 23 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 19 of file SiStripMiscalibrateHelper.h.

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

Referenced by mean_rms().

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

Member Data Documentation

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

Definition at line 39 of file SiStripMiscalibrateHelper.h.

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

double SiStripMiscalibrate::Entry::sum
private

Definition at line 39 of file SiStripMiscalibrateHelper.h.

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