CMS 3D CMS Logo

Functions
parsePlan1RechitCombiner.cc File Reference
#include "RecoLocalCalo/HcalRecAlgos/interface/parsePlan1RechitCombiner.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "RecoLocalCalo/HcalRecAlgos/interface/SimplePlan1RechitCombiner.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ parsePlan1RechitCombiner()

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

Definition at line 7 of file parsePlan1RechitCombiner.cc.

7  {
8  std::unique_ptr<AbsPlan1RechitCombiner> algo;
9 
10  const std::string& className = ps.getParameter<std::string>("Class");
11 
12  if (className == "SimplePlan1RechitCombiner")
13  algo = std::unique_ptr<AbsPlan1RechitCombiner>(new SimplePlan1RechitCombiner());
14 
15  return algo;
16 }

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

cmsdt::algo
algo
Definition: constants.h:164
SimplePlan1RechitCombiner
Definition: SimplePlan1RechitCombiner.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
className
std::string className(const T &t)
Definition: ClassName.h:31