ATLAS Offline Software
Loading...
Searching...
No Matches
xAODEventAuxInfoCnv_v1.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3// Local include(s).
5#include "MessageMacros.h"
6
7// Core EDM include(s):
9
10// System include(s).
11#include <stdexcept>
12
14 xAOD::EventAuxInfo* newObj,
15 MsgStream& log ) const {
16
17 // Greet the user.
18 ATH_MSG( "Converting xAOD::EventAuxInfo_v1 to the current version..." );
19
20 // Copy the payload of the v1 object into the latest one by misusing
21 // the thinning code a bit...
22 SG::copyAuxStoreThinned( *oldObj, *newObj, nullptr );
23
24 // Print what happened:
25 ATH_MSG( "Converting xAOD::EventAuxInfo_v1 to the current version... "
26 "[OK]" );
27 return;
28}
29
32 MsgStream& log ) const {
33
34 log << MSG::ERROR
35 << "Somebody called xAODEventAuxInfoCnv_v1::transToPers"
36 << endmsg;
37 throw std::runtime_error( "Somebody called xAODEventAuxInfoCnv_v1::"
38 "transToPers" );
39 return;
40}
#define endmsg
#define ATH_MSG(lvl)
virtual void transToPers(const xAOD::EventAuxInfo *, xAOD::EventAuxInfo_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
virtual void persToTrans(const xAOD::EventAuxInfo_v1 *oldObj, xAOD::EventAuxInfo *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Auxiliary information about the event.
Helper to copy an aux store while applying thinning.
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore &copy, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
EventAuxInfo_v3 EventAuxInfo
Definition of the latest event auxiliary info version.