ATLAS Offline Software
Loading...
Searching...
No Matches
TestBeam
TBEventAthenaPool
src
TBTailCatcherCnv.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
#include "
TBTailCatcherCnv.h
"
6
7
TBTailCatcher_PERS
*
TBTailCatcherCnv::createPersistent
(
TBTailCatcher
* transCont) {
8
MsgStream log(msgSvc(),
"TBTailCatcherConverter"
);
9
TBTailCatcher_PERS
*persObj =
m_TPConverter
.createPersistent( transCont, log );
10
log << MSG::DEBUG <<
"Success"
<<
endmsg
;
11
return
persObj;
12
}
13
14
TBTailCatcher
*
TBTailCatcherCnv::createTransient
() {
15
MsgStream log(msgSvc(),
"TBTailCatcherConverter"
);
16
static
const
pool::Guid
p1_guid(
"B304A3B8-5FC1-415D-AE97-E3E7B6769213"
);
// GUID of the persistent object
17
static
const
pool::Guid
p0_guid(
"7AA6F3C3-3FF2-4732-B0CB-4ECC32FEF06D"
);
// GUID of the transient object
18
if
(
compareClassGuid
(p1_guid) ) {
19
// using unique_ptr ensures deletion of the persistent object
20
std::unique_ptr< TBTailCatcher_p1 > col_vect(
poolReadObject< TBTailCatcher_p1 >
() );
21
return
m_TPConverter
.createTransient( col_vect.get(), log );
22
}
23
else
if
(
compareClassGuid
(p0_guid) ) {
24
// regular object from before TP separation, just return it
25
return
poolReadObject< TBTailCatcher >
();
26
}
27
throw
std::runtime_error(
"Unsupported persistent version of Data Collection"
);
28
}
29
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
TBTailCatcherCnv.h
TBTailCatcher_PERS
TBTailCatcher_p1 TBTailCatcher_PERS
Definition
TBTailCatcherCnv.h:20
TBTailCatcherCnv::m_TPConverter
TBTailCatcherCnv_p1 m_TPConverter
Definition
TBTailCatcherCnv.h:32
TBTailCatcherCnv::createTransient
virtual TBTailCatcher * createTransient()
Definition
TBTailCatcherCnv.cxx:14
TBTailCatcherCnv::createPersistent
virtual TBTailCatcher_PERS * createPersistent(TBTailCatcher *transCont)
Definition
TBTailCatcherCnv.cxx:7
TBTailCatcher
Definition
TBTailCatcher.h:25
T_AthenaPoolCustomCnv< TBTailCatcher, TBTailCatcher_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< TBTailCatcher, TBTailCatcher_PERS >::poolReadObject
P * poolReadObject()
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0