Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
SiStripObjects
src
DaqScopeModeAnalysis.cc
Go to the documentation of this file.
1
#include "
CondFormats/SiStripObjects/interface/DaqScopeModeAnalysis.h
"
2
#include "
DataFormats/SiStripCommon/interface/SiStripHistoTitle.h
"
3
#include "
DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
#include <iostream>
6
#include <iomanip>
7
#include <cmath>
8
9
using namespace
sistrip;
10
11
// ----------------------------------------------------------------------------
12
//
13
DaqScopeModeAnalysis::DaqScopeModeAnalysis
(
const
uint32_t&
key
)
14
:
CommissioningAnalysis
(key,
"DaqScopeModeAnalysis"
),
15
entries_(sistrip::
invalid_
),
16
mean_(sistrip::
invalid_
),
17
median_(sistrip::
invalid_
),
18
mode_(sistrip::
invalid_
),
19
rms_(sistrip::
invalid_
),
20
min_(sistrip::
invalid_
),
21
max_(sistrip::
invalid_
)
22
{;}
23
24
// ----------------------------------------------------------------------------
25
//
26
DaqScopeModeAnalysis::DaqScopeModeAnalysis
()
27
:
CommissioningAnalysis
(
"DaqScopeModeAnalysis"
),
28
entries_(sistrip::
invalid_
),
29
mean_(sistrip::
invalid_
),
30
median_(sistrip::
invalid_
),
31
mode_(sistrip::
invalid_
),
32
rms_(sistrip::
invalid_
),
33
min_(sistrip::
invalid_
),
34
max_(sistrip::
invalid_
)
35
{;}
36
37
// ----------------------------------------------------------------------------
38
//
39
void
DaqScopeModeAnalysis::reset
() {
40
entries_
= 1. *
sistrip::invalid_
;
41
mean_
= 1.*
sistrip::invalid_
;
42
median_
= 1.*
sistrip::invalid_
;
43
mode_
= 1.*
sistrip::invalid_
;
44
rms_
= 1.*
sistrip::invalid_
;
45
min_
= 1.*
sistrip::invalid_
;
46
max_
= 1.*
sistrip::invalid_
;
47
}
48
49
// ----------------------------------------------------------------------------
50
//
51
void
DaqScopeModeAnalysis::print
( std::stringstream&
ss
, uint32_t not_used ) {
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
}
MessageLogger.h
SiStripEnumsAndStrings.h
DaqScopeModeAnalysis::min_
float min_
Definition:
DaqScopeModeAnalysis.h:58
DaqScopeModeAnalysis.h
DaqScopeModeAnalysis::print
void print(std::stringstream &, uint32_t not_used=0)
Definition:
DaqScopeModeAnalysis.cc:51
relval_steps.key
list key
Definition:
relval_steps.py:1371
DaqScopeModeAnalysis::DaqScopeModeAnalysis
DaqScopeModeAnalysis()
Definition:
DaqScopeModeAnalysis.cc:26
DaqScopeModeAnalysis::median_
float median_
Definition:
DaqScopeModeAnalysis.h:52
DaqScopeModeAnalysis::mode_
float mode_
Definition:
DaqScopeModeAnalysis.h:54
DaqScopeModeAnalysis::entries_
float entries_
Definition:
DaqScopeModeAnalysis.h:48
CommissioningAnalysis::header
virtual void header(std::stringstream &) const
Definition:
CommissioningAnalysis.cc:32
sistrip::invalid_
static const uint16_t invalid_
Definition:
Constants.h:16
SiStripHistoTitle.h
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
DaqScopeModeAnalysis::mean_
float mean_
Definition:
DaqScopeModeAnalysis.h:50
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition:
CommissioningAnalysis.h:18
DaqScopeModeAnalysis::rms_
float rms_
Definition:
DaqScopeModeAnalysis.h:56
DaqScopeModeAnalysis::max_
float max_
Definition:
DaqScopeModeAnalysis.h:60
DaqScopeModeAnalysis::reset
void reset()
Definition:
DaqScopeModeAnalysis.cc:39
Generated for CMSSW Reference Manual by
1.8.5