CMS 3D CMS Logo

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::SCDynamicDPhiParametersHelper ( EcalSCDynamicDPhiParameters params,
const edm::ParameterSet iConfig 
)

Definition at line 10 of file SCDynamicDPhiParametersHelper.cc.

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 }

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

◆ ~SCDynamicDPhiParametersHelper()

reco::SCDynamicDPhiParametersHelper::~SCDynamicDPhiParametersHelper ( )
default

Member Function Documentation

◆ addDynamicDPhiParameters()

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

◆ sortDynamicDPhiParametersCollection()

void SCDynamicDPhiParametersHelper::sortDynamicDPhiParametersCollection ( )

Definition at line 38 of file SCDynamicDPhiParametersHelper.cc.

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 }

References EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_, p1, p2, and parameters_.

Referenced by SCDynamicDPhiParametersHelper().

Member Data Documentation

◆ parameters_

EcalSCDynamicDPhiParameters& reco::SCDynamicDPhiParametersHelper::parameters_
private
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
reco::SCDynamicDPhiParametersHelper::sortDynamicDPhiParametersCollection
void sortDynamicDPhiParametersCollection()
Definition: SCDynamicDPhiParametersHelper.cc:38
EcalSCDynamicDPhiParameters::DynamicDPhiParameters
Definition: EcalSCDynamicDPhiParameters.h:18
p2
double p2[4]
Definition: TauolaWrapper.h:90
reco::SCDynamicDPhiParametersHelper::addDynamicDPhiParameters
void addDynamicDPhiParameters(const EcalSCDynamicDPhiParameters::DynamicDPhiParameters &dynDPhiParams)
Definition: SCDynamicDPhiParametersHelper.cc:33
p1
double p1[4]
Definition: TauolaWrapper.h:89
EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
Definition: EcalSCDynamicDPhiParameters.h:45
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
reco::SCDynamicDPhiParametersHelper::parameters_
EcalSCDynamicDPhiParameters & parameters_
Definition: SCDynamicDPhiParametersHelper.h:18