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.

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

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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

Member Function Documentation

◆ makePSetDescription()

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

Definition at line 64 of file EgammaL1TkIsolation.cc.

References submitPVResolutionJobs::desc.

Referenced by EgammaL1TkIsolation::fillPSetDescription().

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 }

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().