CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
EgammaL1TkIsolation::TrkCuts Struct Reference

Public Member Functions

 TrkCuts (const edm::ParameterSet &para)
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Public Attributes

float maxDR2
 
float maxDZ
 
float minDEta
 
float minDR2
 
float minPt
 

Detailed Description

Definition at line 38 of file EgammaL1TkIsolation.h.

Constructor & Destructor Documentation

◆ TrkCuts()

EgammaL1TkIsolation::TrkCuts::TrkCuts ( const edm::ParameterSet para)
explicit

Definition at line 55 of file EgammaL1TkIsolation.cc.

55  {
56  minPt = para.getParameter<double>("minPt");
57  auto sq = [](double val) { return val * val; };
58  minDR2 = sq(para.getParameter<double>("minDR"));
59  maxDR2 = sq(para.getParameter<double>("maxDR"));
60  minDEta = para.getParameter<double>("minDEta");
61  maxDZ = para.getParameter<double>("maxDZ");
62 }

References edm::ParameterSet::getParameter(), maxDR2, maxDZ, minDEta, minDR2, minPt, and heppy_batch::val.

Member Function Documentation

◆ makePSetDescription()

edm::ParameterSetDescription EgammaL1TkIsolation::TrkCuts::makePSetDescription ( )
static

Definition at line 64 of file EgammaL1TkIsolation.cc.

64  {
66  desc.add<double>("minPt", 2.0);
67  desc.add<double>("maxDR", 0.3);
68  desc.add<double>("minDR", 0.01);
69  desc.add<double>("minDEta", 0.003);
70  desc.add<double>("maxDZ", 0.7);
71  return desc;
72 }

References edm::ParameterSetDescription::add().

Referenced by EgammaL1TkIsolation::fillPSetDescription().

Member Data Documentation

◆ maxDR2

float EgammaL1TkIsolation::TrkCuts::maxDR2

Definition at line 41 of file EgammaL1TkIsolation.h.

Referenced by TrkCuts().

◆ maxDZ

float EgammaL1TkIsolation::TrkCuts::maxDZ

Definition at line 43 of file EgammaL1TkIsolation.h.

Referenced by TrkCuts().

◆ minDEta

float EgammaL1TkIsolation::TrkCuts::minDEta

Definition at line 42 of file EgammaL1TkIsolation.h.

Referenced by TrkCuts().

◆ minDR2

float EgammaL1TkIsolation::TrkCuts::minDR2

Definition at line 40 of file EgammaL1TkIsolation.h.

Referenced by TrkCuts().

◆ minPt

float EgammaL1TkIsolation::TrkCuts::minPt

Definition at line 39 of file EgammaL1TkIsolation.h.

Referenced by TrkCuts().

edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
EgammaL1TkIsolation::TrkCuts::maxDR2
float maxDR2
Definition: EgammaL1TkIsolation.h:41
EgammaL1TkIsolation::TrkCuts::minDEta
float minDEta
Definition: EgammaL1TkIsolation.h:42
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
heppy_batch.val
val
Definition: heppy_batch.py:351
EgammaL1TkIsolation::TrkCuts::minPt
float minPt
Definition: EgammaL1TkIsolation.h:39
EgammaL1TkIsolation::TrkCuts::maxDZ
float maxDZ
Definition: EgammaL1TkIsolation.h:43
EgammaL1TkIsolation::TrkCuts::minDR2
float minDR2
Definition: EgammaL1TkIsolation.h:40