ATLAS Offline Software
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 
22 {
23 }
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 }
SG::copyAuxStoreThinned
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore &copy, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
xAODCaloClusterAuxContainerCnv_v1::transToPers
virtual void transToPers(const xAOD::CaloClusterAuxContainer *, xAOD::CaloClusterAuxContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition: xAODCaloClusterAuxContainerCnv_v1.cxx:44
xAODCaloClusterAuxContainerCnv_v1::xAODCaloClusterAuxContainerCnv_v1
xAODCaloClusterAuxContainerCnv_v1()
Default constructor.
Definition: xAODCaloClusterAuxContainerCnv_v1.cxx:21
xAOD::AuxContainerBase::resize
virtual bool resize(size_t size) override
Resize the arrays to a given size.
Definition: AuxContainerBase.cxx:485
copyAuxStoreThinned.h
Helper to copy an aux store while applying thinning.
xAOD::CaloClusterAuxContainer_v1
Auxiliary container for calorimeter cluster containers.
Definition: CaloClusterAuxContainer_v1.h:30
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
xAODCaloClusterAuxContainerCnv_v1.h
xAOD::CaloClusterAuxContainer_v2
Auxiliary container for calorimeter cluster containers.
Definition: CaloClusterAuxContainer_v2.h:30
xAODCaloClusterAuxContainerCnv_v1::persToTrans
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.
Definition: xAODCaloClusterAuxContainerCnv_v1.cxx:26
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloClusterContainer.h
CaloClusterContainer_v1.h