Skip to content

Commit 2e7a697

Browse files
authored
[PWGLF] Added condition for all generated events in MC for signal loss calcualtions (#15206)
1 parent 1722826 commit 2e7a697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/Tasks/Resonances/kstarqa.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ struct Kstarqa {
9191
Configurable<bool> isapplypTdepPIDTOF{"isapplypTdepPIDTOF", false, "Apply pT dependent PID for TOF"};
9292
Configurable<bool> isApplyParticleMID{"isApplyParticleMID", false, "Apply particle misidentification"};
9393
Configurable<bool> isApplyParticleMIDPtDep{"isApplyParticleMIDPtDep", false, "Apply pT dependent MID selection"};
94+
Configurable<bool> AllGenEvents{"AllGenEvents", false, "Fill all generated events in MC for signal loss calculations"};
9495

9596
Configurable<bool> checkVzEvSigLoss{"checkVzEvSigLoss", false, "Check Vz event signal loss"};
9697
Configurable<bool> isApplyDeepAngle{"isApplyDeepAngle", false, "Deep Angle cut"};
@@ -2761,7 +2762,7 @@ struct Kstarqa {
27612762

27622763
const auto evtReconstructedAndSelected = std::find(selectedEvents.begin(), selectedEvents.end(), mcCollision.globalIndex()) != selectedEvents.end();
27632764
hInvMass.fill(HIST("hAllGenCollisions"), multiplicity);
2764-
if (!evtReconstructedAndSelected) { // Check that the event is reconstructed and that the reconstructed events pass the selection
2765+
if (!selectionConfig.AllGenEvents && !evtReconstructedAndSelected) { // Check that the event is reconstructed and that the reconstructed events pass the selection
27652766
return;
27662767
}
27672768
double genMultiplicity = mcCollision.centFT0M();

0 commit comments

Comments
 (0)