ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTauJetContainerCnv_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// System include(s):
6#include <stdexcept>
7
8// Gaudi/Athena include(s):
9#include "GaudiKernel/MsgStream.h"
10
11// Local include(s):
13
14
18
22 MsgStream& /*log*/ ) const {
23
24 // Clear the transient object:
25 newObj->clear();
26
27 // Simply fill the transient object with as many new objects as many we have
28 // in the persistent object:
29 for( size_t i = 0; i < oldObj->size(); ++i ) {
30 newObj->push_back( new xAOD::TauJet() );
31 }
32
33 return;
34}
35
41 MsgStream& log ) const {
42
43 log << MSG::ERROR
44 << "Somebody called xAODTauJetContainerCnv_v1::transToPers"
45 << endmsg;
46 throw std::runtime_error( "Somebody called xAODTauJetContainerCnv_v1::"
47 "transToPers" );
48
49 return;
50}
#define endmsg
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
virtual void persToTrans(const xAOD::TauJetContainer_v1 *oldObj, xAOD::TauJetContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
virtual void transToPers(const xAOD::TauJetContainer *, xAOD::TauJetContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
xAODTauJetContainerCnv_v1()
Default constructor.
DataVector< xAOD::TauJet_v1 > TauJetContainer_v1
The container is a simple typedef for now.
TauJet_v3 TauJet
Definition of the current "tau version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".