Skip to content

Commit f3d6d5c

Browse files
authored
[PWGHF] Remove propagateTracksToVertex also for other HF creators (#14541)
1 parent b201b0b commit f3d6d5c

16 files changed

+12
-37
lines changed

PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ struct HfCandidateCreatorB0Reduced {
192192
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
193193
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
194194

195-
// propagate D and Pi to the B0 vertex
196-
df3.propagateTracksToVertex();
195+
// get D and Pi tracks (propagated to the B0 vertex if propagateToPCA==true)
197196
// track.getPxPyPzGlo(pVec) modifies pVec of track
198197
df3.getTrack(0).getPxPyPzGlo(pVecD0); // momentum of D at the B0 vertex
199198
df3.getTrack(1).getPxPyPzGlo(pVecSoftPion); // momentum of SoftPi at the B0 vertex
@@ -299,8 +298,7 @@ struct HfCandidateCreatorB0Reduced {
299298
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
300299
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
301300

302-
// propagate D and Pi to the B0 vertex
303-
df2.propagateTracksToVertex();
301+
// get D and Pi tracks (propagated to the B0 vertex if propagateToPCA==true)
304302
// track.getPxPyPzGlo(pVec) modifies pVec of track
305303
df2.getTrack(0).getPxPyPzGlo(pVecD); // momentum of D at the B0 vertex
306304
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the B0 vertex

PWGHF/D2H/TableProducer/candidateCreatorBToJpsiReduced.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ struct HfCandidateCreatorBToJpsiReduced {
238238
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
239239
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
240240

241-
// propagate Jpsi daugthers and K to the B+ vertex
242-
df3.propagateTracksToVertex();
241+
// get JPsi daughters and K tracks (propagated to the B+ vertex if propagateToPCA==true)
243242
// track.getPxPyPzGlo(pVec) modifies pVec of track
244243
df3.getTrack(0).getPxPyPzGlo(pVecDauPos); // momentum of positive Jpsi daughter at the B+ vertex
245244
df3.getTrack(1).getPxPyPzGlo(pVecDauNeg); // momentum of negative Jpsi daughter at the B+ vertex
@@ -309,8 +308,7 @@ struct HfCandidateCreatorBToJpsiReduced {
309308
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
310309
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
311310

312-
// propagate Jpsi and phi to the Bs vertex
313-
df4.propagateTracksToVertex();
311+
// get JPsi daughters and K tracks (propagated to the Bs vertex if propagateToPCA==true)
314312
// track.getPxPyPzGlo(pVec) modifies pVec of track
315313
df4.getTrack(0).getPxPyPzGlo(pVecDauPos); // momentum of Jpsi at the B+ vertex
316314
df4.getTrack(1).getPxPyPzGlo(pVecDauNeg); // momentum of Jpsi at the B+ vertex

PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ struct HfCandidateCreatorBplusReduced {
169169
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
170170
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
171171

172-
// propagate D0 and Pi to the B+ vertex
173-
df2.propagateTracksToVertex();
172+
// get D and Pi tracks (propagated to the B+ vertex if propagateToPCA==true)
174173
// track.getPxPyPzGlo(pVec) modifies pVec of track
175174
df2.getTrack(0).getPxPyPzGlo(pVecD0); // momentum of D0 at the B+ vertex
176175
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the B+ vertex

PWGHF/D2H/TableProducer/candidateCreatorBsReduced.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ struct HfCandidateCreatorBsReduced {
169169
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
170170
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
171171

172-
// propagate Ds and Pi to the Bs vertex
173-
df2.propagateTracksToVertex();
172+
// get Ds and Pi tracks (propagated to the B0 vertex if propagateToPCA==true)
174173
// track.getPxPyPzGlo(pVec) modifies pVec of track
175174
df2.getTrack(0).getPxPyPzGlo(pVecD); // momentum of Ds at the Bs vertex
176175
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the Bs vertex

PWGHF/D2H/TableProducer/candidateCreatorLbReduced.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ struct HfCandidateCreatorLbReduced {
189189
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]);
190190
registry.fill(HIST("hCovPVXX"), covMatrixPV[0]);
191191

192-
// propagate Lc and Pi to the Lb vertex
193-
df2.propagateTracksToVertex();
192+
// get Lc and Pi tracks (propagated to the Lb vertex if propagateToPCA==true)
194193
// track.getPxPyPzGlo(pVec) modifies pVec of track
195194
df2.getTrack(0).getPxPyPzGlo(pVecLc); // momentum of Lc at the Lb vertex
196195
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the Lb vertex

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ struct HfDataCreatorJpsiHadReduced {
881881
std::array<float, 3> pVecBPlus{}, pVec0{}, pVec1{}, pVec2{};
882882

883883
auto secondaryVertexBPlus = df3.getPCACandidate();
884-
df3.propagateTracksToVertex();
885884
df3.getTrack(0).getPxPyPzGlo(pVec0);
886885
df3.getTrack(1).getPxPyPzGlo(pVec1);
887886
df3.getTrack(2).getPxPyPzGlo(pVec2);
@@ -969,7 +968,6 @@ struct HfDataCreatorJpsiHadReduced {
969968
std::array<float, 3> pVecBS{}, pVec0{}, pVec1{}, pVecPhi{};
970969

971970
auto secondaryVertexBS = df4.getPCACandidate();
972-
df4.propagateTracksToVertex();
973971
df4.getTrack(0).getPxPyPzGlo(pVec0);
974972
df4.getTrack(1).getPxPyPzGlo(pVec1);
975973
df4.getTrack(2).getPxPyPzGlo(pVec2);

PWGHF/TableProducer/candidateCreatorB0.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ struct HfCandidateCreatorB0 {
345345
hCovSVXX->Fill(covMatrixPCA[0]);
346346
hCovPVXX->Fill(covMatrixPV[0]);
347347

348-
// propagate D and Pi to the B0 vertex
349-
df2.propagateTracksToVertex();
348+
// get D and Pi tracks (propagated to the B0 vertex if propagateToPCA==true)
350349
// track.getPxPyPzGlo(pVec) modifies pVec of track
351350
df2.getTrack(0).getPxPyPzGlo(pVecD); // momentum of D at the B0 vertex
352351
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the B0 vertex

PWGHF/TableProducer/candidateCreatorBplus.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ struct HfCandidateCreatorBplus {
326326
}
327327
hCandidatesB->Fill(SVFitting::FitOk);
328328

329-
dfB.propagateTracksToVertex(); // propagate the bachelor and D0 to the B+ vertex
329+
// get D and Pi tracks (propagated to the B+ vertex if propagateToPCA==true)
330330
trackD0.getPxPyPzGlo(pVecD0); // momentum of D0 at the B+ vertex
331331
trackParCovPi.getPxPyPzGlo(pVecBach); // momentum of pi+ at the B+ vertex
332332

PWGHF/TableProducer/candidateCreatorBs.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,7 @@ struct HfCandidateCreatorBs {
324324
auto chi2PCA = df2.getChi2AtPCACandidate();
325325
auto covMatrixPCA = df2.calcPCACovMatrixFlat();
326326

327-
// propagate Ds and Pi to the Bs vertex
328-
df2.propagateTracksToVertex();
327+
// get Ds and Pi tracks (propagated to the Bs vertex if propagateToPCA==true)
329328
// track.getPxPyPzGlo(pVec) modifies pVec of track
330329
df2.getTrack(0).getPxPyPzGlo(pVecDs); // momentum of Ds at the Bs vertex
331330
df2.getTrack(1).getPxPyPzGlo(pVecPion); // momentum of Pi at the Bs vertex

PWGHF/TableProducer/candidateCreatorCascade.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ struct HfCandidateCreatorCascade {
277277
auto chi2PCA = df.getChi2AtPCACandidate();
278278
auto covMatrixPCA = df.calcPCACovMatrixFlat();
279279
registry.fill(HIST("hCovSVXX"), covMatrixPCA[0]); // FIXME: Calculation of errorDecayLength(XY) gives wrong values without this line.
280-
// do I have to call "df.propagateTracksToVertex();"?
281280
auto trackParVarV0 = df.getTrack(0);
282281
auto trackParVarBach = df.getTrack(1);
283282

0 commit comments

Comments
 (0)