Commit 6beceb23 authored by scott snyder's avatar scott snyder
Browse files

tauEventTPCnv: Fix backwards compatibility.

The previous change removing PanTau deleted a converted from the middle
of the list in a TL converter.  This breaks backwards compatibility!

Fix by replacing it with a dummy converter.
parent e5bf4809
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/// @file TauDetailsContainerCnv_tlp4.cxx
......@@ -11,12 +11,15 @@
TauDetailsContainerCnv_tlp4 :: TauDetailsContainerCnv_tlp4(){
addMainTPConverter();
// NEVER reorder this list, or delete an entry from the middle.
// That will break backwards compatibility!
addTPConverter(&m_recVertexCnv );
addTPConverter(&m_vertexCnv );
addTPConverter(&m_fitQualityCnv );
addTPConverter(&m_errorMatrixCnv );
addTPConverter(&m_tauCommonDetailsCnv );
addTPConverter(&m_tauCommonExtraDetailsCnv );
addTPConverter(&m_dummyCnv);
addTPConverter(&m_TauPi0ClusterCnv);
addTPConverter(&m_TauPi0CandidateCnv);
addTPConverter(&m_TauShotCnv);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/// @file TauDetailsContainerCnv_tlp4.h
......@@ -20,6 +20,7 @@
#include "tauEventTPCnv/TauPi0CandidateCnv_p1.h"
#include "tauEventTPCnv/TauPi0ClusterCnv_p1.h"
#include "tauEventTPCnv/TauShotCnv_p1.h"
#include "tauEventTPCnv/TauEventDummyCnv_px.h"
#include "TrkEventTPCnv/VxVertex/RecVertexCnv_p1.h"
#include "TrkEventTPCnv/VxVertex/VertexCnv_p1.h"
#include "TrkEventTPCnv/TrkEventPrimitives/FitQualityCnv_p1.h"
......@@ -47,6 +48,10 @@ protected:
///TauPi0Details Converter
TauPi0DetailsCnv_p2 m_TauPi0DetailsCnv;
///Dummy converter to take the place of the now-deleted PanTauDetailsCnv_p1.
///Needed to avoid changing the ordering of other converters.
TauEventDummyCnv_px m_dummyCnv;
///TauPi0Candidate Converter
TauPi0CandidateCnv_p1 m_TauPi0CandidateCnv;
......
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TAUEVENTTPCNV_TAUEVENTDUMMYCNV_PX_H
#define TAUEVENTTPCNV_TAUEVENTDUMMYCNV_PX_H
#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
class TauEventDummy {};
class TauEventDummyCnv_px : public T_AthenaPoolTPCnvBase<TauEventDummy, int>
{
public:
virtual void persToTrans( const int*, TauEventDummy *, MsgStream & ) {}
virtual void transToPers( const TauEventDummy*, int*, MsgStream & ) {}
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment