Skip to content

Commit 16d2127

Browse files
committed
added minimum pT cut to calculate Zee mass
1 parent f10e45e commit 16d2127

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct HfTaskElectronWeakBoson {
5252
Configurable<float> dcaxyMax{"dcaxyMax", 2.0f, "mximum DCA xy"};
5353
Configurable<float> chi2ItsMax{"chi2ItsMax", 15.0f, "its chi2 cut"};
5454
Configurable<float> ptMin{"ptMin", 3.0f, "minimum pT cut"};
55+
Configurable<float> ptZeeMin{"ptZeeMin", 20.0f, "minimum pT cut for Zee"};
5556
Configurable<float> chi2TpcMax{"chi2TpcMax", 4.0f, "tpc chi2 cut"};
5657
Configurable<float> nclItsMin{"nclItsMin", 2.0f, "its # of cluster cut"};
5758
Configurable<float> nclTpcMin{"nclTpcMin", 100.0f, "tpc # if cluster cut"};
@@ -162,8 +163,6 @@ struct HfTaskElectronWeakBoson {
162163
registry.add("hIsolationTrack", "Isolation Track", kTH2F, {{axisE}, {axisIsoTrack}});
163164
registry.add("hInvMassZeeLs", "invariant mass for Z LS pair", kTH2F, {{axisPt}, {axisInvMassZ}});
164165
registry.add("hInvMassZeeUls", "invariant mass for Z ULS pair", kTH2F, {{axisPt}, {axisInvMassZ}});
165-
registry.add("hInvMassDyLs", "invariant mass for DY LS pair", kTH2F, {{axisPt}, {axisInvMassDy}});
166-
registry.add("hInvMassDyUls", "invariant mass for DY ULS pair", kTH2F, {{axisPt}, {axisInvMassDy}});
167166
}
168167
bool isIsolatedCluster(const o2::aod::EMCALCluster& cluster,
169168
const SelectedClusters& clusters)
@@ -269,7 +268,7 @@ struct HfTaskElectronWeakBoson {
269268

270269
float energyTrk = 0.0;
271270

272-
if (track.tpcNSigmaEl() > nsigTpcMinLose && track.tpcNSigmaEl() < nsigTpcMax) {
271+
if (track.tpcNSigmaEl() > nsigTpcMinLose && track.tpcNSigmaEl() < nsigTpcMax && track.pt() > ptZeeMin) {
273272
selectedElectronsAss.emplace_back(
274273
track.pt(),
275274
track.eta(),
@@ -351,14 +350,16 @@ struct HfTaskElectronWeakBoson {
351350
if (isIsolated) {
352351
registry.fill(HIST("hEopIsolation"), match.track_as<TrackEle>().pt(), eop);
353352

354-
selectedElectronsIso.emplace_back(
355-
match.track_as<TrackEle>().pt(),
356-
match.track_as<TrackEle>().eta(),
357-
match.track_as<TrackEle>().phi(),
358-
energyEmc,
359-
match.track_as<TrackEle>().sign());
360-
}
353+
if (match.track_as<TrackEle>().pt() > ptZeeMin) {
361354

355+
selectedElectronsIso.emplace_back(
356+
match.track_as<TrackEle>().pt(),
357+
match.track_as<TrackEle>().eta(),
358+
match.track_as<TrackEle>().phi(),
359+
energyEmc,
360+
match.track_as<TrackEle>().sign());
361+
}
362+
}
362363
if (isIsolatedTr) {
363364
registry.fill(HIST("hEopIsolationTr"), match.track_as<TrackEle>().pt(), eop);
364365
}
@@ -377,7 +378,7 @@ struct HfTaskElectronWeakBoson {
377378
} // end of track loop
378379

379380
// calculate inv. mass
380-
if (selectedElectronsIso.size() > 1) {
381+
if (selectedElectronsIso.size() > 0) {
381382
for (size_t i = 0; i < selectedElectronsIso.size(); i++) {
382383
const auto& e1 = selectedElectronsIso[i];
383384
for (size_t j = 0; j < selectedElectronsAss.size(); j++) {
@@ -390,14 +391,6 @@ struct HfTaskElectronWeakBoson {
390391
auto arr1 = RecoDecayPtEtaPhi::pVector(e1.pt, e1.eta, e1.phi);
391392
auto arr2 = RecoDecayPtEtaPhi::pVector(e2.pt, e2.eta, e2.phi);
392393
double mass = RecoDecay::m(std::array{arr1, arr2}, std::array{o2::constants::physics::MassElectron, o2::constants::physics::MassElectron});
393-
if (e1.sign() * e2.sign() > 0) {
394-
registry.fill(HIST("hInvMassDyLs"), ptIso, mass);
395-
} else {
396-
registry.fill(HIST("hInvMassDyUls"), ptIso, mass);
397-
}
398-
399-
if (ptAss < 20.0 && ptIso < 20.0)
400-
continue;
401394

402395
if (e1.sign() * e2.sign() > 0) {
403396
registry.fill(HIST("hInvMassZeeLs"), ptIso, mass);

0 commit comments

Comments
 (0)