Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
DQM
SiStripCommissioningSummary
src
ApvTimingSummaryFactory.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommissioningSummary/interface/ApvTimingSummaryFactory.h
"
2
#include "
CondFormats/SiStripObjects/interface/ApvTimingAnalysis.h
"
3
#include "
DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
#include <iostream>
6
#include <sstream>
7
8
using namespace
sistrip
;
9
10
// -----------------------------------------------------------------------------
11
//
12
void
ApvTimingSummaryFactory::extract
(
Iterator
iter) {
13
ApvTimingAnalysis
*
anal
=
dynamic_cast<
ApvTimingAnalysis
*
>
(iter->second);
14
if
(!
anal
) {
15
return
;
16
}
17
18
float
value
= 1. *
sistrip::invalid_
;
19
20
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_TIME
) {
21
value
=
anal
->time();
22
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_MAX_TIME
) {
23
value
=
anal
->refTime();
24
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_DELAY
) {
25
value
=
anal
->delay();
26
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_BASE
) {
27
value
=
anal
->base();
28
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_PEAK
) {
29
value
=
anal
->peak();
30
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_HEIGHT
) {
31
value
=
anal
->height();
32
}
else
{
33
edm::LogWarning
(
mlSummaryPlots_
) <<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
34
<<
" Unexpected monitorable: "
35
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
);
36
return
;
37
}
38
39
SummaryPlotFactoryBase::generator_
->
fillMap
(
40
SummaryPlotFactoryBase::level_
,
SummaryPlotFactoryBase::gran_
, iter->first,
value
);
41
}
42
43
// -----------------------------------------------------------------------------
44
//
45
void
ApvTimingSummaryFactory::format
() {
46
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_TIME
) {
47
SummaryPlotFactoryBase::generator_
->
axisLabel
(
"Timing delay [ns]"
);
48
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_MAX_TIME
) {
49
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_DELAY
) {
50
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_ERROR
) {
51
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_BASE
) {
52
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_PEAK
) {
53
}
else
if
(
SummaryPlotFactoryBase::mon_
==
sistrip::APV_TIMING_HEIGHT
) {
54
}
else
{
55
edm::LogWarning
(
mlSummaryPlots_
) <<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
56
<<
" Unexpected SummaryHisto value:"
57
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
);
58
}
59
}
SiStripEnumsAndStrings::monitorable
static std::string monitorable(const sistrip::Monitorable &)
Definition:
SiStripEnumsAndStrings.cc:547
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition:
SummaryPlotFactoryBase.h:25
MessageLogger.h
ApvTimingAnalysis.h
SiStripEnumsAndStrings.h
sistrip::APV_TIMING_ERROR
Definition:
ConstantsForMonitorable.h:221
sistrip::APV_TIMING_HEIGHT
Definition:
ConstantsForMonitorable.h:224
sistrip::APV_TIMING_TIME
Definition:
ConstantsForMonitorable.h:218
sistrip
sistrip classes
Definition:
EnsembleCalibrationLA.cc:9
ApvTimingSummaryFactory.h
SummaryGenerator::fillMap
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
Definition:
SummaryGenerator.cc:222
SummaryPlotFactoryBase::level_
std::string level_
Definition:
SummaryPlotFactoryBase.h:28
value
Definition:
value.py:1
SummaryPlotFactoryBase::gran_
sistrip::Granularity gran_
Definition:
SummaryPlotFactoryBase.h:29
sistrip::mlSummaryPlots_
static const char mlSummaryPlots_[]
Definition:
ConstantsForLogger.h:26
Iterator
Definition:
DQMStoreStats.cc:107
sistrip::APV_TIMING_DELAY
Definition:
ConstantsForMonitorable.h:220
ApvTimingSummaryFactory::format
void format() override
Definition:
ApvTimingSummaryFactory.cc:45
SummaryPlotFactoryBase::generator_
SummaryGenerator * generator_
Definition:
SummaryPlotFactoryBase.h:32
sistrip::invalid_
static const uint16_t invalid_
Definition:
Constants.h:16
sistrip::APV_TIMING_MAX_TIME
Definition:
ConstantsForMonitorable.h:219
ApvTimingSummaryFactory::extract
void extract(Iterator) override
Definition:
ApvTimingSummaryFactory.cc:12
conversion_template_cfg.anal
anal
Definition:
conversion_template_cfg.py:16
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
SummaryGenerator::axisLabel
void axisLabel(const std::string &)
Definition:
SummaryGenerator.h:135
sistrip::APV_TIMING_BASE
Definition:
ConstantsForMonitorable.h:222
ApvTimingAnalysis
Analysis for timing run using APV tick marks.
Definition:
ApvTimingAnalysis.h:15
sistrip::APV_TIMING_PEAK
Definition:
ConstantsForMonitorable.h:223
Generated for CMSSW Reference Manual by
1.8.14