Skip to content

Commit 928f4b6

Browse files
authored
[PWGLF] Decay length of Mother. (#9036)
1 parent f1c9f58 commit 928f4b6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ struct tofSpectra {
340340
const AxisSpec phiAxis{200, 0, 7, "#it{#varphi} (rad)"};
341341
const AxisSpec dcaZAxis{binsOptions.binsDca, "DCA_{z} (cm)"};
342342
const AxisSpec lengthAxis{100, 0, 600, "Track length (cm)"};
343-
const AxisSpec decayLengthAxis{100, 0, 0.5, "Decay Length (cm)"};
343+
const AxisSpec decayLengthAxis{100, 0, 1.0, "Decay Length (cm)"};
344344

345345
if (enableTrackCutHistograms) {
346346
const AxisSpec chargeAxis{2, -2.f, 2.f, "Charge"};
@@ -1697,14 +1697,17 @@ struct tofSpectra {
16971697
if (motherPdgCode == 421) {
16981698
IsD0Mother = true;
16991699
}
1700-
if (charmOrigin == RecoDecay::OriginType::NonPrompt && ((motherPdgCode) / 1000 == 5 || (motherPdgCode) / 100 == 5)) {
1700+
if (charmOrigin == RecoDecay::OriginType::NonPrompt) {
17011701
IsBeautyMother = true;
1702+
std::cout << "Charm Origin for Beauty:" << charmOrigin << std::endl;
17021703
}
1703-
if (charmOrigin == RecoDecay::OriginType::Prompt && ((motherPdgCode) / 1000 == 4 || (motherPdgCode) / 100 == 4)) {
1704+
if (charmOrigin == RecoDecay::OriginType::Prompt) {
17041705
IsCharmMother = true;
1706+
std::cout << "Charm Origin for Charm:" << charmOrigin << std::endl;
17051707
}
1706-
if (!(motherPdgCode / 1000 == 4 || motherPdgCode / 100 == 4) && !(motherPdgCode / 1000 == 5 || motherPdgCode / 100 == 5)) {
1708+
if (charmOrigin == RecoDecay::OriginType::None) {
17071709
IsNotHFMother = true;
1710+
std::cout << "Charm Origin for NotHF:" << charmOrigin << std::endl;
17081711
}
17091712
}
17101713
}

0 commit comments

Comments
 (0)