From 3e4fcd8485e13b055e3dee93cd179f1f95e8a88d Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Mon, 25 May 2026 21:49:01 +0200 Subject: [PATCH 1/3] updating event cut --- .../PseudorapidityDensityMFT.cxx | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx index c548d6a45fa..9a4e32e64e0 100644 --- a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx @@ -174,6 +174,7 @@ struct PseudorapidityDensityMFT { AllRecoCollisions = 1, HasMcCollision, RctMFT, + UseGoodItsLayersAll, UseContBestCollisionIndex, VzWindow, InelGt0, @@ -348,6 +349,7 @@ struct PseudorapidityDensityMFT { Configurable useEvSel{"useEvSel", true, "use event selection"}; Configurable useNoSameBunchPileup{"useNoSameBunchPileup", true, "reject collisions in case of pileup with another collision in the same foundBC"}; + Configurable useGoodItsLayersAll{"useGoodItsLayersAll", true, "all ITS layers are in a good state"}; Configurable useNoCollInRofStandard{"useNoCollInRofStandard", true, "Require evsel::kNoCollInRofStrict in processGenReco"}; Configurable useNoCollInRofStrict{"useNoCollInRofStrict", true, "Require evsel::kNoCollInRofStrict in processGenReco"}; Configurable useNoCollInTimeRangeStrict{"useNoCollInTimeRangeStrict", true, "Require evsel::kNoCollInTimeRangeStrict in processGenReco"}; @@ -511,6 +513,7 @@ struct PseudorapidityDensityMFT { auto* x = h->GetXaxis(); x->SetBinLabel(static_cast(GenRecoCutBin::AllRecoCollisions), "All reco collisions (loop entry)"); x->SetBinLabel(static_cast(GenRecoCutBin::RctMFT), "myChecker (cfg)"); + x->SetBinLabel(static_cast(GenRecoCutBin::UseGoodItsLayersAll), "kIsGoodItsLayersAll"); x->SetBinLabel(static_cast(GenRecoCutBin::UseContBestCollisionIndex), "useContBestcollisionIndex"); x->SetBinLabel(static_cast(GenRecoCutBin::HasMcCollision), "has_mcCollision()"); x->SetBinLabel(static_cast(GenRecoCutBin::VzWindow), "Vz window"); @@ -2175,12 +2178,6 @@ struct PseudorapidityDensityMFT { } fillGenRecoCut(step.bin); } - - if (useRctMFT && !myChecker(collision)) { - return false; - } - fillGenRecoCut(GenRecoCutBin::RctMFT); - return true; }; @@ -2193,6 +2190,17 @@ struct PseudorapidityDensityMFT { continue; } fillGenRecoCut(GenRecoCutBin::HasMcCollision); + + if (useRctMFT && !myChecker(collision)) { + continue; + } + fillGenRecoCut(GenRecoCutBin::RctMFT); + + if (useGoodItsLayersAll && + !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { + continue; + } + fillGenRecoCut(GenRecoCutBin::UseGoodItsLayersAll); registry.fill(HIST("Purity/reco/CollisionNumContrib"), collision.numContrib()); @@ -2486,6 +2494,12 @@ struct PseudorapidityDensityMFT { continue; } fillGenRecoCut(GenRecoCutBin::RctMFT); + + if (useGoodItsLayersAll && + !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { + continue; + } + fillGenRecoCut(GenRecoCutBin::UseGoodItsLayersAll); registry.fill(HIST("Purity/reco/CollisionNumContrib"), collision.numContrib()); From 7382b801f1b476d0ece21ddbb41ff64b4b83afb6 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 25 May 2026 19:50:25 +0000 Subject: [PATCH 2/3] Please consider the following formatting changes --- .../GlobalEventProperties/PseudorapidityDensityMFT.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx index 9a4e32e64e0..b2feaa92824 100644 --- a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx @@ -2190,14 +2190,14 @@ struct PseudorapidityDensityMFT { continue; } fillGenRecoCut(GenRecoCutBin::HasMcCollision); - + if (useRctMFT && !myChecker(collision)) { continue; } fillGenRecoCut(GenRecoCutBin::RctMFT); - + if (useGoodItsLayersAll && - !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { + !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { continue; } fillGenRecoCut(GenRecoCutBin::UseGoodItsLayersAll); @@ -2494,9 +2494,9 @@ struct PseudorapidityDensityMFT { continue; } fillGenRecoCut(GenRecoCutBin::RctMFT); - + if (useGoodItsLayersAll && - !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { + !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { continue; } fillGenRecoCut(GenRecoCutBin::UseGoodItsLayersAll); From ba82f373879d8a5c404b5006278974cc664fee3f Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Tue, 26 May 2026 16:09:26 +0200 Subject: [PATCH 3/3] New event Cut --- PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx index b2feaa92824..c765142dbac 100644 --- a/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/PseudorapidityDensityMFT.cxx @@ -119,7 +119,6 @@ static constexpr TrackSelectionFlags::flagtype TrackSelectionDca = // using MFTTracksLabeled = soa::Join; // replace your alias with the extension included: using FullBCs = soa::Join; - using MFTTracksLabeled = soa::Join