CMS 3D CMS Logo

StringCutObjectSelector.h
Go to the documentation of this file.
1 #ifndef UtilAlgos_StringCutObjectSelector_h
2 #define UtilAlgos_StringCutObjectSelector_h
7 
8 namespace reco {
9  namespace modules {
10 
11  template<typename T, bool Lazy>
14  return StringCutObjectSelector<T, Lazy>( cfg.template getParameter<std::string>( "cut" ) );
15  }
16 
18  desc.add<std::string>("cut", "");
19  }
20  };
21 
22  }
23 }
24 
25 
26 // Introducing a simpler way to use a string object selector outside of the
27 // heavily-templated infrastructure above. This simply translates the cfg
28 // into the string that the functor expects.
29 namespace reco{
30  template< typename T, bool Lazy>
32  public:
34  StringCutObjectSelector<T, Lazy>(cfg.getParameter<std::string>("cut"))
35  {
36  }
37  };
38 }
39 
40 #endif
41 
static void fillPSetDescription(edm::ParameterSetDescription &desc)
static StringCutObjectSelector< T, Lazy > make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
StringCutObjectSelectorHandler(const edm::ParameterSet &cfg)
fixed size matrix
long double T