Skip to content
Snippets Groups Projects
Commit c5a68b23 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'backCompat.TrkEventTPCnv-20170911' into 'master'

TrkEventTPCnv: Backwards compatibility fix for reading old data.

See merge request !4589
parents dec6b037 75d1a0ab
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,16 @@ void TrackSummaryCnv_p1::persToTrans( const Trk::TrackSummary_p1 *persObj, ...@@ -12,6 +12,16 @@ void TrackSummaryCnv_p1::persToTrans( const Trk::TrackSummary_p1 *persObj,
if (transObj->m_information.size() < Trk::numberOfTrackSummaryTypes) if (transObj->m_information.size() < Trk::numberOfTrackSummaryTypes)
transObj->m_information.resize(Trk::numberOfTrackSummaryTypes, transObj->m_information.resize(Trk::numberOfTrackSummaryTypes,
Trk::TrackSummary::SummaryTypeNotSet); Trk::TrackSummary::SummaryTypeNotSet);
if (persObj->m_information.size() <= Trk::numberOfInnermostPixelLayerHits) {
transObj->m_information[Trk::numberOfInnermostPixelLayerHits] =
transObj->m_information[Trk::numberOfBLayerHits];
}
if (persObj->m_information.size() <= Trk::numberOfInnermostPixelLayerSharedHits) {
transObj->m_information[Trk::numberOfInnermostPixelLayerSharedHits] =
transObj->m_information[Trk::numberOfBLayerSharedHits];
}
transObj->m_idHitPattern = persObj->m_idHitPattern; transObj->m_idHitPattern = persObj->m_idHitPattern;
transObj->m_eProbability = persObj->m_eProbability; transObj->m_eProbability = persObj->m_eProbability;
transObj->m_indetTrackSummary = createTransFromPStore( &m_indetSummaryCnv, persObj->m_indetTrackSummary, log ); transObj->m_indetTrackSummary = createTransFromPStore( &m_indetSummaryCnv, persObj->m_indetTrackSummary, log );
......
...@@ -61,6 +61,17 @@ void TrackSummaryCnv_p2::persToTrans( const Trk::TrackSummary_p2 *persObj, Trk:: ...@@ -61,6 +61,17 @@ void TrackSummaryCnv_p2::persToTrans( const Trk::TrackSummary_p2 *persObj, Trk::
transObj->m_information.resize(Trk::numberOfTrackSummaryTypes, transObj->m_information.resize(Trk::numberOfTrackSummaryTypes,
Trk::TrackSummary::SummaryTypeNotSet); Trk::TrackSummary::SummaryTypeNotSet);
if (persObj->m_information.size() <= Trk::numberOfInnermostPixelLayerHits) {
transObj->m_information[Trk::numberOfInnermostPixelLayerHits] =
transObj->m_information[Trk::numberOfBLayerHits];
}
if (persObj->m_information.size() <= Trk::numberOfInnermostPixelLayerSharedHits) {
transObj->m_information[Trk::numberOfInnermostPixelLayerSharedHits] =
transObj->m_information[Trk::numberOfBLayerSharedHits];
}
transObj->m_idHitPattern = persObj->m_idHitPattern; transObj->m_idHitPattern = persObj->m_idHitPattern;
transObj->m_eProbability = persObj->m_eProbability; transObj->m_eProbability = persObj->m_eProbability;
transObj->m_dedx = persObj->m_pixeldEdx; transObj->m_dedx = persObj->m_pixeldEdx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment