Skip to content

Commit 81b1300

Browse files
authored
[PWGHF] Add EMC eta cut in taskElectronWeakBoson (#11665)
1 parent a832ad8 commit 81b1300

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ struct HfTaskElectronWeakBoson {
5252

5353
Configurable<float> vtxZ{"vtxZ", 10.f, ""};
5454

55-
Configurable<float> etaTrLow{"etaTrLow", -0.6f, "minimun track eta"};
56-
Configurable<float> etaTrUp{"etaTrUp", 0.6f, "maximum track eta"};
55+
Configurable<float> etaTrLow{"etaTrLow", -1.0f, "minimun track eta"};
56+
Configurable<float> etaTrUp{"etaTrUp", 1.0f, "maximum track eta"};
57+
Configurable<float> etaEmcAcc{"etaEmcAcc", 0.6f, "maximum track eta"};
5758
Configurable<float> dcaxyMax{"dcaxyMax", 2.0f, "mximum DCA xy"};
5859
Configurable<float> chi2ItsMax{"chi2ItsMax", 15.0f, "its chi2 cut"};
5960
Configurable<float> ptMin{"ptMin", 3.0f, "minimum pT cut"};
@@ -362,6 +363,8 @@ struct HfTaskElectronWeakBoson {
362363
// continue;
363364
if (track.phi() < phiEmcMin || track.phi() > phiEmcMax)
364365
continue;
366+
if (std::abs(track.eta()) > etaEmcAcc)
367+
continue;
365368
auto tracksofcluster = matchedtracks.sliceBy(perClusterMatchedTracks, track.globalIndex());
366369

367370
// LOGF(info, "Number of matched track: %d", tracksofcluster.size());
@@ -434,7 +437,7 @@ struct HfTaskElectronWeakBoson {
434437
if (eop > eopMin && eop < eopMax && trackCount < trackIsolationMax)
435438
isIsolatedTr = true;
436439

437-
if (isIsolated) {
440+
if (isIsolated && isIsolatedTr) {
438441
registry.fill(HIST("hEopIsolation"), match.track_as<TrackEle>().pt(), eop);
439442

440443
if (match.track_as<TrackEle>().pt() > ptZeeMin) {

0 commit comments

Comments
 (0)