ATLAS Offline Software
ForwardDetectors
ALFA
ALFA_EventCnv
ALFA_EventAthenaPool
src
ALFA_LocRecCorrODEvCollectionCnv.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_LocRecCorrODEvCollectionCnv_p1.h
"
6
#include "
ALFA_LocRecCorrODEvCollectionCnv.h
"
7
8
9
10
ALFA_LocRecCorrODEvCollection_PERS
*
ALFA_LocRecCorrODEvCollectionCnv::createPersistent
(
ALFA_LocRecCorrODEvCollection
* transCont) {
11
MsgStream
mlog
(
msgSvc
(),
"ALFA_LocRecCorrODEvCollectionConverter"
);
12
ALFA_LocRecCorrODEvCollectionCnv_p1
TPConverter;
13
ALFA_LocRecCorrODEvCollection_PERS
*persObj = TPConverter.
createPersistent
( transCont,
mlog
);
14
return
persObj;
15
}
16
17
18
ALFA_LocRecCorrODEvCollection
*
ALFA_LocRecCorrODEvCollectionCnv::createTransient
() {
19
MsgStream
mlog
(
msgSvc
(),
"ALFA_LocRecCorrODEvCollectionConverter"
);
20
21
ALFA_LocRecCorrODEvCollectionCnv_p1
TPConverter_p1;
22
23
ALFA_LocRecCorrODEvCollection
*trans_cont(
nullptr
);
// probably inicialization
24
static
const
pool::Guid
p1_guid (
"5EB65543-BEC9-4920-B545-F1C6AB88C289"
);
25
26
if
( this->
compareClassGuid
(p1_guid)) {
27
std::unique_ptr< ALFA_LocRecCorrODEvCollection_p1 > col_vect( this->poolReadObject< ALFA_LocRecCorrODEvCollection_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
}
ALFA_LocRecCorrODEvCollectionCnv.h
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
ALFA_LocRecCorrODEvCollection
Definition:
ALFA_LocRecCorrODEvCollection.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_LocRecCorrODEvCollectionCnv::createPersistent
ALFA_LocRecCorrODEvCollection_PERS * createPersistent(ALFA_LocRecCorrODEvCollection *transCont)
Definition:
ALFA_LocRecCorrODEvCollectionCnv.cxx:10
ALFA_LocRecCorrODEvCollectionCnv_p1
Definition:
ALFA_LocRecCorrODEvCollectionCnv_p1.h:14
T_AthenaPoolCustCnv< ALFA_LocRecCorrODEvCollection, ALFA_LocRecCorrODEvCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
ALFA_LocRecCorrODEvCollectionCnv::createTransient
ALFA_LocRecCorrODEvCollection * createTransient()
Definition:
ALFA_LocRecCorrODEvCollectionCnv.cxx:18
ALFA_LocRecCorrODEvCollectionCnv_p1.h
ALFA_LocRecCorrODEvCollection_p1
Definition:
ALFA_LocRecCorrODEvCollection_p1.h:16
Generated on Tue Jul 2 2024 21:09:57 for ATLAS Offline Software by
1.8.18