ATLAS Offline Software
Event
xAOD
xAODTriggerAthenaPool
src
xAODTriggerMenuAuxContainerCnv.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: xAODTriggerMenuAuxContainerCnv.cxx 664263 2015-04-30 22:29:56Z ssnyder $
6
7
// System include(s):
8
#include <stdexcept>
9
10
// Local include(s):
11
#include "
xAODTriggerMenuAuxContainerCnv.h
"
12
13
xAODTriggerMenuAuxContainerCnv::
14
xAODTriggerMenuAuxContainerCnv
( ISvcLocator* svcLoc )
15
:
xAODTriggerMenuAuxContainerCnvBase
( svcLoc ) {
16
17
}
18
19
xAOD::TriggerMenuAuxContainer
*
20
xAODTriggerMenuAuxContainerCnv::createTransientWithKey
(
const
std::string&
key
) {
21
22
std::unique_ptr<xAOD::TriggerMenuAuxContainer_v1>
obj
23
{
xAODTriggerMenuAuxContainerCnvBase::createTransientWithKey
(
key
) };
24
25
size_t
sz
=
obj
->smk.size();
26
27
// A little helper macro for bringing the detailed variables to the
28
// right size:
29
#define FIX_SIZE( NAME ) \
30
do { \
31
if( obj->NAME.size() < sz ) { \
32
obj->NAME.resize( sz ); \
33
ATH_MSG_VERBOSE( "Fixed the size of " << #NAME << " to " << sz ); \
34
} \
35
} while( 0 )
36
37
// Make sure that the detailed variables have the right size:
38
FIX_SIZE
( chainSignatureCounters );
39
FIX_SIZE
( chainSignatureLogics );
40
FIX_SIZE
( chainSignatureOutputTEs );
41
FIX_SIZE
( chainSignatureLabels );
42
43
FIX_SIZE
( sequenceInputTEs );
44
FIX_SIZE
( sequenceOutputTEs );
45
FIX_SIZE
( sequenceAlgorithms );
46
47
// We don't need the macro anymore:
48
#undef FIX_SIZE
49
50
// Return the "massaged" object:
51
return
obj
.release();
52
}
fitman.sz
sz
Definition:
fitman.py:527
T_AthenaPoolAuxContainerCnv::createTransientWithKey
virtual AUXSTORE * createTransientWithKey(const std::string &key) override
Read the persistent object and convert it to transient.
T_AthenaPoolAuxContainerCnv
Athena pool converter for aux store classes.
Definition:
T_AthenaPoolAuxContainerCnv.h:39
xAODTriggerMenuAuxContainerCnv.h
xAODTriggerMenuAuxContainerCnv::createTransientWithKey
virtual xAOD::TriggerMenuAuxContainer * createTransientWithKey(const std::string &key) override
Function reading in the object from the input file.
Definition:
xAODTriggerMenuAuxContainerCnv.cxx:20
FIX_SIZE
#define FIX_SIZE(NAME)
xAODTriggerMenuAuxContainerCnv::xAODTriggerMenuAuxContainerCnv
xAODTriggerMenuAuxContainerCnv(ISvcLocator *svcLoc)
Converter constructor.
Definition:
xAODTriggerMenuAuxContainerCnv.cxx:14
xAOD::TriggerMenuAuxContainer_v1
Auxiliary store object for TriggerMenuContainer_v1.
Definition:
TriggerMenuAuxContainer_v1.h:36
python.PyAthena.obj
obj
Definition:
PyAthena.py:132
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Thu Nov 7 2024 21:32:10 for ATLAS Offline Software by
1.8.18