ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTriggerAthenaPool
src
xAODEmTauRoIContainerCnv_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
6
7
// System include(s):
8
#include <stdexcept>
9
10
// Gaudi/Athena include(s):
11
#include "GaudiKernel/MsgStream.h"
12
13
// Local include(s):
14
#include "
xAODEmTauRoIContainerCnv_v1.h
"
15
17
#define MSGLVL MSG::DEBUG
18
20
#define ATH_MSG( MSG ) \
21
do { \
22
if( log.level() <= MSGLVL ) { \
23
log << MSGLVL << MSG << endmsg; \
24
} \
25
} while( 0 )
26
27
xAODEmTauRoIContainerCnv_v1::xAODEmTauRoIContainerCnv_v1
()
28
{
29
}
30
31
void
xAODEmTauRoIContainerCnv_v1::
32
persToTrans
(
const
xAOD::EmTauRoIContainer_v1
* oldObj,
33
xAOD::EmTauRoIContainer
* newObj,
34
MsgStream&
/*log*/
)
const
{
35
36
// Greet the user:
37
//ATH_MSG( "Converting xAOD::EmTauRoIContainer_v1 to current version..." );
38
39
// Clear the transient object:
40
newObj->
clear
();
41
42
// Simply fill the transient object with as many new objects as many we have
43
// in the persistent object:
44
for
(
size_t
i = 0; i < oldObj->
size
(); ++i ) {
45
newObj->
push_back
(
new
xAOD::EmTauRoI
() );
46
}
47
48
// Print what happened:
49
//ATH_MSG( "Converting xAOD::EmTauRoIContainer_v1 to current version [OK]" );
50
51
return
;
52
}
53
57
void
xAODEmTauRoIContainerCnv_v1::transToPers
(
const
xAOD::EmTauRoIContainer
*,
58
xAOD::EmTauRoIContainer_v1
*,
59
MsgStream& log )
const
{
60
61
log << MSG::ERROR
62
<<
"Somebody called xAODEmTauRoIContainerCnv_v1::transToPers"
63
<<
endmsg
;
64
throw
std::runtime_error(
"Somebody called xAODEmTauRoIContainerCnv_v1::"
65
"transToPers"
);
66
67
return
;
68
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
DataVector::clear
void clear()
Erase all the elements in the collection.
xAODEmTauRoIContainerCnv_v1::transToPers
virtual void transToPers(const xAOD::EmTauRoIContainer *, xAOD::EmTauRoIContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
Definition
xAODEmTauRoIContainerCnv_v1.cxx:57
xAODEmTauRoIContainerCnv_v1::xAODEmTauRoIContainerCnv_v1
xAODEmTauRoIContainerCnv_v1()
Default constructor.
Definition
xAODEmTauRoIContainerCnv_v1.cxx:27
xAODEmTauRoIContainerCnv_v1::persToTrans
virtual void persToTrans(const xAOD::EmTauRoIContainer_v1 *oldObj, xAOD::EmTauRoIContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
Definition
xAODEmTauRoIContainerCnv_v1.cxx:32
xAOD::EmTauRoIContainer
EmTauRoIContainer_v2 EmTauRoIContainer
Definition
EmTauRoIContainer.h:17
xAOD::EmTauRoIContainer_v1
DataVector< xAOD::EmTauRoI_v1 > EmTauRoIContainer_v1
Declare the em/tau RoI container type.
Definition
EmTauRoIContainer_v1.h:19
xAOD::EmTauRoI
EmTauRoI_v2 EmTauRoI
Definition
EmTauRoI.h:16
xAODEmTauRoIContainerCnv_v1.h
Generated on
for ATLAS Offline Software by
1.17.0