Skip to content

Commit fdb3570

Browse files
author
nkaratze
committed
Fixed faulty logic
1 parent f3be396 commit fdb3570

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

PWGLF/Tasks/Strangeness/v0ptinvmassplots.cxx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct V0PtInvMassPlots {
9191
// Configurables switches for v0 selection
9292
Configurable<bool> doRapidityCut{"doRapidityCut", true, "Enable rapidity v0 selection"};
9393
Configurable<bool> doDaughterPseudorapidityCut{"doDaughterPseudorapidityCut", true, "Enable Daughter pseudorapidity v0 selection"};
94-
Configurable<bool> doisITSAfterburner{"doisITSAfterburner", true, "Enable ITS Afterburner"};
94+
Configurable<bool> doisNotITSAfterburner{"doisNotITSAfterburner", true, "Enable Tracks do not come from Afterburner"};
9595
Configurable<bool> doitsMinHits{"doitsMinHits", true, "Enable ITS Minimum hits"};
9696

9797
// Configurables switches for K0sh selection
@@ -228,7 +228,6 @@ struct V0PtInvMassPlots {
228228
rPtAnalysis.add("hNK0sh", "hNK0sh", {HistType::kTH1D, {{11, 0.f, 11.f}}});
229229
rPtAnalysis.add("hNLambda", "hNLambda", {HistType::kTH1D, {{11, 0.f, 11.f}}});
230230
rPtAnalysis.add("hNAntilambda", "hNAntilambda", {HistType::kTH1D, {{11, 0.f, 11.f}}});
231-
232231
rPtAnalysis.add("hVertexZRec", "hVertexZRec", {HistType::kTH1F, {vertexZAxis}});
233232
rPtAnalysis.add("hArmenterosPodolanskiPlot", "hArmenterosPodolanskiPlot", {HistType::kTH2F, {{armenterosasymAxis}, {armenterosQtAxis}}});
234233
rPtAnalysis.add("hV0EtaDaughters", "hV0EtaDaughters", {HistType::kTH1F, {{nBins, -1.2f, 1.2f}}});
@@ -334,47 +333,47 @@ struct V0PtInvMassPlots {
334333
{
335334
rPtAnalysis.fill(HIST("hNEvents"), 0.5);
336335
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(1, "All");
337-
if (!(collision.sel8() && dosel8)) {
336+
if (dosel8 && !collision.sel8()) {
338337
return false;
339338
}
340339
rPtAnalysis.fill(HIST("hNEvents"), 1.5);
341340
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(2, "sel 8");
342-
if (!(doNoTimeFrameBorder && collision.selection_bit(aod::evsel::kNoTimeFrameBorder))) {
341+
if (doNoTimeFrameBorder && collision.selection_bit(aod::evsel::kNoTimeFrameBorder)) {
343342
return false;
344343
}
345344
rPtAnalysis.fill(HIST("hNEvents"), 2.5);
346345
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(3, "NoTimeFrameBorder");
347-
if (!(doNoITSROFrameBorder && collision.selection_bit(aod::evsel::kNoITSROFrameBorder))) {
346+
if (doNoITSROFrameBorder && collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
348347
return false;
349348
}
350349
rPtAnalysis.fill(HIST("hNEvents"), 3.5);
351350
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(4, "NoITSROFrameBorder");
352-
if (!(doIsTriggerTVX && collision.selection_bit(aod::evsel::kIsTriggerTVX))) {
351+
if (doIsTriggerTVX && collision.selection_bit(aod::evsel::kIsTriggerTVX)) {
353352
return false;
354353
}
355354
rPtAnalysis.fill(HIST("hNEvents"), 4.5);
356355
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(5, "IsTriggerTVX");
357-
if (!(docutZVertex && std::abs(collision.posZ()) < cutZVertex)) {
356+
if (docutZVertex && std::abs(collision.posZ()) < cutZVertex) {
358357
return false;
359358
}
360359
rPtAnalysis.fill(HIST("hNEvents"), 5.5);
361360
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(6, "cutZVertex");
362-
if (!(doIsVertexTOFmatched && collision.selection_bit(aod::evsel::kIsVertexTOFmatched))) {
361+
if (doIsVertexTOFmatched && !collision.selection_bit(aod::evsel::kIsVertexTOFmatched)) {
363362
return false;
364363
}
365364
rPtAnalysis.fill(HIST("hNEvents"), 6.5);
366365
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(7, "IsVertexTOFmatched");
367-
if (!(doNoSameBunchPileup && collision.selection_bit(aod::evsel::kNoSameBunchPileup))) {
366+
if (doNoSameBunchPileup && collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
368367
return false;
369368
}
370369
rPtAnalysis.fill(HIST("hNEvents"), 7.5);
371370
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(8, "NoSameBunchPileup");
372-
if (!(doIsVertexITSTPC && collision.selection_bit(aod::evsel::kIsVertexITSTPC))) {
371+
if (doIsVertexITSTPC && collision.selection_bit(aod::evsel::kIsVertexITSTPC)) {
373372
return false;
374373
}
375374
rPtAnalysis.fill(HIST("hNEvents"), 8.5);
376375
rPtAnalysis.get<TH1>(HIST("hNEvents"))->GetXaxis()->SetBinLabel(9, "IsVertexITSTPC");
377-
if (!(doisInelGt0 && collision.isInelGt0())) {
376+
if (doisInelGt0 && collision.isInelGt0()) {
378377
return false;
379378
}
380379
rPtAnalysis.fill(HIST("hNEvents"), 9.5);
@@ -399,7 +398,7 @@ struct V0PtInvMassPlots {
399398
}
400399
rPtAnalysis.fill(HIST("hNV0s"), 1.5);
401400
rPtAnalysis.get<TH1>(HIST("hNV0s"))->GetXaxis()->SetBinLabel(2, "Dau Pseudorapidity");
402-
if (!doisITSAfterburner && (posDaughterTrack.isITSAfterburner() || negDaughterTrack.isITSAfterburner())) { // ITS After Burner on daughter tracks
401+
if (doisNotITSAfterburner && (posDaughterTrack.isITSAfterburner() || negDaughterTrack.isITSAfterburner())) { // ITS After Burner on daughter tracks
403402
return false;
404403
}
405404
rPtAnalysis.fill(HIST("hNV0s"), 2.5);
@@ -411,6 +410,7 @@ struct V0PtInvMassPlots {
411410
// Cut Plots
412411
rPtAnalysis.fill(HIST("hV0EtaDaughters"), v0.template posTrack_as<DaughterTracks>().eta());
413412
rPtAnalysis.fill(HIST("hV0EtaDaughters"), v0.template negTrack_as<DaughterTracks>().eta());
413+
rPtAnalysis.fill(HIST("hArmenterosPodolanskiPlot"), v0.alpha(), v0.qtarm());
414414
}
415415
return true;
416416
}
@@ -793,7 +793,6 @@ struct V0PtInvMassPlots {
793793
if (!acceptV0(v0)) { // V0 Selections
794794
continue;
795795
}
796-
rPtAnalysis.fill(HIST("hArmenterosPodolanskiPlot"), v0.alpha(), v0.qtarm());
797796
// kzero analysis
798797
if (kzeroAnalysis == true) {
799798
if (v0mcParticle.pdgCode() == kK0Short) { // kzero matched
@@ -918,7 +917,6 @@ struct V0PtInvMassPlots {
918917
if (!acceptV0(v0)) { // V0 Selection
919918
continue;
920919
}
921-
rPtAnalysis.fill(HIST("hArmenterosPodolanskiPlot"), v0.alpha(), v0.qtarm());
922920
// kzero analysis
923921
if (kzeroAnalysis == true) {
924922
if (!acceptK0sh(v0)) { // K0sh Selection

0 commit comments

Comments
 (0)