CMS 3D CMS Logo

Static Public Member Functions

reco::modules::ParameterAdapter< pat::VertexAssociationSelector > Struct Template Reference

Helper struct to convert from ParameterSet to ElectronSelection. More...

#include <VertexingHelper.h>

List of all members.

Static Public Member Functions

static
pat::VertexAssociationSelector 
make (const edm::ParameterSet &iConfig)

Detailed Description

template<>
struct reco::modules::ParameterAdapter< pat::VertexAssociationSelector >

Helper struct to convert from ParameterSet to ElectronSelection.

Definition at line 31 of file VertexingHelper.h.


Member Function Documentation

Definition at line 32 of file VertexingHelper.h.

References pat::VertexAssociationSelector::Config::dR, pat::VertexAssociationSelector::Config::dZ, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), pat::VertexAssociationSelector::Config::sigmasR, and pat::VertexAssociationSelector::Config::sigmasZ.

                                                                                      {
                pat::VertexAssociationSelector::Config assoconf;
                if (iConfig.existsAs<double>("deltaZ"))  assoconf.dZ = iConfig.getParameter<double>("deltaZ");
                if (iConfig.existsAs<double>("deltaR"))  assoconf.dR = iConfig.getParameter<double>("deltaR");
                if (iConfig.existsAs<double>("sigmasZ")) assoconf.sigmasZ = iConfig.getParameter<double>("sigmasZ");
                if (iConfig.existsAs<double>("sigmasR")) assoconf.sigmasR = iConfig.getParameter<double>("sigmasR");
                return pat::VertexAssociationSelector(assoconf);
            }