1 #ifndef IsolationAlgos_CalIsolationAlgo_h
2 #define IsolationAlgos_CalIsolationAlgo_h
15 template<
typename Alg>
19 es.template get<IdealMagneticFieldRecord>().
get( bFieldHandle );
20 algo.setBfield( bFieldHandle.
product() );
24 template<
typename T1,
typename C2>
35 template<
typename T,
typename C>
38 bool propagate = cfg.template getParameter<bool>(
"PropagateToCal" );
39 double r=0.0, minz=0.0, maxz=0.0;
40 bool material =
false;
43 r = cfg.template getParameter<double>(
"CalRadius" );
44 minz = cfg.template getParameter<double>(
"CalMinZ" );
45 maxz = cfg.template getParameter<double>(
"CalMaxZ" );
46 material = cfg.template getParameter<bool>(
"IgnoreMaterial" );
49 cfg.template getParameter<double>(
"dRMax" ),
50 propagate,
r, minz, maxz, material );
static CalIsolationAlgo< T, C > make(const edm::ParameterSet &cfg)
static void init(Alg &algo, const edm::EventSetup &es)
T const * product() const
BFieldIsolationAlgorithmSetup< CalIsolationAlgo< T1, C2 > > type