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

◆ Entry()

SiStripPI::Entry::Entry ( )
inline

Definition at line 31 of file SiStripPayloadInspectorHelper.h.

31 : entries(0), sum(0), sq_sum(0) {}

Member Function Documentation

◆ add()

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

◆ mean()

double SiStripPI::Entry::mean ( )
inline

Definition at line 33 of file SiStripPayloadInspectorHelper.h.

33 { return sum / entries; }

References entries, and sum.

Referenced by SiStripPI::Monitor1D::flush(), SiStripPI::Monitor2D::flush(), and std_dev().

◆ mean_rms()

double SiStripPI::Entry::mean_rms ( )
inline

Definition at line 38 of file SiStripPayloadInspectorHelper.h.

38 { return std_dev() / sqrt(entries); }

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

34  {
35  double tmean = mean();
36  return sqrt((sq_sum - entries * tmean * tmean) / (entries - 1));
37  }

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

Referenced by mean_rms().

Member Data Documentation

◆ entries

long int SiStripPI::Entry::entries
private

◆ sq_sum

double SiStripPI::Entry::sq_sum
private

Definition at line 54 of file SiStripPayloadInspectorHelper.h.

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

◆ sum

double SiStripPI::Entry::sum
private

Definition at line 54 of file SiStripPayloadInspectorHelper.h.

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

SiStripPI::Entry::sq_sum
double sq_sum
Definition: SiStripPayloadInspectorHelper.h:54
SiStripPI::Entry::sum
double sum
Definition: SiStripPayloadInspectorHelper.h:54
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
SiStripPI::Entry::std_dev
double std_dev()
Definition: SiStripPayloadInspectorHelper.h:34
SiStripPI::Entry::entries
long int entries
Definition: SiStripPayloadInspectorHelper.h:53
heppy_batch.val
val
Definition: heppy_batch.py:351
SiStripPI::Entry::mean
double mean()
Definition: SiStripPayloadInspectorHelper.h:33