ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigEventAthenaPool
src
TrigEventAthenaPool/src/TrigTauTracksInfo.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 "
TrigTauTracksInfoCnv.h
"
6
#include "
TrigInDetEventTPCnv/TrigTauTracksInfo_tlp1.h
"
7
#include "
TrigInDetEventTPCnv/TrigTauTracksInfoCnv_tlp1.h
"
8
9
TrigTauTracksInfoCnv::TrigTauTracksInfoCnv
(ISvcLocator* svcloc) :
10
T_AthenaPoolCustomCnv
<
TrigTauTracksInfo
,
TrigTauTracksInfo_PERS
>( svcloc ),
11
m_TPConverter
(new
TrigTauTracksInfoCnv_tlp1
)
12
{}
13
TrigTauTracksInfoCnv::~TrigTauTracksInfoCnv
()
14
{
15
delete
m_TPConverter
;
16
}
17
18
//create persistent
19
TrigTauTracksInfo_PERS
*
TrigTauTracksInfoCnv::createPersistent
(
TrigTauTracksInfo
* transCont)
20
{
21
MsgStream mlog(msgSvc(),
"TrigTauTracksInfoConverter"
);
22
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCnv::createPersistent"
<<
endmsg
;
23
24
TrigTauTracksInfo_PERS
*persObj =
m_TPConverter
->createPersistent( transCont, mlog );
25
26
return
persObj;
27
}
28
29
//create transient
30
TrigTauTracksInfo
*
TrigTauTracksInfoCnv::createTransient
(
const
Token
* token)
31
{
32
MsgStream mlog(msgSvc(),
"TrigTauTracksInfoConverter"
);
33
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCnv::createTransient "
<<
endmsg
;
34
35
static
const
Guid
tlp1_guid(
"ABF3C91C-A007-440E-8AEE-753FAA453352"
);
36
static
const
Guid
p0_guid(
"630E4944-7EDE-4938-B189-020DBC0436AE"
);
37
38
TrigTauTracksInfo
*trans_cont(0);
39
40
if
(
compareClassGuid
(token, tlp1_guid) ) {
41
42
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCnv::reading tlp1 persistent object"
<<
endmsg
;
43
std::unique_ptr< TrigTauTracksInfo_tlp1 > col_vect( this->
poolReadObject< TrigTauTracksInfo_tlp1 >
(token) );
44
trans_cont =
m_TPConverter
->createTransient( col_vect.get(), mlog );
45
46
}
47
else
if
(
compareClassGuid
(token, p0_guid) ) {
48
49
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCnv::reading p0 persistent object"
<<
endmsg
;
50
// old version from before TP separation, just return it
51
trans_cont = this->
poolReadObject<TrigTauTracksInfo>
(token);
52
53
}
else
{
54
55
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
56
57
}
58
59
return
trans_cont;
60
61
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigTauTracksInfoCnv.h
TrigTauTracksInfo_PERS
TrigTauTracksInfo_tlp1 TrigTauTracksInfo_PERS
Definition
TrigTauTracksInfoCnv.h:26
TrigTauTracksInfoCnv_tlp1.h
TrigTauTracksInfo_tlp1.h
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
T_AthenaPoolCustomCnv< TrigTauTracksInfo, TrigTauTracksInfo_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< TrigTauTracksInfo, TrigTauTracksInfo_PERS >::poolReadObject
P * poolReadObject(const Token *token)
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition
T_AthenaPoolCustomCnv.h:129
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
TrigTauTracksInfoCnv_tlp1
Definition
TrigTauTracksInfoCnv_tlp1.h:29
TrigTauTracksInfoCnv::TrigTauTracksInfoCnv
TrigTauTracksInfoCnv(ISvcLocator *svcloc)
Definition
TrigEventAthenaPool/src/TrigTauTracksInfo.cxx:9
TrigTauTracksInfoCnv::createTransient
TrigTauTracksInfo * createTransient(const Token *token)
Definition
TrigEventAthenaPool/src/TrigTauTracksInfo.cxx:30
TrigTauTracksInfoCnv::createPersistent
TrigTauTracksInfo_PERS * createPersistent(TrigTauTracksInfo *transCont)
Definition
TrigEventAthenaPool/src/TrigTauTracksInfo.cxx:19
TrigTauTracksInfoCnv::m_TPConverter
TrigTauTracksInfoCnv_tlp1 * m_TPConverter
Definition
TrigTauTracksInfoCnv.h:47
TrigTauTracksInfoCnv::~TrigTauTracksInfoCnv
~TrigTauTracksInfoCnv()
Definition
TrigEventAthenaPool/src/TrigTauTracksInfo.cxx:13
TrigTauTracksInfo
Contains basic information about trackc collection associated with Tau RoI.
Definition
TrigTauTracksInfo.h:28
Generated on
for ATLAS Offline Software by
1.17.0