CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SCDynamicDPhiParametersHelper.cc
Go to the documentation of this file.
1 // Implementation of the SC dynamic dPhi parameters interface
2 
4 
5 #include <algorithm>
6 #include <utility>
7 
8 using namespace reco;
9 
12  : parameters_(params) {
13  // dynamic dPhi parameters
14  // clear the vector in case the EcalMustacheSCParameters had been initialised before
17  }
18  const auto dynamicDPhiPSets = iConfig.getParameter<std::vector<edm::ParameterSet>>("dynamicDPhiParameterSets");
19  for (const auto &pSet : dynamicDPhiPSets) {
20  EcalSCDynamicDPhiParameters::DynamicDPhiParameters dynDPhiParams({pSet.getParameter<double>("eMin"),
21  pSet.getParameter<double>("etaMin"),
22  pSet.getParameter<double>("yoffset"),
23  pSet.getParameter<double>("scale"),
24  pSet.getParameter<double>("xoffset"),
25  pSet.getParameter<double>("width"),
26  pSet.getParameter<double>("saturation"),
27  pSet.getParameter<double>("cutoff")});
28  addDynamicDPhiParameters(dynDPhiParams);
30  }
31 }
32 
35  parameters_.dynamicDPhiParametersCollection_.emplace_back(dynDPhiParams);
36 }
37 
43  const auto p1Mins = std::make_pair(p1.eMin, p1.etaMin);
44  const auto p2Mins = std::make_pair(p2.eMin, p2.etaMin);
45  return p1Mins < p2Mins;
46  });
47 }
const TString p2
Definition: fwPaths.cc:13
void addDynamicDPhiParameters(const EcalSCDynamicDPhiParameters::DynamicDPhiParameters &dynDPhiParams)
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
const TString p1
Definition: fwPaths.cc:12
SCDynamicDPhiParametersHelper(EcalSCDynamicDPhiParameters &params, const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303