Skip to content

Commit

Permalink
Merge pull request #43168 from fmanteca/CMSSW_13_2_X
Browse files Browse the repository at this point in the history
[13_2_X] Add minETA selection to HLT filter RecoTracker/DeDx/plugins/HLTDeDxFilter
  • Loading branch information
cmsbuild authored Nov 3, 2023
2 parents 594796d + 4a73d2b commit f89f56a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RecoTracker/DeDx/plugins/HLTDeDxFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ HLTDeDxFilter::HLTDeDxFilter(const edm::ParameterSet& iConfig) : HLTFilter(iConf
minDEDx_ = iConfig.getParameter<double>("minDEDx");
minPT_ = iConfig.getParameter<double>("minPT");
minNOM_ = iConfig.getParameter<double>("minNOM");
minETA_ = iConfig.getParameter<double>("minETA");
maxETA_ = iConfig.getParameter<double>("maxETA");
minNumValidHits_ = iConfig.getParameter<double>("minNumValidHits");
maxNHitMissIn_ = iConfig.getParameter<double>("maxNHitMissIn");
Expand Down Expand Up @@ -68,6 +69,7 @@ void HLTDeDxFilter::fillDescriptions(edm::ConfigurationDescriptions& description
desc.add<double>("minDEDx", 0.0);
desc.add<double>("minPT", 0.0);
desc.add<double>("minNOM", 0.0);
desc.add<double>("minETA", 0.0);
desc.add<double>("maxETA", 5.5);
desc.add<double>("minNumValidHits", 0);
desc.add<double>("maxNHitMissIn", 99);
Expand Down Expand Up @@ -128,8 +130,8 @@ bool HLTDeDxFilter::hltFilter(edm::Event& iEvent,
}
for (unsigned int i = 0; i < trackCollection.size(); i++) {
reco::TrackRef track = reco::TrackRef(trackCollectionHandle, i);
if (pt[i] > minPT_ && fabs(eta[i]) < maxETA_ && dEdxTrack[track].numberOfMeasurements() > minNOM_ &&
dEdxTrack[track].dEdx() > minDEDx_) {
if (pt[i] > minPT_ && std::abs(eta[i]) >= minETA_ && std::abs(eta[i]) < maxETA_ &&
dEdxTrack[track].numberOfMeasurements() > minNOM_ && dEdxTrack[track].dEdx() > minDEDx_) {
if (track->numberOfValidHits() < minNumValidHits_)
continue;
if (track->hitPattern().trackerLayersWithoutMeasurement(reco::HitPattern::MISSING_INNER_HITS) > maxNHitMissIn_)
Expand Down
1 change: 1 addition & 0 deletions RecoTracker/DeDx/plugins/HLTDeDxFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class HLTDeDxFilter : public HLTFilter {
double minDEDx_;
double minPT_;
double minNOM_;
double minETA_;
double maxETA_;
double minNumValidHits_;
double maxNHitMissIn_;
Expand Down

0 comments on commit f89f56a

Please sign in to comment.