ATLAS Offline Software
Toggle main menu visibility
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
(
const
Token
* token)
21
{
22
static
const
Guid
p1_guid(
"730C49D9-47C2-45D4-A755-1313F4A2ACB1"
);
23
if
(
compareClassGuid
(token, 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 >
(token) );
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:54
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(const Token *token)
Definition
EventShapeStoreCnv.cxx:20
EventShapeStore
Definition
EventShapeStore.h:15
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
T_AthenaPoolCustomCnv< EventShapeStore, EventShapeStore_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< EventShapeStore, EventShapeStore_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