CMS 3D CMS Logo

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

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 54 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(), HIPAlignmentAlgorithm_cfi::algoName, algosToReject, allowedQualities, edm::ParameterSet::getParameter(), maxDPtPt, maxDR2, maxDZ, minDEta, minDR2, minHits, minPixelHits, minPt, reco::TrackBase::qualityByName(), and heppy_batch::val.

6 {
7  minPt = para.getParameter<double>("minPt");
8  auto sq = [](double val){return val*val;};
9  minDR2 = sq(para.getParameter<double>("minDR"));
10  maxDR2 = sq(para.getParameter<double>("maxDR"));
11  minDEta = para.getParameter<double>("minDEta");
12  maxDZ = para.getParameter<double>("maxDZ");
13  minHits = para.getParameter<int>("minHits");
14  minPixelHits = para.getParameter<int>("minPixelHits");
15  maxDPtPt = para.getParameter<double>("maxDPtPt");
16 
17  auto qualNames = para.getParameter<std::vector<std::string> >("allowedQualities");
18  auto algoNames = para.getParameter<std::vector<std::string> >("algosToReject");
19 
20  for(auto& qualName : qualNames){
22  }
23  for(auto& algoName : algoNames){
25  }
26  std::sort(algosToReject.begin(),algosToReject.end());
27 
28 }
T getParameter(std::string const &) const
std::vector< reco::TrackBase::TrackQuality > allowedQualities
std::vector< reco::TrackBase::TrackAlgorithm > algosToReject
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:125
static TrackAlgorithm algoByName(const std::string &name)
Definition: TrackBase.cc:137

Member Function Documentation

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

Definition at line 30 of file EleTkIsolFromCands.cc.

References edm::ParameterSetDescription::add().

Referenced by EleTkIsolFromCands::pSetDescript().

31 {
33  desc.add<double>("minPt",1.0);
34  desc.add<double>("maxDR",0.3);
35  desc.add<double>("minDR",0.000);
36  desc.add<double>("minDEta",0.005);
37  desc.add<double>("maxDZ",0.1);
38  desc.add<double>("maxDPtPt",-1);
39  desc.add<int>("minHits",8);
40  desc.add<int>("minPixelHits",1);
41  desc.add<std::vector<std::string> >("allowedQualities");
42  desc.add<std::vector<std::string> >("algosToReject");
43  return desc;
44 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

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

Definition at line 64 of file EleTkIsolFromCands.h.

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

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

Definition at line 63 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDPtPt

Definition at line 62 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDR2

Definition at line 57 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDZ

Definition at line 59 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minDEta

Definition at line 58 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minDR2

Definition at line 56 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minHits

Definition at line 60 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minPixelHits

Definition at line 61 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minPt

Definition at line 55 of file EleTkIsolFromCands.h.

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