ATLAS Offline Software
Event
xAOD
xAODEventInfoAthenaPool
src
xAODEventAuxInfoCnv_v2.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).
4
#include "
xAODEventAuxInfoCnv_v2.h
"
5
#include "
MessageMacros.h
"
6
7
// Core EDM include(s):
8
#include "
AthContainers/tools/copyAuxStoreThinned.h
"
9
10
// System include(s).
11
#include <stdexcept>
12
13
void
xAODEventAuxInfoCnv_v2::persToTrans
(
const
xAOD::EventAuxInfo_v2
* oldObj,
14
xAOD::EventAuxInfo
* newObj,
15
MsgStream&
log
)
const
{
16
17
// Greet the user.
18
ATH_MSG
(
"Converting xAOD::EventAuxInfo_v2 to the current version..."
);
19
20
// Copy the payload of the v2 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_v2 to the current version... "
26
"[OK]"
);
27
return
;
28
}
29
30
void
xAODEventAuxInfoCnv_v2::transToPers
(
const
xAOD::EventAuxInfo
*,
31
xAOD::EventAuxInfo_v2
*,
32
MsgStream&
log
)
const
{
33
34
log
<< MSG::ERROR
35
<<
"Somebody called xAODEventAuxInfoCnv_v2::transToPers"
36
<<
endmsg
;
37
throw
std::runtime_error(
"Somebody called xAODEventAuxInfoCnv_v2::"
38
"transToPers"
);
39
return
;
40
}
SG::copyAuxStoreThinned
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore ©, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
ATH_MSG
#define ATH_MSG(lvl)
Definition:
AthMsgStreamMacros.h:38
xAODEventAuxInfoCnv_v2::transToPers
virtual void transToPers(const xAOD::EventAuxInfo *, xAOD::EventAuxInfo_v2 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition:
xAODEventAuxInfoCnv_v2.cxx:30
xAODEventAuxInfoCnv_v2::persToTrans
virtual void persToTrans(const xAOD::EventAuxInfo_v2 *oldObj, xAOD::EventAuxInfo *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Definition:
xAODEventAuxInfoCnv_v2.cxx:13
xAOD::EventAuxInfo_v3
Auxiliary information about the event.
Definition:
EventAuxInfo_v3.h:28
xAODEventAuxInfoCnv_v2.h
copyAuxStoreThinned.h
Helper to copy an aux store while applying thinning.
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
xAOD::EventAuxInfo_v2
Auxiliary information about the event.
Definition:
EventAuxInfo_v2.h:28
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
MessageMacros.h
Generated on Wed Jan 8 2025 21:21:37 for ATLAS Offline Software by
1.8.18