CMS 3D CMS Logo

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

#include <EleTkIsolFromCands.h>

Public Member Functions

 TrkCuts (const edm::ParameterSet &para)
 

Static Public Member Functions

static edm::ParameterSetDescription pSetDescript ()
 

Public Attributes

std::vector< reco::TrackBase::TrackAlgorithmalgosToReject
 
std::vector< reco::TrackBase::TrackQualityallowedQualities
 
float maxDPtPt
 
float maxDR2
 
float maxDZ
 
float minDEta
 
float minDR2
 
float minHits
 
float minPixelHits
 
float minPt
 

Detailed Description

Definition at line 48 of file EleTkIsolFromCands.h.

Constructor & Destructor Documentation

◆ TrkCuts()

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

Definition at line 5 of file EleTkIsolFromCands.cc.

5  {
6  minPt = para.getParameter<double>("minPt");
7  auto sq = [](double val) { return val * val; };
8  minDR2 = sq(para.getParameter<double>("minDR"));
9  maxDR2 = sq(para.getParameter<double>("maxDR"));
10  minDEta = para.getParameter<double>("minDEta");
11  maxDZ = para.getParameter<double>("maxDZ");
12  minHits = para.getParameter<int>("minHits");
13  minPixelHits = para.getParameter<int>("minPixelHits");
14  maxDPtPt = para.getParameter<double>("maxDPtPt");
15 
16  auto qualNames = para.getParameter<std::vector<std::string> >("allowedQualities");
17  auto algoNames = para.getParameter<std::vector<std::string> >("algosToReject");
18 
19  for (auto& qualName : qualNames) {
21  }
22  for (auto& algoName : algoNames) {
24  }
25  std::sort(algosToReject.begin(), algosToReject.end());
26 }

References reco::TrackBase::algoByName(), MillePedeAlignmentAlgorithm_cfi::algoName, algosToReject, allowedQualities, edm::ParameterSet::getParameter(), maxDPtPt, maxDR2, maxDZ, minDEta, minDR2, minHits, minPixelHits, minPt, reco::TrackBase::qualityByName(), jetUpdater_cfi::sort, and heppy_batch::val.

Member Function Documentation

◆ pSetDescript()

edm::ParameterSetDescription EleTkIsolFromCands::TrkCuts::pSetDescript ( )
static

Definition at line 28 of file EleTkIsolFromCands.cc.

28  {
30  desc.add<double>("minPt", 1.0);
31  desc.add<double>("maxDR", 0.3);
32  desc.add<double>("minDR", 0.000);
33  desc.add<double>("minDEta", 0.005);
34  desc.add<double>("maxDZ", 0.1);
35  desc.add<double>("maxDPtPt", -1);
36  desc.add<int>("minHits", 8);
37  desc.add<int>("minPixelHits", 1);
38  desc.add<std::vector<std::string> >("allowedQualities");
39  desc.add<std::vector<std::string> >("algosToReject");
40  return desc;
41 }

References submitPVResolutionJobs::desc.

Referenced by EleTkIsolFromCands::pSetDescript().

Member Data Documentation

◆ algosToReject

std::vector<reco::TrackBase::TrackAlgorithm> EleTkIsolFromCands::TrkCuts::algosToReject

Definition at line 58 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ allowedQualities

std::vector<reco::TrackBase::TrackQuality> EleTkIsolFromCands::TrkCuts::allowedQualities

Definition at line 57 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ maxDPtPt

float EleTkIsolFromCands::TrkCuts::maxDPtPt

Definition at line 56 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ maxDR2

float EleTkIsolFromCands::TrkCuts::maxDR2

Definition at line 51 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ maxDZ

float EleTkIsolFromCands::TrkCuts::maxDZ

Definition at line 53 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ minDEta

float EleTkIsolFromCands::TrkCuts::minDEta

Definition at line 52 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ minDR2

float EleTkIsolFromCands::TrkCuts::minDR2

Definition at line 50 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ minHits

float EleTkIsolFromCands::TrkCuts::minHits

Definition at line 54 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ minPixelHits

float EleTkIsolFromCands::TrkCuts::minPixelHits

Definition at line 55 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

◆ minPt

float EleTkIsolFromCands::TrkCuts::minPt

Definition at line 49 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

EleTkIsolFromCands::TrkCuts::maxDPtPt
float maxDPtPt
Definition: EleTkIsolFromCands.h:56
EleTkIsolFromCands::TrkCuts::minHits
float minHits
Definition: EleTkIsolFromCands.h:54
EleTkIsolFromCands::TrkCuts::allowedQualities
std::vector< reco::TrackBase::TrackQuality > allowedQualities
Definition: EleTkIsolFromCands.h:57
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
MillePedeAlignmentAlgorithm_cfi.algoName
algoName
Definition: MillePedeAlignmentAlgorithm_cfi.py:10
EleTkIsolFromCands::TrkCuts::maxDR2
float maxDR2
Definition: EleTkIsolFromCands.h:51
EleTkIsolFromCands::TrkCuts::minDR2
float minDR2
Definition: EleTkIsolFromCands.h:50
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
EleTkIsolFromCands::TrkCuts::minPt
float minPt
Definition: EleTkIsolFromCands.h:49
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
heppy_batch.val
val
Definition: heppy_batch.py:351
EleTkIsolFromCands::TrkCuts::algosToReject
std::vector< reco::TrackBase::TrackAlgorithm > algosToReject
Definition: EleTkIsolFromCands.h:58
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EleTkIsolFromCands::TrkCuts::maxDZ
float maxDZ
Definition: EleTkIsolFromCands.h:53
reco::TrackBase::algoByName
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:137
EleTkIsolFromCands::TrkCuts::minDEta
float minDEta
Definition: EleTkIsolFromCands.h:52
EleTkIsolFromCands::TrkCuts::minPixelHits
float minPixelHits
Definition: EleTkIsolFromCands.h:55