CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
parsePlan1RechitCombiner.cc
Go to the documentation of this file.
3 
4 // Concrete "Plan 1" rechit combination algorithm headers
6 
7 std::unique_ptr<AbsPlan1RechitCombiner> parsePlan1RechitCombiner(const edm::ParameterSet& ps) {
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 }
std::unique_ptr< AbsPlan1RechitCombiner > parsePlan1RechitCombiner(const edm::ParameterSet &ps)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string className(const T &t)
Definition: ClassName.h:31