Skip to content

Commit

Permalink
[PWGLF] LightNucleiTask - Add multiplicity selection (AliceO2Group#3504)
Browse files Browse the repository at this point in the history
* [PWGLF] LightNucleiTask - Add multiplicity selection

* [PWGLF] LightNucleiTask - Fix build issues
  • Loading branch information
giovannimalfattore authored Sep 23, 2023
1 parent c049190 commit 656b299
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions PWGLF/Tasks/LFNucleiBATask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ struct LFNucleiBATask {
Configurable<bool> enableHe{"enableHe", true, "Flag to enable helium-3 analysis."};
Configurable<bool> enableAl{"enableAl", true, "Flag to enable alpha analysis."};

// Set the multiplity event limits
Configurable<float> cfgLowMultCut{"cfgLowMultCut", 0.0f, "Accepted multiplicity percentage lower limit"};
Configurable<float> cfgHighMultCut{"cfgHighMultCut", 100.0f, "Accepted multiplicity percentage higher limit"};

// Set the z-vertex event cut limits
Configurable<float> cfgHighCutVertex{"cfgHighCutVertex", 10.0f, "Accepted z-vertex upper limit"};
Configurable<float> cfgLowCutVertex{"cfgLowCutVertex", -10.0f, "Accepted z-vertex lower limit"};
Expand Down Expand Up @@ -1263,11 +1267,19 @@ struct LFNucleiBATask {
if (!event.sel8()) {
return;
}
if (event.centFT0M() < cfgLowMultCut || event.centFT0M() > cfgHighMultCut) {
return;
}
// if (event.centFV0M() < cfgLowMultCut || event.centFV0M() > cfgHighMultCut) {
// return;
// }
if (event.posZ() < cfgLowCutVertex || event.posZ() > cfgHighCutVertex) {
return;
}
}

if (event.centFT0M() < cfgLowMultCut || event.centFT0M() > cfgHighMultCut)
return;
if (event.posZ() < cfgLowCutVertex || event.posZ() > cfgHighCutVertex)
return;

Expand Down

0 comments on commit 656b299

Please sign in to comment.