ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventAthenaPool
src
TgcL1RdoContainerCnv.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONEVENTATHENAPOOL_TGCL1RDOCONTAINERCNV_H
6
#define MUONEVENTATHENAPOOL_TGCL1RDOCONTAINERCNV_H
7
8
/*
9
custom POOL TP converter for TGC L1 trigger RDO
10
@author Toshi Sumida
11
CERN, May 2020
12
*/
13
14
15
#include "
MuonRdoContainerTPCnv.h
"
16
#include "
TgcL1RdoContainerCnv_p1.h
"
17
#include "
MuonEventAthenaPool/TgcL1RdoContainer_p1.h
"
18
#include "
MuonRDO/TgcL1RdoContainer.h
"
19
20
21
typedef
MuonRdoContainerTPCnv<TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >
22
TgcL1RdoContainerCnv
;
23
24
25
template
< >
26
inline
27
TgcL1RdoContainer
*
28
TgcL1RdoContainerCnv::createTransient
()
29
{
30
MsgStream log(msgSvc(),
"TgcL1RdoContainerCnv"
);
31
log << MSG::DEBUG <<
" **** Entered createTransient() "
32
<<
endmsg
;
33
34
// the use of auto pointers ensures that the persistent object is deleted
35
// using the correct persistent type pointer
36
37
TgcL1RdoContainer
*trans_cont = 0;
38
static
const
pool::Guid
p1_guid(
"799C629C-ECA9-4963-9C84-A4AD7D775B24"
);
39
40
if
(
compareClassGuid
(p1_guid) ) {
41
std::unique_ptr< TgcL1RdoContainer_p1 > col_vect( this->
poolReadObject<TgcL1RdoContainer_p1>
() );
42
trans_cont =
m_TPconverter
.createTransient( col_vect.get(), log );
43
}
44
else
{
45
throw
std::runtime_error(
"Unsupported persistent version of TGC RDO container"
);
46
}
47
return
trans_cont;
48
}
49
50
51
#endif
52
53
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
MuonRdoContainerTPCnv.h
TgcL1RdoContainerCnv
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 > TgcL1RdoContainerCnv
Definition
TgcL1RdoContainerCnv.h:22
TgcL1RdoContainerCnv_p1.h
TgcL1RdoContainer.h
TgcL1RdoContainer_p1.h
MuonRdoContainerTPCnv
Definition
MuonRdoContainerTPCnv.h:25
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >::createTransient
virtual TgcL1RdoContainer * createTransient()
Definition
TgcL1RdoContainerCnv.h:28
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >::m_TPconverter
TgcL1RdoContainerCnv_p1 m_TPconverter
Definition
MuonRdoContainerTPCnv.h:45
T_AthenaPoolCustomCnv< T, P >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >::poolReadObject
TgcL1RdoContainer_p1 * poolReadObject()
TgcL1RdoContainer
Definition
TgcL1RdoContainer.h:25
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0