ATLAS Offline Software
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 }
SG::copyAuxStoreThinned
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore &copy, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
xAOD::EventAuxInfo_v1
Auxiliary information about the event.
Definition: EventAuxInfo_v1.h:31
xAODEventAuxInfoCnv_v1::transToPers
virtual void transToPers(const xAOD::EventAuxInfo *, xAOD::EventAuxInfo_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition: xAODEventAuxInfoCnv_v1.cxx:30
ATH_MSG
#define ATH_MSG(lvl)
Definition: AthMsgStreamMacros.h:38
xAOD::EventAuxInfo_v3
Auxiliary information about the event.
Definition: EventAuxInfo_v3.h:28
copyAuxStoreThinned.h
Helper to copy an aux store while applying thinning.
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
xAODEventAuxInfoCnv_v1::persToTrans
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.
Definition: xAODEventAuxInfoCnv_v1.cxx:13
xAODEventAuxInfoCnv_v1.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MessageMacros.h