CMS 3D CMS Logo

Namespaces | Functions
parsePlan1RechitCombiner.h File Reference
#include <memory>
#include "RecoLocalCalo/HcalRecAlgos/interface/AbsPlan1RechitCombiner.h"

Go to the source code of this file.

Namespaces

 edm
 HLT enums.
 

Functions

std::unique_ptr< AbsPlan1RechitCombinerparsePlan1RechitCombiner (const edm::ParameterSet &ps)
 

Function Documentation

std::unique_ptr<AbsPlan1RechitCombiner> parsePlan1RechitCombiner ( const edm::ParameterSet ps)

Definition at line 8 of file parsePlan1RechitCombiner.cc.

References patPFMETCorrections_cff::algo, className(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

9 {
10  std::unique_ptr<AbsPlan1RechitCombiner> algo;
11 
12  const std::string& className = ps.getParameter<std::string>("Class");
13 
14  if (className == "SimplePlan1RechitCombiner")
15  algo = std::unique_ptr<AbsPlan1RechitCombiner>(new SimplePlan1RechitCombiner());
16 
17  return algo;
18 }
T getParameter(std::string const &) const
std::string className(const T &t)
Definition: ClassName.h:30