CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::MustacheSCParametersHelper Class Reference

#include <MustacheSCParametersHelper.h>

Public Member Functions

void addParabolaParameters (const EcalMustacheSCParameters::ParabolaParameters &parabolaParams)
 
 MustacheSCParametersHelper (EcalMustacheSCParameters &params, const edm::ParameterSet &iConfig)
 
void setSqrtLogClustETuning (const float sqrtLogClustETuning)
 
void sortParabolaParametersCollection ()
 
 ~MustacheSCParametersHelper ()=default
 

Private Attributes

EcalMustacheSCParametersparameters_
 

Detailed Description

Definition at line 9 of file MustacheSCParametersHelper.h.

Constructor & Destructor Documentation

◆ MustacheSCParametersHelper()

MustacheSCParametersHelper::MustacheSCParametersHelper ( EcalMustacheSCParameters params,
const edm::ParameterSet iConfig 
)

Definition at line 10 of file MustacheSCParametersHelper.cc.

12  : parameters_(params) {
13  setSqrtLogClustETuning(iConfig.getParameter<double>("sqrtLogClustETuning"));
14 
15  // parabola parameters
16  // clear the vector in case the EcalMustacheSCParameters had been initialised before
19  }
20  const auto parabolaPSets = iConfig.getParameter<std::vector<edm::ParameterSet>>("parabolaParameterSets");
21  for (const auto &pSet : parabolaPSets) {
22  EcalMustacheSCParameters::ParabolaParameters parabolaParams = {pSet.getParameter<double>("log10EMin"),
23  pSet.getParameter<double>("etaMin"),
24  pSet.getParameter<std::vector<double>>("pUp"),
25  pSet.getParameter<std::vector<double>>("pLow"),
26  pSet.getParameter<std::vector<double>>("w0Up"),
27  pSet.getParameter<std::vector<double>>("w1Up"),
28  pSet.getParameter<std::vector<double>>("w0Low"),
29  pSet.getParameter<std::vector<double>>("w1Low")};
30  addParabolaParameters(parabolaParams);
32  }
33 }

References addParabolaParameters(), edm::ParameterSet::getParameter(), EcalMustacheSCParameters::parabolaParametersCollection_, parameters_, setSqrtLogClustETuning(), and sortParabolaParametersCollection().

◆ ~MustacheSCParametersHelper()

reco::MustacheSCParametersHelper::~MustacheSCParametersHelper ( )
default

Member Function Documentation

◆ addParabolaParameters()

void MustacheSCParametersHelper::addParabolaParameters ( const EcalMustacheSCParameters::ParabolaParameters parabolaParams)

Definition at line 39 of file MustacheSCParametersHelper.cc.

40  {
41  parameters_.parabolaParametersCollection_.emplace_back(parabolaParams);
42 }

References EcalMustacheSCParameters::parabolaParametersCollection_, and parameters_.

Referenced by MustacheSCParametersHelper().

◆ setSqrtLogClustETuning()

void MustacheSCParametersHelper::setSqrtLogClustETuning ( const float  sqrtLogClustETuning)

◆ sortParabolaParametersCollection()

void MustacheSCParametersHelper::sortParabolaParametersCollection ( )

Definition at line 44 of file MustacheSCParametersHelper.cc.

44  {
49  const auto p1Mins = std::make_pair(p1.log10EMin, p1.etaMin);
50  const auto p2Mins = std::make_pair(p2.log10EMin, p2.etaMin);
51  return p1Mins < p2Mins;
52  });
53 }

References p1, p2, EcalMustacheSCParameters::parabolaParametersCollection_, and parameters_.

Referenced by MustacheSCParametersHelper().

Member Data Documentation

◆ parameters_

EcalMustacheSCParameters& reco::MustacheSCParametersHelper::parameters_
private
reco::MustacheSCParametersHelper::addParabolaParameters
void addParabolaParameters(const EcalMustacheSCParameters::ParabolaParameters &parabolaParams)
Definition: MustacheSCParametersHelper.cc:39
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
p2
double p2[4]
Definition: TauolaWrapper.h:90
reco::MustacheSCParametersHelper::parameters_
EcalMustacheSCParameters & parameters_
Definition: MustacheSCParametersHelper.h:20
EcalMustacheSCParametersESProducer_cfi.sqrtLogClustETuning
sqrtLogClustETuning
Definition: EcalMustacheSCParametersESProducer_cfi.py:4
EcalMustacheSCParameters::sqrtLogClustETuning_
float sqrtLogClustETuning_
Definition: EcalMustacheSCParameters.h:46
p1
double p1[4]
Definition: TauolaWrapper.h:89
reco::MustacheSCParametersHelper::sortParabolaParametersCollection
void sortParabolaParametersCollection()
Definition: MustacheSCParametersHelper.cc:44
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
reco::MustacheSCParametersHelper::setSqrtLogClustETuning
void setSqrtLogClustETuning(const float sqrtLogClustETuning)
Definition: MustacheSCParametersHelper.cc:35
EcalMustacheSCParameters::parabolaParametersCollection_
std::vector< ParabolaParameters > parabolaParametersCollection_
Definition: EcalMustacheSCParameters.h:49
EcalMustacheSCParameters::ParabolaParameters
Definition: EcalMustacheSCParameters.h:18