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