ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ALFA
ALFA_EventCnv
ALFA_EventAthenaPool
src
ALFA_LocRecEvCollectionCnv.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 "
ALFA_EventTPCnv/ALFA_LocRecEvCollectionCnv_p1.h
"
6
#include "
ALFA_LocRecEvCollectionCnv.h
"
7
8
9
10
ALFA_LocRecEvCollection_PERS
*
ALFA_LocRecEvCollectionCnv::createPersistent
(
ALFA_LocRecEvCollection
* transCont) {
11
MsgStream mlog(msgSvc(),
"ALFA_LocRecEvCollectionConverter"
);
12
ALFA_LocRecEvCollectionCnv_p1
TPConverter
;
13
ALFA_LocRecEvCollection_PERS
*persObj =
TPConverter
.createPersistent( transCont, mlog );
14
return
persObj;
15
}
16
17
18
ALFA_LocRecEvCollection
*
ALFA_LocRecEvCollectionCnv::createTransient
(
const
Token
* token) {
19
MsgStream mlog(msgSvc(),
"ALFA_LocRecEvCollectionConverter"
);
20
21
ALFA_LocRecEvCollectionCnv_p1
TPConverter_p1;
22
23
ALFA_LocRecEvCollection
*trans_cont(
nullptr
);
// probably inicialization
24
static
const
Guid
p1_guid (
"C392157A-4519-44B5-A472-16D1F74F4CAD"
);
25
26
if
( this->
compareClassGuid
(token, p1_guid)) {
27
std::unique_ptr< ALFA_LocRecEvCollection_p1 > col_vect( this->
poolReadObject< ALFA_LocRecEvCollection_p1 >
(token) );
28
trans_cont = TPConverter_p1.
createTransient
( col_vect.get(), mlog );
29
}
else
{
30
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
31
}
32
return
trans_cont;
33
}
ALFA_LocRecEvCollectionCnv.h
ALFA_LocRecEvCollection_PERS
ALFA_LocRecEvCollection_p1 ALFA_LocRecEvCollection_PERS
Definition
ALFA_LocRecEvCollectionCnv.h:17
ALFA_LocRecEvCollectionCnv_p1.h
TPConverter
static const LVL1_ROICnv_p1 TPConverter
Definition
LVL1_ROICnv.cxx:12
ALFA_LocRecEvCollectionCnv_p1
Definition
ALFA_LocRecEvCollectionCnv_p1.h:14
ALFA_LocRecEvCollectionCnv::createPersistent
ALFA_LocRecEvCollection_PERS * createPersistent(ALFA_LocRecEvCollection *transCont)
Definition
ALFA_LocRecEvCollectionCnv.cxx:10
ALFA_LocRecEvCollectionCnv::createTransient
ALFA_LocRecEvCollection * createTransient(const Token *token)
Definition
ALFA_LocRecEvCollectionCnv.cxx:18
ALFA_LocRecEvCollection
Definition
ALFA_LocRecEvCollection.h:13
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
T_AthenaPoolCustomCnv< ALFA_LocRecEvCollection, ALFA_LocRecEvCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< ALFA_LocRecEvCollection, ALFA_LocRecEvCollection_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