CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::TrackAlgorithm
algosToReject
 
std::vector
< reco::TrackBase::TrackQuality
allowedQualities
 
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

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

Definition at line 5 of file EleTkIsolFromCands.cc.

References reco::TrackBase::algoByName(), algosToReject, allowedQualities, edm::ParameterSet::getParameter(), maxDPtPt, maxDR2, maxDZ, minDEta, minDR2, minHits, minPixelHits, minPt, reco::TrackBase::qualityByName(), and hgcalPerformanceValidation::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) {
23  algosToReject.push_back(reco::TrackBase::algoByName(algoName));
24  }
25  std::sort(algosToReject.begin(), algosToReject.end());
26 }
std::vector< reco::TrackBase::TrackQuality > allowedQualities
std::vector< reco::TrackBase::TrackAlgorithm > algosToReject
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:137

Member Function Documentation

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

Definition at line 28 of file EleTkIsolFromCands.cc.

References edm::ParameterSetDescription::add(), and 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 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

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

Definition at line 58 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().

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

Definition at line 57 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().

float EleTkIsolFromCands::TrkCuts::maxDPtPt

Definition at line 56 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().

float EleTkIsolFromCands::TrkCuts::maxDR2

Definition at line 51 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

float EleTkIsolFromCands::TrkCuts::maxDZ

Definition at line 53 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

float EleTkIsolFromCands::TrkCuts::minDEta

Definition at line 52 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

float EleTkIsolFromCands::TrkCuts::minDR2

Definition at line 50 of file EleTkIsolFromCands.h.

Referenced by TrkCuts().

float EleTkIsolFromCands::TrkCuts::minHits

Definition at line 54 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().

float EleTkIsolFromCands::TrkCuts::minPixelHits

Definition at line 55 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().

float EleTkIsolFromCands::TrkCuts::minPt

Definition at line 49 of file EleTkIsolFromCands.h.

Referenced by EleTkIsolFromCands::passTrackPreselection(), and TrkCuts().