ATLAS Offline Software
Event
xAOD
xAODBTaggingAthenaPool
src
xAODBTaggingTrigAuxContainerCnv.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: xAODBTaggingTrigAuxContainerCnv.cxx 705820 2015-11-04 14:54:05Z krasznaa $
6
7
// System include(s):
8
#include <exception>
9
10
// ROOT include(s):
11
#include <TClass.h>
12
13
// Gaudi/Athena include(s):
14
#include "
AthContainers/tools/copyThinned.h
"
15
16
// EDM include(s):
17
#include "
xAODBTagging/versions/BTaggingAuxContainer_v1.h
"
18
19
// Local include(s):
20
#include "
xAODBTaggingTrigAuxContainerCnv.h
"
21
#include "
xAODBTaggingTrigAuxContainerOfflineCnv_v1.h
"
22
23
24
#define LOAD_DICTIONARY( name ) do { TClass* cl = TClass::GetClass( name ); \
25
if( ( ! cl ) || ( ! cl->IsLoaded() ) ) { ATH_MSG_ERROR( "Couldn't load dictionary for type: " << name ); } } while(0)
26
27
28
xAOD::BTaggingTrigAuxContainer
*
29
xAODBTaggingTrigAuxContainerCnv::
30
createPersistentWithKey
(
xAOD::BTaggingTrigAuxContainer
* trans,
31
const
std::string&
key
)
32
{
33
// ??? Still needed?
34
std::once_flag
flag
;
35
std::call_once (
flag
,
36
[
this
] {
37
LOAD_DICTIONARY
(
"std::vector<std::vector<ElementLink<DataVector<xAOD::TrackParticle_v1> > > >"
);
38
});
39
40
// Create a copy of the container:
41
return
xAODBTaggingTrigAuxContainerCnvBase::createPersistentWithKey
(trans,
key
);
42
}
LOAD_DICTIONARY
#define LOAD_DICTIONARY(name)
Definition:
xAODBTaggingTrigAuxContainerCnv.cxx:24
xAOD::BTaggingTrigAuxContainer_v1
Temporary container used until we have I/O for AuxStoreInternal.
Definition:
BTaggingTrigAuxContainer_v1.h:36
BTaggingAuxContainer_v1.h
xAODBTaggingTrigAuxContainerCnv.h
xAODBTaggingTrigAuxContainerOfflineCnv_v1.h
master.flag
bool flag
Definition:
master.py:29
T_AthenaPoolAuxContainerCnv::createPersistentWithKey
virtual AUXSTORE * createPersistentWithKey(AUXSTORE *trans, const std::string &key) override
Convert a transient object to persistent form.
copyThinned.h
Helper to copy an object while applying thinning.
xAODBTaggingTrigAuxContainerCnv::createPersistentWithKey
virtual xAOD::BTaggingTrigAuxContainer * createPersistentWithKey(xAOD::BTaggingTrigAuxContainer *trans, const std::string &key) override
Function preparing the container to be written out.
Definition:
xAODBTaggingTrigAuxContainerCnv.cxx:30
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Tue Jul 2 2024 21:32:50 for ATLAS Offline Software by
1.8.18