ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigEventAthenaPool
src
TrigTauTracksInfoCollectionCnv.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 "
TrigTauTracksInfoCollectionCnv.h
"
6
7
//createPersistent
8
TrigTauTracksInfoCollection_PERS
*
TrigTauTracksInfoCollectionCnv::createPersistent
(
TrigTauTracksInfoCollection
*transObj)
9
{
10
MsgStream mlog(msgSvc(),
"TrigTauTracksInfoCollectionConverter"
);
11
12
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCollectionCnv::createPersistent called"
<<
endmsg
;
13
14
TrigTauTracksInfoCollection_PERS
* p_cont =
m_converter
.createPersistent( transObj, mlog );
15
16
return
p_cont;
17
18
}
//end of create persistent method
19
20
21
//createTransient
22
TrigTauTracksInfoCollection
*
TrigTauTracksInfoCollectionCnv::createTransient
(
const
Token
* token)
23
{
24
MsgStream mlog(msgSvc(),
"TrigTauTracksInfoCollectionConverter"
);
25
26
mlog << MSG::DEBUG <<
"TrigTauTracksInfoCollectionCnv::createTransient called"
<<
endmsg
;
27
28
static
const
pool::Guid
p2_guid(
"1AF8C4E5-4862-4625-B9B6-D9B53E716B17"
);
29
static
const
pool::Guid
p1_guid(
"8A208FA7-C52F-4CD3-AE20-EF1C99FC92A6"
);
30
static
const
pool::Guid
p0_guid(
"27E95E77-0D99-417D-83C7-7F1B8E6DE511"
);
31
32
if
(
compareClassGuid
(token, p2_guid ) ){
33
std::unique_ptr< TrigTauTracksInfoCollection_p2 > col_vect(
poolReadObject< TrigTauTracksInfoCollection_p2 >
(token) );
34
return
m_converter
.createTransient( col_vect.get(), mlog ) ;
35
}
else
if
(
compareClassGuid
(token, p1_guid ) ) {
36
std::unique_ptr< TrigTauTracksInfoCollection_tlp1 > col_vect(
poolReadObject< TrigTauTracksInfoCollection_tlp1 >
(token) );
37
return
m_converter_tlp1
.createTransient( col_vect.get(), mlog );
38
}
else
if
(
compareClassGuid
(token, p0_guid ) ){
39
return
poolReadObject< TrigTauTracksInfoCollection >
(token);
40
}
else
throw
std::runtime_error(
"Unsupported persistent version of TrigTauTracksInfoCollection"
);
41
42
}
//end of create transient method
43
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigTauTracksInfoCollectionCnv.h
TrigTauTracksInfoCollection_PERS
TrigTauTracksInfoCollection_p2 TrigTauTracksInfoCollection_PERS
Definition
TrigTauTracksInfoCollectionCnv.h:16
T_AthenaPoolCustomCnv< TrigTauTracksInfoCollection, TrigTauTracksInfoCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< TrigTauTracksInfoCollection, TrigTauTracksInfoCollection_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
TrigTauTracksInfoCollectionCnv::m_converter
TrigTauTracksInfoCollectionCnv_p2 m_converter
Definition
TrigTauTracksInfoCollectionCnv.h:35
TrigTauTracksInfoCollectionCnv::createTransient
virtual TrigTauTracksInfoCollection * createTransient(const Token *token)
Definition
TrigTauTracksInfoCollectionCnv.cxx:22
TrigTauTracksInfoCollectionCnv::createPersistent
virtual TrigTauTracksInfoCollection_PERS * createPersistent(TrigTauTracksInfoCollection *transObj)
Definition
TrigTauTracksInfoCollectionCnv.cxx:8
TrigTauTracksInfoCollectionCnv::m_converter_tlp1
TrigTauTracksInfoCollectionCnv_tlp1 m_converter_tlp1
Definition
TrigTauTracksInfoCollectionCnv.h:34
TrigTauTracksInfoCollection
Definition
TrigTauTracksInfoCollection.h:13
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0