ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
EventShapes
EventShapeAthenaPool
src
EventShapeStoreCnv.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
6
#include "
EventShapeStoreCnv.h
"
7
#include "
EventShapeTPCnv/EventShapeStoreCnv_p1.h
"
8
#include "
EventShapeTPCnv/EventShapeStore_p1.h
"
9
10
EventShapeStore_PERS
*
EventShapeStoreCnv::createPersistent
(
EventShapeStore
* transObj)
11
{
12
MsgStream report( msgSvc(),
"EventShapeStoreConverter"
);
13
report << MSG::INFO <<
"Writing EventShapeStore_p1"
<<
endmsg
;
14
EventShapeStoreCnv_p1
TPconverter
;
15
EventShapeStore_PERS
*persObj =
TPconverter
.createPersistent( transObj, report );
16
17
return
persObj;
18
}
19
20
EventShapeStore
*
EventShapeStoreCnv::createTransient
()
21
{
22
static
const
pool::Guid
p1_guid(
"730C49D9-47C2-45D4-A755-1313F4A2ACB1"
);
23
if
(
compareClassGuid
(p1_guid) )
24
{
25
EventShapeStoreCnv_p1
TPconverter
;
26
// using unique_ptr ensures deletion of the persistent object
27
std::unique_ptr<EventShapeStore_p1> shapestore(
poolReadObject< EventShapeStore_p1 >
() );
28
MsgStream report( msgSvc(),
"EventShapeStoreCnv"
);
29
report << MSG::INFO <<
"Reading EventShapeStore_p1"
<<
endmsg
;
30
return
TPconverter
.createTransient( shapestore.get(), report );
31
}
32
throw
std::runtime_error(
"Unsupported persistent version of EventShapeStore"
);
33
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
EventShapeStoreCnv.h
EventShapeStore_PERS
EventShapeStore_p1 EventShapeStore_PERS
Definition
EventShapeStoreCnv.h:20
EventShapeStoreCnv_p1.h
EventShapeStoreCnv_p1
EventShapeStoreConverterBase< EventShapeStore_p1 > EventShapeStoreCnv_p1
Definition
EventShapeStoreCnv_p1.h:40
EventShapeStore_p1.h
TPconverter
static const LArAutoCorrSubsetCnv_p1 TPconverter
Definition
LArAutoCorrCompleteCnv.cxx:14
EventShapeStoreCnv::createPersistent
virtual EventShapeStore_PERS * createPersistent(EventShapeStore *transObj)
Definition
EventShapeStoreCnv.cxx:10
EventShapeStoreCnv::createTransient
virtual EventShapeStore * createTransient()
Definition
EventShapeStoreCnv.cxx:20
EventShapeStore
Definition
EventShapeStore.h:15
T_AthenaPoolCustomCnv< EventShapeStore, EventShapeStore_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< EventShapeStore, EventShapeStore_PERS >::poolReadObject
P * poolReadObject()
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0