00001 #ifndef PhysicsTools_UtilAlgos_PdgIdSelector_h 00002 #define PhysicsTools_UtilAlgos_PdgIdSelector_h 00003 #include "PhysicsTools/UtilAlgos/interface/ParameterAdapter.h" 00004 #include "PhysicsTools/Utilities/interface/PdgIdExcluder.h" 00005 00006 namespace reco { 00007 namespace modules { 00008 00009 template<> 00010 struct ParameterAdapter<PdgIdExcluder> { 00011 static PdgIdExcluder make( const edm::ParameterSet & cfg ) { 00012 return PdgIdExcluder( cfg.getParameter<std::vector<int> >( "pdgId" ) ); 00013 } 00014 }; 00015 00016 } 00017 } 00018 00019 #endif