ATLAS Offline Software
Toggle main menu visibility
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
(
const
Token
* token)
29
{
30
MsgStream log(msgSvc(),
"TgcL1RdoContainerCnv"
);
31
log << MSG::DEBUG <<
" **** Entered createTransient(const Token* token) "
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
Guid
p1_guid(
"799C629C-ECA9-4963-9C84-A4AD7D775B24"
);
39
40
if
(
compareClassGuid
(token, p1_guid) ) {
41
std::unique_ptr< TgcL1RdoContainer_p1 > col_vect( this->
poolReadObject<TgcL1RdoContainer_p1>
(token) );
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:54
MuonRdoContainerTPCnv.h
TgcL1RdoContainerCnv
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 > TgcL1RdoContainerCnv
Definition
TgcL1RdoContainerCnv.h:22
TgcL1RdoContainerCnv_p1.h
TgcL1RdoContainer.h
TgcL1RdoContainer_p1.h
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
MuonRdoContainerTPCnv
Definition
MuonRdoContainerTPCnv.h:25
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >::createTransient
virtual TgcL1RdoContainer * createTransient(const Token *token)
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 Token *token, const Guid &clid) const
MuonRdoContainerTPCnv< TgcL1RdoContainer, TgcL1RdoContainer_p1, TgcL1RdoContainerCnv_p1 >::poolReadObject
TgcL1RdoContainer_p1 * poolReadObject(const Token *token)
TgcL1RdoContainer
Definition
TgcL1RdoContainer.h:25
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
Generated on
for ATLAS Offline Software by
1.17.0