Skip to content

Commit 8efc74c

Browse files
committed
Fix tracker array handling
1 parent 9a841f5 commit 8efc74c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ struct OnTheFlyTracker {
585585

586586
double xi_gamma = 1 / std::sqrt(1 + (particle.p() * particle.p()) / (xi_mass * xi_mass));
587587
double xi_ctau = 4.91 * xi_gamma;
588-
double xi_rxyz = (-xi_ctau * log(1 - u));
588+
double xi_rxyz = (-xi_ctau * std::log(1 - u));
589589
float sna, csa;
590590
o2::math_utils::CircleXYf_t xi_circle;
591591
track.getCircleParams(magneticField, xi_circle, sna, csa);
@@ -610,7 +610,7 @@ struct OnTheFlyTracker {
610610
double la_gamma = 1 / std::sqrt(1 + (la.P() * la.P()) / (la_mass * la_mass));
611611
double la_ctau = 7.89 * la_gamma;
612612
std::vector<double> laDaughters = {pi_mass, pr_mass};
613-
double la_rxyz = (-la_ctau * log(1 - u));
613+
double la_rxyz = (-la_ctau * std::log(1 - u));
614614
laDecayVertex.push_back(xiDecayVertex[0] + la_rxyz * (xiDecay.GetDecay(0)->Px() / xiDecay.GetDecay(0)->P()));
615615
laDecayVertex.push_back(xiDecayVertex[1] + la_rxyz * (xiDecay.GetDecay(0)->Py() / xiDecay.GetDecay(0)->P()));
616616
laDecayVertex.push_back(xiDecayVertex[2] + la_rxyz * (xiDecay.GetDecay(0)->Pz() / xiDecay.GetDecay(0)->P()));
@@ -652,7 +652,7 @@ struct OnTheFlyTracker {
652652

653653
double v0_gamma = 1 / std::sqrt(1 + (particle.p() * particle.p()) / (v0_mass * v0_mass));
654654
double v0_ctau = ctau * v0_gamma;
655-
double v0_rxyz = (-v0_ctau * log(1 - u));
655+
double v0_rxyz = (-v0_ctau * std::log(1 - u));
656656
TLorentzVector v0(particle.px(), particle.py(), particle.pz(), particle.e());
657657

658658
v0DecayVertex.push_back(particle.vx() + v0_rxyz * (particle.px() / particle.p()));
@@ -1107,9 +1107,9 @@ struct OnTheFlyTracker {
11071107
nV0SiliconHits[i] = 0;
11081108
nV0TPCHits[i] = 0;
11091109
if (enableSecondarySmearing) {
1110-
nV0Hits[i] = fastTracker.FastTrack(v0DaughterTrackParCovsPerfect[i], v0DaughterTrackParCovsTracked[i], dNdEta);
1111-
nV0SiliconHits[i] = fastTracker.GetNSiliconPoints();
1112-
nV0TPCHits[i] = fastTracker.GetNGasPoints();
1110+
nV0Hits[i] = fastTracker[icfg]->FastTrack(v0DaughterTrackParCovsPerfect[i], v0DaughterTrackParCovsTracked[i], dNdEta);
1111+
nV0SiliconHits[i] = fastTracker[icfg]->GetNSiliconPoints();
1112+
nV0TPCHits[i] = fastTracker[icfg]->GetNGasPoints();
11131113

11141114
if (nV0Hits[i] < 0) { // QA
11151115
histos.fill(HIST("V0Building/hFastTrackerQA"), o2::math_utils::abs(nV0Hits[i]));
@@ -1120,8 +1120,8 @@ struct OnTheFlyTracker {
11201120
} else {
11211121
continue; // extra sure
11221122
}
1123-
for (uint32_t ih = 0; ih < fastTracker.GetNHits(); ih++) {
1124-
histos.fill(HIST("V0Building/hFastTrackerHits"), fastTracker.GetHitZ(ih), std::hypot(fastTracker.GetHitX(ih), fastTracker.GetHitY(ih)));
1123+
for (uint32_t ih = 0; ih < fastTracker[icfg]->GetNHits(); ih++) {
1124+
histos.fill(HIST("V0Building/hFastTrackerHits"), fastTracker[icfg]->GetHitZ(ih), std::hypot(fastTracker[icfg]->GetHitX(ih), fastTracker[icfg]->GetHitY(ih)));
11251125
}
11261126
} else {
11271127
isReco[i] = true;

0 commit comments

Comments
 (0)