ATLAS Offline Software
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
xAODJetTrigAuxContainerCnv::createPersistentWithKey
virtual xAOD::JetTrigAuxContainer * createPersistentWithKey(xAOD::JetTrigAuxContainer *trans, const std::string &key)
Function preparing the container to be written out.
Definition: xAODJetTrigAuxContainerCnv.cxx:22
xAOD::JetTrigAuxContainer_v2
Temporary container used until we have I/O for AuxStoreInternal.
Definition: JetTrigAuxContainer_v2.h:36
xAODJetTrigAuxContainerCnv.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.
LOAD_DICTIONARY
#define LOAD_DICTIONARY(name)
Definition: xAODJetTrigAuxContainerCnv.cxx:16
xAODJetTrigAuxContainerCnv_v1.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37