CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PdgIdSelector.h
Go to the documentation of this file.
1 #ifndef UtilAlgos_PdgIdSelector_h
2 #define UtilAlgos_PdgIdSelector_h
6 
7 namespace reco {
8  namespace modules {
9 
10  template<>
13  return PdgIdSelector( cfg.getParameter<std::vector<int> >( "pdgId" ) );
14  }
15  };
16 
17  }
18 }
19 
20 
21 // Introducing a simpler way to use a string object selector outside of the
22 // heavily-templated infrastructure above. This simply translates the cfg
23 // into the string that the functor expects.
24 namespace reco{
26  public:
28  PdgIdSelector(cfg.getParameter<std::vector<int> >("pdgId"))
29  {
30  }
31  };
32 }
33 
34 
35 #endif
36 
T getParameter(std::string const &) const
tuple cfg
Definition: looper.py:293
static PdgIdSelector make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition: PdgIdSelector.h:12
PdgIdSelectorHandler(const edm::ParameterSet &cfg)
Definition: PdgIdSelector.h:27