Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
SiPixelPhase1Common
src
SummationSpecification.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiPixelPhase1Common
4
// Class: SummationSpecification
5
//
6
// SummationSpecification does not need much impl, mostly the constructor.
7
//
8
// Original Author: Marcel Schneider
9
10
#include "
DQM/SiPixelPhase1Common/interface/SummationSpecification.h
"
11
12
#include <set>
13
#include <cassert>
14
15
GeometryInterface::Column
16
SummationSpecification::parse_columns
(
std::string
name
,
GeometryInterface
& geometryInterface) {
17
return
geometryInterface.
intern
(name);
18
}
19
20
21
SummationSpecification::SummationSpecification
(
const
edm::ParameterSet
&
config
,
GeometryInterface
& geometryInterface) {
22
auto
spec = config.
getParameter
<
edm::VParameterSet
>(
"spec"
);
23
for
(
auto
step
: spec) {
24
auto
s
=
SummationStep
();
25
s
.type =
SummationStep::Type
(
step
.getParameter<
int
>(
"type"
));
26
s
.stage =
SummationStep::Stage
(
step
.getParameter<
int
>(
"stage"
));
27
for
(
auto
c
:
step
.getParameter<std::vector<std::string>>(
"columns"
)) {
28
s
.columns.push_back(
parse_columns
(
c
, geometryInterface));
29
}
30
s
.arg =
step
.getParameter<
std::string
>(
"arg"
);
31
steps
.push_back(
s
);
32
}
33
}
34
35
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
mps_alisetup.config
tuple config
Definition:
mps_alisetup.py:146
SummationSpecification::SummationSpecification
SummationSpecification()
Definition:
SummationSpecification.h:53
edm::VParameterSet
std::vector< ParameterSet > VParameterSet
Definition:
ParameterSet.h:33
SummationSpecification.h
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
SummationSpecification::steps
std::vector< SummationStep > steps
Definition:
SummationSpecification.h:52
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
SummationSpecification::parse_columns
GeometryInterface::Column parse_columns(std::string name, GeometryInterface &)
Definition:
SummationSpecification.cc:16
GeometryInterface
Definition:
GeometryInterface.h:27
SummationStep::Type
Type
Definition:
SummationSpecification.h:25
SummationStep::Stage
Stage
Definition:
SummationSpecification.h:42
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
GeometryInterface::Column
ID Column
Definition:
GeometryInterface.h:33
SummationStep
Definition:
SummationSpecification.h:20
edm::ParameterSet
Definition:
ParameterSet.h:36
step
step
Definition:
StallMonitor.cc:104
GeometryInterface::intern
ID intern(std::string const &id)
Definition:
GeometryInterface.h:105
Generated for CMSSW Reference Manual by
1.8.5