Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:11

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