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