CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

DaqScopeModeAnalysis Class Reference

Analysis for scope mode data. More...

#include <DaqScopeModeAnalysis.h>

Inheritance diagram for DaqScopeModeAnalysis:
CommissioningAnalysis

List of all members.

Public Member Functions

 DaqScopeModeAnalysis (const uint32_t &key)
 DaqScopeModeAnalysis ()
const float & entries () const
const float & max () const
const float & mean () const
const float & median () const
const float & min () const
const float & mode () const
void print (std::stringstream &, uint32_t not_used=0)
void reset ()
const float & rms () const
virtual ~DaqScopeModeAnalysis ()

Private Attributes

float entries_
float max_
float mean_
float median_
float min_
float mode_
float rms_

Friends

class DaqScopeModeAlgorithm

Detailed Description

Analysis for scope mode data.

Author:
R.Bainbridge

Definition at line 16 of file DaqScopeModeAnalysis.h.


Constructor & Destructor Documentation

DaqScopeModeAnalysis::DaqScopeModeAnalysis ( const uint32_t &  key)
DaqScopeModeAnalysis::DaqScopeModeAnalysis ( )
virtual DaqScopeModeAnalysis::~DaqScopeModeAnalysis ( ) [inline, virtual]

Definition at line 24 of file DaqScopeModeAnalysis.h.

{;}

Member Function Documentation

const float & DaqScopeModeAnalysis::entries ( ) const [inline]

Definition at line 64 of file DaqScopeModeAnalysis.h.

References entries_.

{ return entries_; }
const float & DaqScopeModeAnalysis::max ( ) const [inline]

Definition at line 70 of file DaqScopeModeAnalysis.h.

References max_.

{ return max_; }
const float & DaqScopeModeAnalysis::mean ( ) const [inline]

Definition at line 65 of file DaqScopeModeAnalysis.h.

References mean_.

{ return mean_; }
const float & DaqScopeModeAnalysis::median ( ) const [inline]

Definition at line 66 of file DaqScopeModeAnalysis.h.

References median_.

{ return median_; }
const float & DaqScopeModeAnalysis::min ( ) const [inline]

Definition at line 69 of file DaqScopeModeAnalysis.h.

References min_.

{ return min_; }
const float & DaqScopeModeAnalysis::mode ( ) const [inline]

Definition at line 67 of file DaqScopeModeAnalysis.h.

References mode_.

{ return mode_; }
void DaqScopeModeAnalysis::print ( std::stringstream &  ,
uint32_t  not_used = 0 
) [virtual]

Prints analysis results.

Implements CommissioningAnalysis.

Definition at line 51 of file DaqScopeModeAnalysis.cc.

References entries_, CommissioningAnalysis::header(), max_, mean_, median_, min_, mode_, and rms_.

                                                                         { 
  header( ss );
  ss << " Number of entries   : " << entries_ << "\n" 
     << " Mean +/- rms [adc]  : " << mean_ << " +/- " << rms_ << "\n"
     << " Median / mode [adc] : " << median_ << " / " << mode_ << "\n" 
     << " Min / max [adc]     : " << min_ << " / " << max_ << "\n";
}
void DaqScopeModeAnalysis::reset ( ) [virtual]
const float & DaqScopeModeAnalysis::rms ( ) const [inline]

Definition at line 68 of file DaqScopeModeAnalysis.h.

References rms_.

{ return rms_; }

Friends And Related Function Documentation

friend class DaqScopeModeAlgorithm [friend]

Definition at line 26 of file DaqScopeModeAnalysis.h.


Member Data Documentation

Definition at line 48 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), entries(), print(), and reset().

float DaqScopeModeAnalysis::max_ [private]

Definition at line 60 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), max(), print(), and reset().

float DaqScopeModeAnalysis::mean_ [private]

Definition at line 50 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), mean(), print(), and reset().

Definition at line 52 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), median(), print(), and reset().

float DaqScopeModeAnalysis::min_ [private]

Definition at line 58 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), min(), print(), and reset().

float DaqScopeModeAnalysis::mode_ [private]

Definition at line 54 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), mode(), print(), and reset().

float DaqScopeModeAnalysis::rms_ [private]

Definition at line 56 of file DaqScopeModeAnalysis.h.

Referenced by DaqScopeModeAlgorithm::analyse(), print(), reset(), and rms().