CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > > Struct Template Reference

#include <CalIsolationExtrapolate.h>

Static Public Member Functions

static CalIsolationAlgo< T, C > make (const edm::ParameterSet &cfg)
 
static CalIsolationAlgo< T, C > make (const edm::ParameterSet &cfg)
 

Detailed Description

template<typename T, typename C>
struct reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > >

Definition at line 36 of file CalIsolationExtrapolate.h.

Member Function Documentation

template<typename T , typename C >
static CalIsolationAlgo<T, C> reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > >::make ( const edm::ParameterSet cfg)
inlinestatic

Definition at line 17 of file CalIsolationNoExtrapol.h.

17  {
18  return CalIsolationAlgoNoExp<T, C>( cfg.template getParameter<double>( "dRMin" ),
19  cfg.template getParameter<double>( "dRMax" ) );
20  }
template<typename T , typename C >
static CalIsolationAlgo<T, C> reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > >::make ( const edm::ParameterSet cfg)
inlinestatic

Definition at line 37 of file CalIsolationExtrapolate.h.

References alignCSCRings::r.

37  {
38  bool propagate = cfg.template getParameter<bool>( "PropagateToCal" );
39  double r=0.0, minz=0.0, maxz=0.0;
40  bool material = false;
41  //allow for undefined propagation-parameters, if no propagation is wanted
42  if ( propagate ) {
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" );
47  }
48  return CalIsolationAlgo<T, C>( cfg.template getParameter<double>( "dRMin" ),
49  cfg.template getParameter<double>( "dRMax" ),
50  propagate, r, minz, maxz, material );
51  }