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.

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

◆ ~SCDynamicDPhiParametersHelper()

reco::SCDynamicDPhiParametersHelper::~SCDynamicDPhiParametersHelper ( )
default

Member Function Documentation

◆ addDynamicDPhiParameters()

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_

◆ sortDynamicDPhiParametersCollection()

void SCDynamicDPhiParametersHelper::sortDynamicDPhiParametersCollection ( )

Member Data Documentation

◆ parameters_

EcalSCDynamicDPhiParameters& reco::SCDynamicDPhiParametersHelper::parameters_
private