Skip to content

Commit f104ad0

Browse files
authored
fix lacking default for not propagated tracks (AliceO2Group#833)
1 parent 932dbb9 commit f104ad0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Common/TableProducer/trackPropagation.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ struct TrackPropagation {
123123
initCCDB(bcs.begin());
124124

125125
gpu::gpustd::array<float, 2> dcaInfo;
126-
o2::dataformats::VertexBase vtx;
127126

128127
for (auto& track : tracks) {
128+
dcaInfo[0] = 999;
129+
dcaInfo[1] = 999;
129130
auto trackPar = getTrackPar(track);
130131
// Only propagate tracks which have passed the innermost wall of the TPC (e.g. skipping loopers etc). Others fill unpropagated.
131132
if (track.x() < o2::constants::geom::XTPCInnerRef + 0.1) {
@@ -153,8 +154,9 @@ struct TrackPropagation {
153154

154155
o2::dataformats::DCA dcaInfoCov;
155156
o2::dataformats::VertexBase vtx;
156-
for (auto& track : tracks) {
157157

158+
for (auto& track : tracks) {
159+
dcaInfoCov.set(999, 999, 999, 999, 999);
158160
auto trackParCov = getTrackParCov(track);
159161
// Only propagate tracks which have passed the innermost wall of the TPC (e.g. skipping loopers etc). Others fill unpropagated.
160162
if (track.x() < o2::constants::geom::XTPCInnerRef + 0.1) {

0 commit comments

Comments
 (0)