Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:31

0001 #ifndef IsolationAlgos_PtIsolationAlgo_h
0002 #define IsolationAlgos_PtIsolationAlgo_h
0003 /* Partial spacialization of parameter set adapeter helper
0004  *
0005  */
0006 #include "PhysicsTools/IsolationUtils/interface/PtIsolationAlgo.h"
0007 #include "CommonTools/UtilAlgos/interface/ParameterAdapter.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 namespace reco {
0011   namespace modules {
0012 
0013     template <typename T, typename C>
0014     struct ParameterAdapter<PtIsolationAlgo<T, C> > {
0015       static PtIsolationAlgo<T, C> make(const edm::ParameterSet& cfg) {
0016         return PtIsolationAlgo<T, C>(cfg.template getParameter<double>("dRMin"),
0017                                      cfg.template getParameter<double>("dRMax"),
0018                                      cfg.template getParameter<double>("dzMax"),
0019                                      cfg.template getParameter<double>("d0Max"),
0020                                      cfg.template getParameter<double>("ptMin"));
0021       }
0022     };
0023   }  // namespace modules
0024 }  // namespace reco
0025 
0026 #endif