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

Constructor & Destructor Documentation

◆ Entry()

SiStripPI::Entry::Entry ( )
inline

Member Function Documentation

◆ add()

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

◆ mean()

double SiStripPI::Entry::mean ( )
inline

◆ mean_rms()

double SiStripPI::Entry::mean_rms ( )
inline

Definition at line 47 of file SiStripPayloadInspectorHelper.h.

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

◆ reset()

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

◆ std_dev()

double SiStripPI::Entry::std_dev ( )
inline

Definition at line 43 of file SiStripPayloadInspectorHelper.h.

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

Referenced by mean_rms().

43  {
44  double tmean = mean();
45  return sqrt((sq_sum - entries * tmean * tmean) / (entries - 1));
46  }
T sqrt(T t)
Definition: SSEVec.h:19

Member Data Documentation

◆ entries

long int SiStripPI::Entry::entries
private

◆ sq_sum

double SiStripPI::Entry::sq_sum
private

Definition at line 63 of file SiStripPayloadInspectorHelper.h.

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

◆ sum

double SiStripPI::Entry::sum
private

Definition at line 63 of file SiStripPayloadInspectorHelper.h.

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