Skip to content

Migrate converter generation to Gaudi v30r2

In recent Gaudi versions the component declaration got a whole lot simpler and Gaudi v30r2 will drop the old macros (gaudi/Gaudi!420 (merged)). In particular:

  • DECLARE_FACTORY_ENTRIES is no longer needed (and with this there is no longer a separate footer needed for the _entries file)
  • _load and _entries.h files are no longer needed
  • Use DECLARE_CONVERTER to declare converter

Tested by recompiling all the relevant athena packages making use of poolcnv or sercnv.

Requires Gaudi!175 (merged) to be merged and used in master first to provide the DECLARE_CONVERTER macro

cc @leggett

Here is an example of the new (and only) "components file":

> cat Event/xAOD/xAODCoreAthenaPool/xAODCoreAthenaPoolPoolCnv_entries.cxx
// Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
//
// Skeleton file for the entries implementation file generated by
// atlas_add_poolcnv.
//

// Declaration of the components:
#include "xAODAuxInfoBaseCnv.h"
DECLARE_CONVERTER( xAODAuxInfoBaseCnv )
#include "xAODAuxContainerBaseCnv.h"
DECLARE_CONVERTER( xAODAuxContainerBaseCnv )
#include "xAODShallowAuxContainerCnv.h"
DECLARE_CONVERTER( xAODShallowAuxContainerCnv )
#include "xAODShallowAuxInfoCnv.h"
DECLARE_CONVERTER( xAODShallowAuxInfoCnv )
Edited by Frank Winklmeier

Merge request reports