Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
SiStripCommissioningSummary
src
SamplingSummaryFactory.cc
Go to the documentation of this file.
1
#include "
DQM/SiStripCommissioningSummary/interface/SamplingSummaryFactory.h
"
2
#include "
CondFormats/SiStripObjects/interface/SamplingAnalysis.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
SamplingSummaryFactory::extract
(
Iterator
iter ) {
13
14
SamplingAnalysis
* anal =
dynamic_cast<
SamplingAnalysis
*
>
( iter->second );
15
if
( !anal ) {
return
; }
16
17
if
( mon_ ==
sistrip::FINE_DELAY_POS
) {
18
generator_->fillMap( level_, gran_, iter->first, anal->
maximum
() );
19
}
else
if
( mon_ ==
sistrip::FINE_DELAY_ERROR
) {
20
generator_->fillMap( level_, gran_, iter->first, anal->
error
() );
21
}
else
{
22
edm::LogWarning
(
mlSummaryPlots_
)
23
<<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
24
<<
" Unexpected monitorable: "
25
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
);
26
return
;
27
}
28
}
29
30
//------------------------------------------------------------------------------
31
//
32
void
SamplingSummaryFactory::format
() {
33
34
// Histogram formatting
35
if
( mon_ ==
sistrip::FINE_DELAY_POS
) {
36
generator_->axisLabel(
"Delay [ns]"
);
37
}
else
if
( mon_ ==
sistrip::FINE_DELAY_ERROR
) {
38
generator_->axisLabel(
"Uncertainty [ns]"
);
39
}
else
{
40
edm::LogWarning
(
mlSummaryPlots_
)
41
<<
"[SummaryPlotFactory::"
<< __func__ <<
"]"
42
<<
" Unexpected SummaryHisto value:"
43
<<
SiStripEnumsAndStrings::monitorable
(
SummaryPlotFactoryBase::mon_
) ;
44
}
45
46
}
47
SamplingAnalysis.h
SiStripEnumsAndStrings::monitorable
static std::string monitorable(const sistrip::Monitorable &)
Definition:
SiStripEnumsAndStrings.cc:293
MessageLogger.h
SamplingAnalysis
Analysis for latency run.
Definition:
SamplingAnalysis.h:17
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition:
SummaryPlotFactoryBase.h:28
SiStripEnumsAndStrings.h
edm::LogWarning
Definition:
MessageLogger.h:140
SamplingAnalysis::error
const float & error() const
Definition:
SamplingAnalysis.h:31
SamplingSummaryFactory::format
void format()
Definition:
SamplingSummaryFactory.cc:32
SamplingSummaryFactory::extract
void extract(Iterator)
Definition:
SamplingSummaryFactory.cc:12
sistrip::FINE_DELAY_ERROR
Definition:
ConstantsForMonitorable.h:201
sistrip::FINE_DELAY_POS
Definition:
ConstantsForMonitorable.h:200
sistrip::mlSummaryPlots_
static const char mlSummaryPlots_[]
Definition:
ConstantsForLogger.h:26
Iterator
Definition:
DQMStoreStats.h:73
SamplingSummaryFactory.h
SamplingAnalysis::maximum
const float & maximum() const
Definition:
SamplingAnalysis.h:29
Generated for CMSSW Reference Manual by
1.8.5