ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEventInfoAthenaPool
src
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).
4
#include "
xAODEventAuxInfoCnv_v1.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_v1::persToTrans
(
const
xAOD::EventAuxInfo_v1
* oldObj,
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
30
void
xAODEventAuxInfoCnv_v1::transToPers
(
const
xAOD::EventAuxInfo
*,
31
xAOD::EventAuxInfo_v1
*,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
ATH_MSG
#define ATH_MSG(lvl)
Definition
AthMsgStreamMacros.h:38
MessageMacros.h
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
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
xAOD::EventAuxInfo_v1
Auxiliary information about the event.
Definition
EventAuxInfo_v1.h:31
copyAuxStoreThinned.h
Helper to copy an aux store while applying thinning.
SG::copyAuxStoreThinned
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore ©, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
xAOD::EventAuxInfo
EventAuxInfo_v3 EventAuxInfo
Definition of the latest event auxiliary info version.
Definition
EventAuxInfo.h:15
xAODEventAuxInfoCnv_v1.h
Generated on
for ATLAS Offline Software by
1.17.0