ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigEventAthenaPool
src
ElectronMuonTopoInfoContainerCnv.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
#include "
ElectronMuonTopoInfoContainerCnv.h
"
6
7
//createPersistent
8
ElectronMuonTopoInfoContainer_PERS
*
ElectronMuonTopoInfoContainerCnv::createPersistent
(
ElectronMuonTopoInfoContainer
*transObj)
9
{
10
MsgStream mlog(msgSvc(),
"ElectronMuonTopoInfoContainerConverter"
);
11
12
mlog << MSG::DEBUG <<
"ElectronMuonTopoInfoContainerCnv::createPersistent called"
<<
endmsg
;
13
14
ElectronMuonTopoInfoContainer_PERS
* p_emTopoCont =
m_converter
.createPersistent( transObj, mlog );
15
16
return
p_emTopoCont;
17
18
}
//end of create persistent method
19
20
//createTransient
21
ElectronMuonTopoInfoContainer
*
ElectronMuonTopoInfoContainerCnv::createTransient
(
const
Token
* token)
22
{
23
MsgStream mlog(msgSvc(),
"ElectronMuonTopoInfoContainerConverter"
);
24
25
mlog << MSG::DEBUG <<
"ElectronMuonTopoInfoContainerCnv::createTransient called"
<<
endmsg
;
26
27
static
const
Guid
p1_guid(
"0A775717-3FC9-4FF4-A18B-3F520B2D4DAC"
);
28
29
if
(
compareClassGuid
(token, p1_guid ) ){
30
std::unique_ptr< ElectronMuonTopoInfoContainer_p1 > col_vect(
poolReadObject< ElectronMuonTopoInfoContainer_p1 >
(token) );
31
return
m_converter
.createTransient( col_vect.get(), mlog ) ;
32
}
else
{
throw
std::runtime_error(
"Unsupported persistent version of ElectronMuonTopoInfoContainer"
); }
33
34
}
//end of create transient method
35
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
ElectronMuonTopoInfoContainerCnv.h
ElectronMuonTopoInfoContainer_PERS
ElectronMuonTopoInfoContainer_p1 ElectronMuonTopoInfoContainer_PERS
Definition
ElectronMuonTopoInfoContainerCnv.h:15
ElectronMuonTopoInfoContainerCnv::createPersistent
virtual ElectronMuonTopoInfoContainer_PERS * createPersistent(ElectronMuonTopoInfoContainer *transObj)
Definition
ElectronMuonTopoInfoContainerCnv.cxx:8
ElectronMuonTopoInfoContainerCnv::createTransient
virtual ElectronMuonTopoInfoContainer * createTransient(const Token *token)
Definition
ElectronMuonTopoInfoContainerCnv.cxx:21
ElectronMuonTopoInfoContainerCnv::m_converter
ElectronMuonTopoInfoContainerCnv_p1 m_converter
Definition
ElectronMuonTopoInfoContainerCnv.h:35
ElectronMuonTopoInfoContainer
Definition
ElectronMuonTopoInfoContainer.h:30
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
T_AthenaPoolCustomCnv< ElectronMuonTopoInfoContainer, ElectronMuonTopoInfoContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< ElectronMuonTopoInfoContainer, ElectronMuonTopoInfoContainer_PERS >::poolReadObject
P * poolReadObject(const Token *token)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
Generated on
for ATLAS Offline Software by
1.17.0