ATLAS Offline Software
Loading...
Searching...
No Matches
xAODJetTrigAuxContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: xAODJetAuxContainerCnv.cxx 588765 2014-03-21 13:30:28Z delsart $
6
7#if !(defined(GENERATIONBASE) || defined(SIMULATIONBASE))
8
9// Local include(s):
12
13#include <TClass.h>
14#include <mutex>
15
16#define LOAD_DICTIONARY( name ) do { TClass* cl = TClass::GetClass( name ); \
17 if( ( ! cl ) || ( ! cl->IsLoaded() ) ) { ATH_MSG_ERROR( "Couldn't load dictionary for type: " << name ); } } while(0)
18
19
23 const std::string& key )
24{
25 // ??? Still needed?
26 std::once_flag flag;
27 std::call_once (flag,
28 [this] {
29 LOAD_DICTIONARY( "ElementLink<DataVector<xAOD::MuonSegment_v1> >" );
30 LOAD_DICTIONARY( "std::vector<ElementLink<DataVector<xAOD::MuonSegment_v1> > >" );
31 LOAD_DICTIONARY( "std::vector<std::vector<ElementLink<DataVector<xAOD::MuonSegment_v1> > > >" );
32 LOAD_DICTIONARY( "std::vector<ElementLink<DataVector<xAOD::BTagging_v1> > >" );
33 });
34
35 // Create a copy of the container:
37}
38
39
40#endif // NOT SIMULATIONBASE OR GENERATIONBASE
virtual xAOD::JetTrigAuxContainer * createPersistentWithKey(xAOD::JetTrigAuxContainer *trans, const std::string &key) override
virtual xAOD::JetTrigAuxContainer * createPersistentWithKey(xAOD::JetTrigAuxContainer *trans, const std::string &key)
Function preparing the container to be written out.
JetTrigAuxContainer_v2 JetTrigAuxContainer
Definition of the current jet trigger auxiliary container.
#define LOAD_DICTIONARY(name)