ATLAS Offline Software
Loading...
Searching...
No Matches
xAODJetAuxContainerCnv.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// Local include(s):
7
8#include <TClass.h>
9#include <mutex>
10
11
12#define LOAD_DICTIONARY( name ) do { TClass* cl = TClass::GetClass( name ); \
13 if( ( ! cl ) || ( ! cl->IsLoaded() ) ) { ATH_MSG_ERROR( "Couldn't load dictionary for type: " << name ); } } while(0)
14
15
19 const std::string& key )
20{
21#if !(defined(GENERATIONBASE) || defined(SIMULATIONBASE))
22 // ??? Still needed?
23 std::once_flag flag;
24 std::call_once (flag,
25 [this] {
26 LOAD_DICTIONARY( "ElementLink<DataVector<xAOD::MuonSegment_v1> >" );
27 LOAD_DICTIONARY( "std::vector<ElementLink<DataVector<xAOD::MuonSegment_v1> > >" );
28 LOAD_DICTIONARY( "std::vector<std::vector<ElementLink<DataVector<xAOD::MuonSegment_v1> > > >" );
29 LOAD_DICTIONARY( "std::vector<ElementLink<DataVector<xAOD::BTagging_v1> > >" );
30 });
31#endif //ifndef SIMULATIONBASE OR GENERATIONBASE
32 // Create a copy of the container:
34}
35
virtual xAOD::JetAuxContainer * createPersistentWithKey(xAOD::JetAuxContainer *trans, const std::string &key) override
virtual xAOD::JetAuxContainer * createPersistentWithKey(xAOD::JetAuxContainer *trans, const std::string &key) override
Function preparing the container to be written out.
JetAuxContainer_v1 JetAuxContainer
Definition of the current jet auxiliary container.
#define LOAD_DICTIONARY(name)