Skip to content

Commit 270def9

Browse files
committed
add proper lifetime also to axesStd
1 parent bb3a0a5 commit 270def9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ struct HfTaskLc {
362362
}
363363
}
364364
if (storeProperLifetime) {
365-
for (const auto& axes : std::array<std::vector<AxisSpec>*, 2>{&axesGen, &axesWithBdt}) {
365+
for (const auto& axes : std::array<std::vector<AxisSpec>*, 3>{&axesWithBdt, &axesStd, &axesGen}) {
366366
if (!axes->empty()) {
367367
axes->push_back(thnAxisProperLifetime);
368368
}
@@ -585,6 +585,9 @@ struct HfTaskLc {
585585
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
586586
valuesToFill.push_back(occ);
587587
}
588+
if (storeProperLifetime) {
589+
valuesToFill.push_back(properLifetime);
590+
}
588591
registry.get<THnSparse>(HIST("hnLcVars"))->Fill(valuesToFill.data());
589592
}
590593
}
@@ -611,6 +614,9 @@ struct HfTaskLc {
611614
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
612615
valuesToFill.push_back(occ);
613616
}
617+
if (storeProperLifetime) {
618+
valuesToFill.push_back(properLifetime);
619+
}
614620
registry.get<THnSparse>(HIST("hnLcVars"))->Fill(valuesToFill.data());
615621
}
616622
}
@@ -802,6 +808,9 @@ struct HfTaskLc {
802808
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
803809
valuesToFill.push_back(occ);
804810
}
811+
if (storeProperLifetime) {
812+
valuesToFill.push_back(properLifetime);
813+
}
805814
registry.get<THnSparse>(HIST("hnLcVars"))->Fill(valuesToFill.data());
806815
}
807816
}
@@ -828,6 +837,9 @@ struct HfTaskLc {
828837
if (storeOccupancy && occEstimator != o2::hf_occupancy::OccupancyEstimator::None) {
829838
valuesToFill.push_back(occ);
830839
}
840+
if (storeProperLifetime) {
841+
valuesToFill.push_back(properLifetime);
842+
}
831843
registry.get<THnSparse>(HIST("hnLcVars"))->Fill(valuesToFill.data());
832844
}
833845
}

0 commit comments

Comments
 (0)