ATLAS Offline Software
Trigger
TrigEvent
TrigEventAthenaPool
src
TrigVertexCountsCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigVertexCountsCnv.h
"
6
#include "
TrigInDetEventTPCnv/TrigVertexCounts_p1.h
"
7
#include "
TrigInDetEventTPCnv/TrigVertexCountsCnv_p1.h
"
8
9
TrigVertexCountsCnv::TrigVertexCountsCnv
(ISvcLocator* svcloc):
TrigVertexCountsCnvBase
(svcloc) {}
10
TrigVertexCountsCnv::~TrigVertexCountsCnv
(){}
11
12
TrigVertexCounts_PERS
*
TrigVertexCountsCnv::createPersistent
(
TrigVertexCounts
* transObj) {
13
MsgStream
mlog
(
msgSvc
(),
"TrigVertexCountsConverter"
);
14
mlog
<<
MSG::DEBUG
<<
"TrigVertexCountsCnv::createPersistent"
<<
endmsg
;
15
16
TrigVertexCountsCnv_p1
converter;
17
TrigVertexCounts_PERS
*persObj = converter.
createPersistent
( transObj,
mlog
);
18
19
return
persObj;
20
}
21
22
TrigVertexCounts
*
TrigVertexCountsCnv::createTransient
() {
23
MsgStream
mlog
(
msgSvc
(),
"TrigVertexCountsConverter"
);
24
mlog
<<
MSG::DEBUG
<<
"TrigVertexCountsCnv::createTransient "
<<
endmsg
;
25
26
static
const
pool::Guid
p1_guid(
"33E83FBA-83F1-4DC5-87BE-81A09D0FD8F8"
);
27
28
29
TrigVertexCounts
*transObj = 0;
30
31
if
(
compareClassGuid
(p1_guid) ) {
32
mlog
<<
MSG::DEBUG
<<
"TrigVertexCountsCnv::reading p1 persistent object"
<<
endmsg
;
33
std::unique_ptr< TrigVertexCounts_p1 > pers_ptr( poolReadObject< TrigVertexCounts_p1 >() );
34
TrigVertexCountsCnv_p1
converter;
35
transObj = converter.
createTransient
(pers_ptr.get(),
mlog
);
36
}
37
else
{
38
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
39
}
40
41
return
transObj;
42
}
TrigVertexCountsCnv_p1.h
TrigVertexCountsCnv::~TrigVertexCountsCnv
~TrigVertexCountsCnv()
Definition:
TrigVertexCountsCnv.cxx:10
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.
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
python.InDetPriVxFinderConfig.mlog
mlog
Definition:
InDetPriVxFinderConfig.py:139
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition:
T_AthenaPoolCustomCnv.h:132
TrigVertexCounts
Definition:
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigVertexCounts.h:16
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
TrigVertexCountsCnv.h
TrigVertexCountsCnv_p1
Definition:
TrigVertexCountsCnv_p1.h:25
TrigVertexCountsCnv::createTransient
TrigVertexCounts * createTransient()
Definition:
TrigVertexCountsCnv.cxx:22
TrigVertexCountsCnv::TrigVertexCountsCnv
TrigVertexCountsCnv(ISvcLocator *svcloc)
Definition:
TrigVertexCountsCnv.cxx:9
DEBUG
#define DEBUG
Definition:
page_access.h:11
TrigVertexCountsCnv::createPersistent
TrigVertexCounts_PERS * createPersistent(TrigVertexCounts *transObj)
Definition:
TrigVertexCountsCnv.cxx:12
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigVertexCounts_p1
Definition:
TrigVertexCounts_p1.h:20
TrigVertexCounts_p1.h
Generated on Wed Jan 8 2025 21:20:17 for ATLAS Offline Software by
1.8.18