ATLAS Offline Software
Loading...
Searching...
No Matches
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):
12
18
21
22 std::unique_ptr<xAOD::TriggerMenuAuxContainer_v1> obj
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}
static Double_t sz
virtual xAOD::TriggerMenuAuxContainer * createTransientWithKey(const std::string &key) override
xAODTriggerMenuAuxContainerCnv(ISvcLocator *svcLoc)
Converter constructor.
virtual xAOD::TriggerMenuAuxContainer * createTransientWithKey(const std::string &key) override
Function reading in the object from the input file.
TriggerMenuAuxContainer_v1 TriggerMenuAuxContainer
Define the latest version of the trigger menu auxiliary container class.
#define FIX_SIZE(NAME)
T_AthenaPoolAuxContainerCnv< xAOD::TriggerMenuAuxContainer > xAODTriggerMenuAuxContainerCnvBase
Base class for the converter.