File indexing completed on 2024-04-06 12:01:15
0001 #ifndef UtilAlgos_AndPairSelector_h
0002 #define UtilAlgos_AndPairSelector_h
0003 #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h"
0004 #include "CommonTools/Utils/interface/AndPairSelector.h"
0005
0006 namespace reco {
0007 namespace modules {
0008
0009 template <typename S1, typename S2>
0010 struct ParameterAdapter<AndPairSelector<S1, S2> > {
0011 static AndPairSelector<S1, S2> make(const edm::ParameterSet& cfg) {
0012 return AndPairSelector<S1, S2>(modules::make<S1>(cfg.getParameter<edm::ParameterSet>("cut1")),
0013 modules::make<S2>(cfg.getParameter<edm::ParameterSet>("cut2")));
0014 }
0015 };
0016
0017 }
0018 }
0019
0020 #endif