CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
DaqScopeModeAnalysis Class Reference

Analysis for scope mode data. More...

#include <DaqScopeModeAnalysis.h>

Inheritance diagram for DaqScopeModeAnalysis:
CommissioningAnalysis

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 ()
 
- Public Member Functions inherited from CommissioningAnalysis
virtual void addErrorCode (const std::string &error)
 
 CommissioningAnalysis (const uint32_t &key, const std::string &my_name)
 
 CommissioningAnalysis (const std::string &my_name)
 
const uint32_t & dcuId () const
 
void dcuId (const uint32_t &)
 
const uint32_t & detId () const
 
void detId (const uint32_t &)
 
const uint32_t & fecKey () const
 
void fecKey (const uint32_t &)
 
const uint32_t & fedKey () const
 
void fedKey (const uint32_t &)
 
const VStringgetErrorCodes () const
 
virtual void header (std::stringstream &) const
 
virtual bool isValid () const
 
const std::string & myName () const
 
void setErrorCodes (const VString &errors)
 
virtual void summary (std::stringstream &) const
 
virtual ~CommissioningAnalysis ()
 

Private Attributes

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

Friends

class DaqScopeModeAlgorithm
 

Additional Inherited Members

- Public Types inherited from CommissioningAnalysis
typedef std::vector< float > VFloat
 
typedef std::vector< uint16_t > VInt
 
typedef std::vector< std::string > VString
 
typedef std::vector< VFloatVVFloat
 
typedef std::vector< VIntVVInt
 

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 ( )
inlinevirtual

Definition at line 24 of file DaqScopeModeAnalysis.h.

24 {;}

Member Function Documentation

const float & DaqScopeModeAnalysis::entries ( ) const
inline

Definition at line 64 of file DaqScopeModeAnalysis.h.

References entries_.

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

Definition at line 70 of file DaqScopeModeAnalysis.h.

References max_.

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

Definition at line 65 of file DaqScopeModeAnalysis.h.

References mean_.

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

Definition at line 66 of file DaqScopeModeAnalysis.h.

References median_.

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

Definition at line 69 of file DaqScopeModeAnalysis.h.

References min_.

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

Definition at line 67 of file DaqScopeModeAnalysis.h.

References mode_.

67 { 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_.

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

Definition at line 68 of file DaqScopeModeAnalysis.h.

References rms_.

68 { return rms_; }

Friends And Related Function Documentation

friend class DaqScopeModeAlgorithm
friend

Definition at line 26 of file DaqScopeModeAnalysis.h.

Member Data Documentation

float DaqScopeModeAnalysis::entries_
private

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().

float DaqScopeModeAnalysis::median_
private

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().