1 |
#ifndef IsolationAlgos_PtIsolationAlgo_h
|
2 |
#define IsolationAlgos_PtIsolationAlgo_h
|
3 |
/* Partial spacialization of parameter set adapeter helper
|
4 |
*
|
5 |
*/
|
6 |
#include "PhysicsTools/IsolationUtils/interface/PtIsolationAlgo.h"
|
7 |
#include "PhysicsTools/UtilAlgos/interface/ParameterAdapter.h"
|
8 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
9 |
|
10 |
namespace reco {
|
11 |
namespace modules {
|
12 |
|
13 |
template<typename T, typename C>
|
14 |
struct ParameterAdapter<PtIsolationAlgo<T, C> > {
|
15 |
static PtIsolationAlgo<T, C> make( const edm::ParameterSet & cfg ) {
|
16 |
return PtIsolationAlgo<T, C>( cfg.template getParameter<double>( "dRMin" ),
|
17 |
cfg.template getParameter<double>( "dRMax" ),
|
18 |
cfg.template getParameter<double>( "dzMax" ) );
|
19 |
}
|
20 |
};
|
21 |
|
22 |
}
|
23 |
}
|
24 |
|
25 |
#endif
|