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.

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

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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< reco::TrackBase::TrackQuality > allowedQualities
std::vector< reco::TrackBase::TrackAlgorithm > algosToReject
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:137

Member Function Documentation

◆ pSetDescript()

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

Definition at line 28 of file EleTkIsolFromCands.cc.

References submitPVResolutionJobs::desc.

Referenced by EleTkIsolFromCands::pSetDescript().

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 }

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