CMS 3D CMS Logo

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 
11 
12 #include <set>
13 #include <cassert>
14 
16  GeometryInterface& geometryInterface) {
17  return geometryInterface.intern(name);
18 }
19 
21  auto spec = config.getParameter<edm::VParameterSet>("spec");
22 
23  for (const 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 
28  s.nbins = int(step.getParameter<int>("nbins"));
29  s.xmin = int(step.getParameter<int>("xmin"));
30  s.xmax = int(step.getParameter<int>("xmax"));
31 
32  for (const auto& c : step.getParameter<std::vector<std::string>>("columns")) {
33  s.columns.push_back(parse_columns(c, geometryInterface));
34  }
35  s.arg = step.getParameter<std::string>("arg");
36  steps.push_back(s);
37  }
38 }
step
step
Definition: StallMonitor.cc:94
SummationSpecification::steps
std::vector< SummationStep > steps
Definition: SummationSpecification.h:57
edm::VParameterSet
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:34
SummationSpecification::SummationSpecification
SummationSpecification()
Definition: SummationSpecification.h:58
SummationSpecification::parse_columns
GeometryInterface::Column parse_columns(std::string name, GeometryInterface &)
Definition: SummationSpecification.cc:15
config
Definition: config.py:1
alignCSCRings.s
s
Definition: alignCSCRings.py:92
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
createfilelist.int
int
Definition: createfilelist.py:10
SummationSpecification.h
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
GeometryInterface::Column
ID Column
Definition: GeometryInterface.h:40
SummationStep::Stage
Stage
Definition: SummationSpecification.h:43
GeometryInterface::intern
ID intern(std::string const &id)
Definition: GeometryInterface.h:106
SummationStep::Type
Type
Definition: SummationSpecification.h:25
SummationStep
Definition: SummationSpecification.h:20
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
GeometryInterface
Definition: GeometryInterface.h:34