ATLAS Offline Software
xAODTauJetContainerCnv_v2.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 
16 {
17 }
18 
21  xAOD::TauJetContainer* newObj,
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_v2::transToPers"
45  << endmsg;
46  throw std::runtime_error( "Somebody called xAODTauJetContainerCnv_v2::"
47  "transToPers" );
48 
49  return;
50 }
xAODTauJetContainerCnv_v2.h
xAODTauJetContainerCnv_v2::transToPers
virtual void transToPers(const xAOD::TauJetContainer *, xAOD::TauJetContainer_v2 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition: xAODTauJetContainerCnv_v2.cxx:39
xAODTauJetContainerCnv_v2::xAODTauJetContainerCnv_v2
xAODTauJetContainerCnv_v2()
Default constructor.
Definition: xAODTauJetContainerCnv_v2.cxx:15
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
DataVector::clear
void clear()
Erase all the elements in the collection.
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
xAODTauJetContainerCnv_v2::persToTrans
virtual void persToTrans(const xAOD::TauJetContainer_v2 *oldObj, xAOD::TauJetContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Definition: xAODTauJetContainerCnv_v2.cxx:20