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 14 of file EleTkIsolFromCands.h.

Constructor & Destructor Documentation

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

Definition at line 6 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.

7 {
8  minPt = para.getParameter<double>("minPt");
9  auto sq = [](double val){return val*val;};
10  minDR2 = sq(para.getParameter<double>("minDR"));
11  maxDR2 = sq(para.getParameter<double>("maxDR"));
12  minDEta = para.getParameter<double>("minDEta");
13  maxDZ = para.getParameter<double>("maxDZ");
14  minHits = para.getParameter<int>("minHits");
15  minPixelHits = para.getParameter<int>("minPixelHits");
16  maxDPtPt = para.getParameter<double>("maxDPtPt");
17 
18  auto qualNames = para.getParameter<std::vector<std::string> >("allowedQualities");
19  auto algoNames = para.getParameter<std::vector<std::string> >("algosToReject");
20 
21  for(auto& qualName : qualNames){
23  }
24  for(auto& algoName : algoNames){
26  }
27  std::sort(algosToReject.begin(),algosToReject.end());
28 
29 }
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 31 of file EleTkIsolFromCands.cc.

References edm::ParameterSetDescription::add().

Referenced by EleTkIsolFromCands::pSetDescript().

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

Member Data Documentation

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

Definition at line 24 of file EleTkIsolFromCands.h.

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

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

Definition at line 23 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDPtPt

Definition at line 22 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDR2

Definition at line 17 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::maxDZ

Definition at line 19 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minDEta

Definition at line 18 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minDR2

Definition at line 16 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minHits

Definition at line 20 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minPixelHits

Definition at line 21 of file EleTkIsolFromCands.h.

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

float EleTkIsolFromCands::TrkCuts::minPt

Definition at line 15 of file EleTkIsolFromCands.h.

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