Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef IsolationAlgos_TrkCalIsolationAlgo_h
0002 #define IsolationAlgos_TrkCalIsolationAlgo_h
0003 /* Partial spacialization of parameter set adapeter helper
0004  *
0005  */
0006 #include "PhysicsTools/IsolationUtils/interface/TrkCalIsolationAlgo.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<TrkCalIsolationAlgo<T, C> > {
0015       static TrkCalIsolationAlgo<T, C> make(const edm::ParameterSet& cfg) {
0016         return TrkCalIsolationAlgo<T, C>(cfg.template getParameter<double>("dRMin"),
0017                                          cfg.template getParameter<double>("dRMax"));
0018       }
0019     };
0020   }  // namespace modules
0021 }  // namespace reco
0022 
0023 #endif