Skip to content

Commit 3dbecd7

Browse files
Add QA histogram
1 parent b29a66c commit 3dbecd7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Common/Tools/TrackPropagationModule.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ class TrackPropagationModule
208208
registry.template add<TH2>("hDCAxyVsPtMC", "hDCAxyVsPtMC", o2::framework::HistType::kTH2F, {axisBinsDCA, cGroup.axisPtQA});
209209
registry.template add<TH2>("hDCAzVsPtRec", "hDCAzVsPtRec", o2::framework::HistType::kTH2F, {axisBinsDCA, cGroup.axisPtQA});
210210
registry.template add<TH2>("hDCAzVsPtMC", "hDCAzVsPtMC", o2::framework::HistType::kTH2F, {axisBinsDCA, cGroup.axisPtQA});
211+
212+
registry.template add<TH1>("hPropagation", "hPropagation", o2::framework::HistType::kTH1D, {{3, 0.f, 3.f}});
213+
registry.template get<TH1>(HIST("hPropagation"))->GetXaxis()->SetBinLabel(1, "All");
214+
registry.template get<TH1>(HIST("hPropagation"))->GetXaxis()->SetBinLabel(2, Form("TracksIU, x < %g cm", cGroup.minPropagationRadius.value));
215+
registry.template get<TH1>(HIST("hPropagation"))->GetXaxis()->SetBinLabel(3, "Propagation OK");
211216
}
212217

213218
template <bool isMc, typename TConfigurableGroup, typename TCCDBLoader, typename TCollisions, typename TTracks, typename TOutputGroup, typename THistoRegistry>
@@ -279,6 +284,7 @@ class TrackPropagationModule
279284
// std::array<float, 3> trackPxPyPzTuned = {0.0, 0.0, 0.0};
280285
double q2OverPtNew = -9999.;
281286
// Only propagate tracks which have passed the innermost wall of the TPC (e.g. skipping loopers etc). Others fill unpropagated.
287+
registry.fill(HIST("hPropagation"), 0.5);
282288
if (track.trackType() == o2::aod::track::TrackIU && track.x() < cGroup.minPropagationRadius.value) {
283289
if (fillTracksCov) {
284290
if constexpr (isMc) { // checking MC and fillCovMat block begins
@@ -295,7 +301,8 @@ class TrackPropagationModule
295301
} // MC and fillCovMat block ends
296302
}
297303
bool isPropagationOK = true;
298-
304+
registry.fill(HIST("hPropagation"), 1.5);
305+
299306
if (track.has_collision()) {
300307
auto const& collision = collisions.rawIteratorAt(track.collisionId());
301308
if (fillTracksCov) {
@@ -316,6 +323,7 @@ class TrackPropagationModule
316323
}
317324
if (isPropagationOK) {
318325
trackType = o2::aod::track::Track;
326+
registry.fill(HIST("hPropagation"), 2.5);
319327
}
320328
// filling some QA histograms for track tuner test purpose
321329
if (fillTracksCov) {

0 commit comments

Comments
 (0)