ATLAS Offline Software
ForwardDetectors
ALFA
ALFA_EventCnv
ALFA_EventAthenaPool
src
ALFA_LocRecODEvCollectionCnv.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_LocRecODEvCollectionCnv_p1.h
"
6
#include "
ALFA_LocRecODEvCollectionCnv.h
"
7
8
9
10
ALFA_LocRecODEvCollection_PERS
*
ALFA_LocRecODEvCollectionCnv::createPersistent
(
ALFA_LocRecODEvCollection
* transCont) {
11
MsgStream
mlog
(
msgSvc
(),
"ALFA_LocRecODEvCollectionConverter"
);
12
ALFA_LocRecODEvCollectionCnv_p1
TPConverter;
13
ALFA_LocRecODEvCollection_PERS
*persObj = TPConverter.
createPersistent
( transCont,
mlog
);
14
return
persObj;
15
}
16
17
18
ALFA_LocRecODEvCollection
*
ALFA_LocRecODEvCollectionCnv::createTransient
() {
19
MsgStream
mlog
(
msgSvc
(),
"ALFA_LocRecODEvCollectionConverter"
);
20
21
ALFA_LocRecODEvCollectionCnv_p1
TPConverter_p1;
22
23
ALFA_LocRecODEvCollection
*trans_cont(
nullptr
);
// probably inicialization
24
static
const
pool::Guid
p1_guid (
"D6688847-9903-4FDE-B709-879B0E470073"
);
25
26
if
( this->
compareClassGuid
(p1_guid)) {
27
std::unique_ptr< ALFA_LocRecODEvCollection_p1 > col_vect( this->poolReadObject< ALFA_LocRecODEvCollection_p1 >() );
28
trans_cont = TPConverter_p1.
createTransient
( col_vect.get(),
mlog
);
29
}
30
// else if( m_token.find("CLID=35722E01-C4E3-420E-8A7E-E375C5E7989D") != std::string::npos) {
31
// old version from before TP separation, just return it
32
// trans_cont = this->poolReadObject<ALFA_DigitCollection>();
33
// }
34
else
{
35
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
36
}
37
return
trans_cont;
38
}
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
ALFA_LocRecODEvCollection_p1
Definition:
ALFA_LocRecODEvCollection_p1.h:16
ALFA_LocRecODEvCollectionCnv::createTransient
ALFA_LocRecODEvCollection * createTransient()
Definition:
ALFA_LocRecODEvCollectionCnv.cxx:18
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
ALFA_LocRecODEvCollection
Definition:
ALFA_LocRecODEvCollection.h:13
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
python.InDetPriVxFinderConfig.mlog
mlog
Definition:
InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
ALFA_LocRecODEvCollectionCnv::createPersistent
ALFA_LocRecODEvCollection_PERS * createPersistent(ALFA_LocRecODEvCollection *transCont)
Definition:
ALFA_LocRecODEvCollectionCnv.cxx:10
ALFA_LocRecODEvCollectionCnv_p1
Definition:
ALFA_LocRecODEvCollectionCnv_p1.h:14
ALFA_LocRecODEvCollectionCnv_p1.h
ALFA_LocRecODEvCollectionCnv.h
T_AthenaPoolCustCnv< ALFA_LocRecODEvCollection, ALFA_LocRecODEvCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
Generated on Thu Nov 7 2024 21:09:47 for ATLAS Offline Software by
1.8.18