Skip to content

Commit 2b72589

Browse files
committed
fix
1 parent d31a6af commit 2b72589

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ struct OnTheFlyTracker {
132132
ConfigurableAxis axisLambdaMass{"axisLambdaMass", {200, 1.101f, 1.131f}, ""};
133133
ConfigurableAxis axisXiMass{"axisXiMass", {200, 1.22f, 1.42f}, ""};
134134

135+
ConfigurableAxis axisPtRes{"axisPtRes", {200, -0.4f, 0.4f}, "#Delta p_{T} / Reco p_{T}"};
135136
ConfigurableAxis axisDeltaPt{"axisDeltaPt", {200, -1.0f, +1.0f}, "#Delta p_{T}"};
136137
ConfigurableAxis axisDeltaEta{"axisDeltaEta", {200, -0.5f, +0.5f}, "#Delta #eta"};
137138

@@ -351,6 +352,12 @@ struct OnTheFlyTracker {
351352
histPointers.insert({histPath + "hMassXi", histos.add((histPath + "hMassXi").c_str(), "hMassXi", {kTH1D, {{axes.axisXiMass}}})});
352353
}
353354

355+
if (doExtraQA) {
356+
histPointers.insert({histPath + "h2dPtRes", histos.add((histPath + "h2dPtRes").c_str(), "h2dPtRes", {kTH2D, {{axes.axisMomentum, axes.axisPtRes}}})});
357+
histPointers.insert({histPath + "h2dDCAxy", histos.add((histPath + "h2dDCAxy").c_str(), "h2dDCAxy", {kTH2D, {{axes.axisMomentum, axes.axisDCA}}})});
358+
histPointers.insert({histPath + "h2dDCAz", histos.add((histPath + "h2dDCAz").c_str(), "h2dDCAz", {kTH2D, {{axes.axisMomentum, axes.axisDCA}}})});
359+
}
360+
354361
} // end config loop
355362
}
356363

@@ -372,8 +379,6 @@ struct OnTheFlyTracker {
372379
if (doExtraQA) {
373380
histos.add("h2dVerticesVsContributors", "h2dVerticesVsContributors", kTH2F, {axes.axisMultiplicity, axes.axisNVertices});
374381
histos.add("hRecoVsSimMultiplicity", "hRecoVsSimMultiplicity", kTH2F, {axes.axisMultiplicity, axes.axisMultiplicity});
375-
histos.add("h2dDCAxy", "h2dDCAxy", kTH2F, {axes.axisMomentum, axes.axisDCA});
376-
histos.add("h2dDCAz", "h2dDCAz", kTH2F, {axes.axisMomentum, axes.axisDCA});
377382

378383
histos.add("hSimTrackX", "hSimTrackX", kTH1F, {axes.axisX});
379384
histos.add("hRecoTrackX", "hRecoTrackX", kTH1F, {axes.axisX});
@@ -981,6 +986,7 @@ struct OnTheFlyTracker {
981986
getHist(TH1, histPath + "hPtReconstructedPr")->Fill(trackParCov.getPt());
982987

983988
if (doExtraQA) {
989+
getHist(TH2, histPath + "h2dPtRes")->Fill(trackParCov.getPt(), (trackParCov.getPt() - mcParticle.pt()) / trackParCov.getPt());
984990
histos.fill(HIST("hRecoTrackX"), trackParCov.getX());
985991
}
986992

@@ -1076,8 +1082,8 @@ struct OnTheFlyTracker {
10761082
dcaZ = dcaInfo.getZ();
10771083
}
10781084
if (doExtraQA && (!extraQAwithoutDecayDaughters || (extraQAwithoutDecayDaughters && !trackParCov.isDecayDau))) {
1079-
histos.fill(HIST("h2dDCAxy"), trackParametrization.getPt(), dcaXY * 1e+4); // in microns, please
1080-
histos.fill(HIST("h2dDCAz"), trackParametrization.getPt(), dcaZ * 1e+4); // in microns, please
1085+
getHist(TH2, histPath + "h2dDCAxy")->Fill(trackParametrization.getPt(), dcaXY * 1e+4);
1086+
getHist(TH2, histPath + "h2dDCAz")->Fill(trackParametrization.getPt(), dcaZ * 1e+4);
10811087
histos.fill(HIST("hTrackXatDCA"), trackParametrization.getX());
10821088
}
10831089
if (cascadeDecaySettings.doXiQA) {
@@ -1198,8 +1204,10 @@ struct OnTheFlyTracker {
11981204
}
11991205

12001206
// do bookkeeping of fastTracker tracking
1201-
histos.fill(HIST("hCovMatOK"), 0.0f, fastTracker[icfg]->GetCovMatNotOK());
1202-
histos.fill(HIST("hCovMatOK"), 1.0f, fastTracker[icfg]->GetCovMatOK());
1207+
if (enableSecondarySmearing) {
1208+
histos.fill(HIST("hCovMatOK"), 0.0f, fastTracker[icfg]->GetCovMatNotOK());
1209+
histos.fill(HIST("hCovMatOK"), 1.0f, fastTracker[icfg]->GetCovMatOK());
1210+
}
12031211
} // end process
12041212

12051213
void process(aod::McCollision const& mcCollision, aod::McParticles const& mcParticles)

0 commit comments

Comments
 (0)