CMS 3D CMS Logo

Static Public Member Functions

reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > > Struct Template Reference

#include <CalIsolationExtrapolate.h>

List of all members.

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) [inline, static]

Definition at line 37 of file CalIsolationExtrapolate.h.

References csvReporter::r.

                                                                        {
          bool propagate = cfg.template getParameter<bool>( "PropagateToCal" );
          double r=0.0, minz=0.0, maxz=0.0;
          bool   material = false;
          //allow for undefined propagation-parameters, if no propagation is wanted
          if ( propagate ) {
            r        = cfg.template getParameter<double>( "CalRadius" );
            minz     = cfg.template getParameter<double>( "CalMinZ" );
            maxz     = cfg.template getParameter<double>( "CalMaxZ" );
            material = cfg.template getParameter<bool>( "IgnoreMaterial" );
          }  
          return CalIsolationAlgo<T, C>( cfg.template getParameter<double>( "dRMin" ), 
                                         cfg.template getParameter<double>( "dRMax" ),
                                         propagate, r, minz, maxz, material );
      }
template<typename T , typename C >
static CalIsolationAlgo<T, C> reco::modules::ParameterAdapter< CalIsolationAlgo< T, C > >::make ( const edm::ParameterSet cfg) [inline, static]

Definition at line 17 of file CalIsolationNoExtrapol.h.

                                                                        {
          return CalIsolationAlgoNoExp<T, C>( cfg.template getParameter<double>( "dRMin" ), 
                                              cfg.template getParameter<double>( "dRMax" ) );
      }