Skip to content

Commit f3c8926

Browse files
committed
fix
1 parent 1460c0e commit f3c8926

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

@@ -349,6 +350,12 @@ struct OnTheFlyTracker {
349350
histPointers.insert({histPath + "hMassXi", histos.add((histPath + "hMassXi").c_str(), "hMassXi", {kTH1D, {{axes.axisXiMass}}})});
350351
}
351352

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

@@ -370,8 +377,6 @@ struct OnTheFlyTracker {
370377
if (doExtraQA) {
371378
histos.add("h2dVerticesVsContributors", "h2dVerticesVsContributors", kTH2F, {axes.axisMultiplicity, axes.axisNVertices});
372379
histos.add("hRecoVsSimMultiplicity", "hRecoVsSimMultiplicity", kTH2F, {axes.axisMultiplicity, axes.axisMultiplicity});
373-
histos.add("h2dDCAxy", "h2dDCAxy", kTH2F, {axes.axisMomentum, axes.axisDCA});
374-
histos.add("h2dDCAz", "h2dDCAz", kTH2F, {axes.axisMomentum, axes.axisDCA});
375380

376381
histos.add("hSimTrackX", "hSimTrackX", kTH1F, {axes.axisX});
377382
histos.add("hRecoTrackX", "hRecoTrackX", kTH1F, {axes.axisX});
@@ -978,6 +983,7 @@ struct OnTheFlyTracker {
978983
getHist(TH1, histPath + "hPtReconstructedPr")->Fill(trackParCov.getPt());
979984

980985
if (doExtraQA) {
986+
getHist(TH2, histPath + "h2dPtRes")->Fill(trackParCov.getPt(), (trackParCov.getPt() - mcParticle.pt()) / trackParCov.getPt());
981987
histos.fill(HIST("hRecoTrackX"), trackParCov.getX());
982988
}
983989

@@ -1073,8 +1079,8 @@ struct OnTheFlyTracker {
10731079
dcaZ = dcaInfo.getZ();
10741080
}
10751081
if (doExtraQA && (!extraQAwithoutDecayDaughters || (extraQAwithoutDecayDaughters && !trackParCov.isDecayDau))) {
1076-
histos.fill(HIST("h2dDCAxy"), trackParametrization.getPt(), dcaXY * 1e+4); // in microns, please
1077-
histos.fill(HIST("h2dDCAz"), trackParametrization.getPt(), dcaZ * 1e+4); // in microns, please
1082+
getHist(TH2, histPath + "h2dDCAxy")->Fill(trackParametrization.getPt(), dcaXY * 1e+4);
1083+
getHist(TH2, histPath + "h2dDCAz")->Fill(trackParametrization.getPt(), dcaZ * 1e+4);
10781084
histos.fill(HIST("hTrackXatDCA"), trackParametrization.getX());
10791085
}
10801086
if (cascadeDecaySettings.doXiQA) {
@@ -1195,8 +1201,10 @@ struct OnTheFlyTracker {
11951201
}
11961202

11971203
// do bookkeeping of fastTracker tracking
1198-
histos.fill(HIST("hCovMatOK"), 0.0f, fastTracker[icfg]->GetCovMatNotOK());
1199-
histos.fill(HIST("hCovMatOK"), 1.0f, fastTracker[icfg]->GetCovMatOK());
1204+
if (enableSecondarySmearing) {
1205+
histos.fill(HIST("hCovMatOK"), 0.0f, fastTracker[icfg]->GetCovMatNotOK());
1206+
histos.fill(HIST("hCovMatOK"), 1.0f, fastTracker[icfg]->GetCovMatOK());
1207+
}
12001208
} // end process
12011209

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

0 commit comments

Comments
 (0)