ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODMuonAthenaPool
src
xAODMuonAuxContainerCnv_v3.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// System include(s):
6
#include <stdexcept>
7
8
// Gaudi/Athena include(s):
9
#include "GaudiKernel/MsgStream.h"
10
11
// Core EDM include(s):
12
#include "
AthContainers/tools/copyAuxStoreThinned.h
"
13
14
// Local include(s):
15
#include "
xAODMuonAuxContainerCnv_v3.h
"
16
#include "
xAODMuon/MuonContainer.h
"
17
#include "
xAODMuon/versions/MuonContainer_v1.h
"
18
19
20
xAODMuonAuxContainerCnv_v3::xAODMuonAuxContainerCnv_v3
()
21
{
22
}
23
24
void
xAODMuonAuxContainerCnv_v3::
25
persToTrans
(
const
xAOD::MuonAuxContainer_v3
* oldObj,
26
xAOD::MuonAuxContainer
* newObj,
27
MsgStream&
/*log*/
)
const
{
28
29
// Clear the transient object:
30
newObj->
resize
( 0 );
31
32
// Copy the payload of the v1 object into the latest one by misusing
33
// the thinning code a bit...
34
SG::copyAuxStoreThinned
( *oldObj, *newObj,
nullptr
);
35
36
return
;
37
}
38
42
void
xAODMuonAuxContainerCnv_v3::
43
transToPers
(
const
xAOD::MuonAuxContainer
*,
44
xAOD::MuonAuxContainer_v3
*,
45
MsgStream& log )
const
{
46
47
log << MSG::ERROR
48
<<
"Somebody called xAODMuonAuxContainerCnv_v3::transToPers"
49
<<
endmsg
;
50
throw
std::runtime_error(
"Somebody called xAODMuonAuxContainerCnv_v3::"
51
"transToPers"
);
52
53
return
;
54
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
MuonContainer.h
MuonContainer_v1.h
xAODMuonAuxContainerCnv_v3::transToPers
virtual void transToPers(const xAOD::MuonAuxContainer *, xAOD::MuonAuxContainer_v3 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition
xAODMuonAuxContainerCnv_v3.cxx:43
xAODMuonAuxContainerCnv_v3::persToTrans
virtual void persToTrans(const xAOD::MuonAuxContainer_v3 *oldObj, xAOD::MuonAuxContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Definition
xAODMuonAuxContainerCnv_v3.cxx:25
xAODMuonAuxContainerCnv_v3::xAODMuonAuxContainerCnv_v3
xAODMuonAuxContainerCnv_v3()
Default constructor.
Definition
xAODMuonAuxContainerCnv_v3.cxx:20
xAOD::AuxContainerBase::resize
virtual bool resize(size_t size) override
Resize the arrays to a given size.
Definition
AuxContainerBase.cxx:530
xAOD::MuonAuxContainer_v3
Temporary container used until we have I/O for AuxStoreInternal.
Definition
MuonAuxContainer_v3.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::MuonAuxContainer
MuonAuxContainer_v5 MuonAuxContainer
Definition of the current Muon auxiliary container.
Definition
MuonAuxContainer.h:19
xAODMuonAuxContainerCnv_v3.h
Generated on
for ATLAS Offline Software by
1.17.0