CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::SCDynamicDPhiParametersHelper Class Reference

#include <SCDynamicDPhiParametersHelper.h>

Public Member Functions

void addDynamicDPhiParameters (const EcalSCDynamicDPhiParameters::DynamicDPhiParameters &dynDPhiParams)
 
 SCDynamicDPhiParametersHelper (EcalSCDynamicDPhiParameters &params, const edm::ParameterSet &iConfig)
 
void sortDynamicDPhiParametersCollection ()
 
 ~SCDynamicDPhiParametersHelper ()=default
 

Private Attributes

EcalSCDynamicDPhiParametersparameters_
 

Detailed Description

Definition at line 9 of file SCDynamicDPhiParametersHelper.h.

Constructor & Destructor Documentation

SCDynamicDPhiParametersHelper::SCDynamicDPhiParametersHelper ( EcalSCDynamicDPhiParameters params,
const edm::ParameterSet iConfig 
)

Definition at line 10 of file SCDynamicDPhiParametersHelper.cc.

References addDynamicDPhiParameters(), EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_, edm::ParameterSet::getParameter(), parameters_, and sortDynamicDPhiParametersCollection().

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 }
void addDynamicDPhiParameters(const EcalSCDynamicDPhiParameters::DynamicDPhiParameters &dynDPhiParams)
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
reco::SCDynamicDPhiParametersHelper::~SCDynamicDPhiParametersHelper ( )
default

Member Function Documentation

void SCDynamicDPhiParametersHelper::addDynamicDPhiParameters ( const EcalSCDynamicDPhiParameters::DynamicDPhiParameters dynDPhiParams)

Definition at line 33 of file SCDynamicDPhiParametersHelper.cc.

References EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_, and parameters_.

Referenced by SCDynamicDPhiParametersHelper().

34  {
35  parameters_.dynamicDPhiParametersCollection_.emplace_back(dynDPhiParams);
36 }
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
void SCDynamicDPhiParametersHelper::sortDynamicDPhiParametersCollection ( )

Definition at line 38 of file SCDynamicDPhiParametersHelper.cc.

References EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_, EcalSCDynamicDPhiParameters::DynamicDPhiParameters::eMin, EcalSCDynamicDPhiParameters::DynamicDPhiParameters::etaMin, fireworks::p1, fireworks::p2, and parameters_.

Referenced by SCDynamicDPhiParametersHelper().

38  {
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
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
const TString p1
Definition: fwPaths.cc:12

Member Data Documentation

EcalSCDynamicDPhiParameters& reco::SCDynamicDPhiParametersHelper::parameters_
private