Skip to content

Commit a5f1417

Browse files
authored
PWGCF:FemtoUniverse - D0/D0bar analysis update (#5541)
* PWGCF:FemtoUniverse - D0/D0bar analysis update * PWGCF:FemtoUniverse - fixing clang
1 parent fdaac3e commit a5f1417

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ struct femtoUniverseProducerTask {
246246
struct : o2::framework::ConfigurableGroup {
247247
Configurable<float> ConfD0D0barCandMaxY{"ConfD0D0barCandMaxY", -1., "max. cand. rapidity"};
248248
Configurable<float> ConfD0D0barCandEtaCut{"ConfD0D0barCandEtaCut", 0.8, "max. cand. pseudorapidity"};
249+
Configurable<bool> ConfStoreD0D0barWithinTheMassRange{"ConfStoreD0D0barWithinTheMassRange", false, "Switch to save D0/D0bar within declared inv. mass range"};
250+
Configurable<float> ConfStoreD0D0barInvMassLowLimit{"ConfStoreD0D0barInvMassLowLimit", 1.810, "Lower inv. mass limit of D0/D0bar candidate"};
251+
Configurable<float> ConfStoreD0D0barInvMassUpLimit{"ConfStoreD0D0barInvMassUpLimit", 1.922, "Upper inv. mass limit of D0/D0bar candidate"};
249252
} ConfD0Selection;
250253

251254
HfHelper hfHelper;
@@ -784,7 +787,7 @@ struct femtoUniverseProducerTask {
784787
continue;
785788
}
786789

787-
if (ConfD0Selection.ConfD0D0barCandEtaCut >= hfCand.eta()) {
790+
if (std::abs(hfCand.eta()) < ConfD0Selection.ConfD0D0barCandEtaCut) {
788791
continue;
789792
}
790793

@@ -815,6 +818,11 @@ struct femtoUniverseProducerTask {
815818
isD0D0bar = false;
816819
}
817820

821+
if (ConfD0Selection.ConfStoreD0D0barWithinTheMassRange) {
822+
if ((invMassD0 > ConfD0Selection.ConfStoreD0D0barInvMassLowLimit && invMassD0 < ConfD0Selection.ConfStoreD0D0barInvMassUpLimit) || (invMassD0bar > ConfD0Selection.ConfStoreD0D0barInvMassLowLimit && invMassD0bar < ConfD0Selection.ConfStoreD0D0barInvMassUpLimit))
823+
continue;
824+
}
825+
818826
if (isD0D0bar) {
819827
outputParts(outputCollision.lastIndex(),
820828
hfCand.ptProng0(),

0 commit comments

Comments
 (0)