Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13_2_X] Add minETA selection to HLT filter RecoTracker/DeDx/plugins/HLTDeDxFilter #43168

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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