Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:09

0001 #ifndef UtilAlgos_FunctionMinSelector_h
0002 #define UtilAlgos_FunctionMinSelector_h
0003 
0004 #include "FWCore/Framework/interface/ConsumesCollector.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0006 #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h"
0007 #include "CommonTools/Utils/interface/FunctionMinSelector.h"
0008 #include "CommonTools/RecoAlgos/plugins/SuperClusterEt.h"
0009 
0010 namespace reco {
0011   namespace modules {
0012     typedef FunctionMinSelector<SuperClusterEt> EtMinSuperClusterSelector;
0013 
0014     template <>
0015     struct ParameterAdapter<EtMinSuperClusterSelector> {
0016       static EtMinSuperClusterSelector make(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC) {
0017         return EtMinSuperClusterSelector(cfg.getParameter<double>("etMin"));
0018       }
0019 
0020       static void fillPSetDescription(edm::ParameterSetDescription& desc) { desc.add<double>("etMin", 0); }
0021     };
0022 
0023   }  // namespace modules
0024 }  // namespace reco
0025 
0026 #endif