ATLAS Offline Software
Loading...
Searching...
No Matches
xAODCaloClusterAuxContainerCnv_v1.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
6// System include(s):
7#include <stdexcept>
8
9// Gaudi/Athena include(s):
10#include "GaudiKernel/MsgStream.h"
11
12// Core EDM include(s):
14
15// Local include(s):
19
20
24
28 MsgStream& /*log*/ ) const {
29
30 // Clear the transient object:
31 newObj->resize( 0 );
32
33 // Copy the payload of the v1 object into the latest one by misusing
34 // the thinning code a bit...
35 SG::copyAuxStoreThinned( *oldObj, *newObj, nullptr );
36
37 return;
38}
39
46 MsgStream& log ) const {
47
48 log << MSG::ERROR
49 << "Somebody called xAODCaloClusterAuxContainerCnv_v1::transToPers"
50 << endmsg;
51 throw std::runtime_error( "Somebody called xAODCaloClusterAuxContainerCnv_v1::"
52 "transToPers" );
53
54 return;
55}
#define endmsg
virtual void persToTrans(const xAOD::CaloClusterAuxContainer_v1 *oldObj, xAOD::CaloClusterAuxContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
virtual void transToPers(const xAOD::CaloClusterAuxContainer *, xAOD::CaloClusterAuxContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
Auxiliary container for calorimeter cluster containers.
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.
CaloClusterAuxContainer_v2 CaloClusterAuxContainer
Define the latest version of the calorimeter cluster auxiliary container.