Skip to content

Commit

Permalink
Update NucleiHistTask.cxx
Browse files Browse the repository at this point in the history
Added configurable to enable/disable isPhysicalPrimary in reconstructed MC
  • Loading branch information
RafRaf11 authored Jan 22, 2025
1 parent 127cea4 commit f55bdfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PWGLF/Tasks/Nuspex/NucleiHistTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ struct NucleiHistTask {
Configurable<bool> requireGoldenChi2{"requireGoldenChi2", false, "Enable the requirement of GoldenChi2"};
Configurable<bool> event_selection_sel8{"event_selection_sel8", true, "Enable sel8 event selection"};
Configurable<bool> event_selection_MC_sel8{"event_selection_MC_sel8", true, "Enable sel8 event selection in MC processing"};
Configurable<bool> require_PhysicalPrimary_MC_reco{"require_PhysicalPrimary_MC_reco", true, "Enable PhysicalPrimary selection in reconstructed MC processing"};
Configurable<bool> require_PhysicalPrimary_MC_gen{"require_PhysicalPrimary_MC_gen", true, "Enable PhysicalPrimary selection in generated MC processing"};
Configurable<bool> removeITSROFrameBorder{"removeITSROFrameBorder", false, "Remove TF border"};
Configurable<bool> removeNoSameBunchPileup{"removeNoSameBunchPileup", false, "Remove TF border"};
Expand Down Expand Up @@ -1285,7 +1286,7 @@ struct NucleiHistTask {
}
}

if (!particle.isPhysicalPrimary())
if (require_PhysicalPrimary_MC_reco && !particle.isPhysicalPrimary())
continue;
histTrackcuts_MC->AddBinContent(2);
TLorentzVector lorentzVector_particle_MC{};
Expand Down

0 comments on commit f55bdfd

Please sign in to comment.