ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigEventAthenaPool
src
TrigMissingETCnv.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 "
TrigMissingETCnv.h
"
6
#include "
TrigMissingEtEventTPCnv/TrigMissingET_p1.h
"
7
#include "
TrigMissingEtEventTPCnv/TrigMissingETCnv_p1.h
"
8
#include "
TrigMissingEtEventTPCnv/TrigMissingET_p2.h
"
9
#include "
TrigMissingEtEventTPCnv/TrigMissingETCnv_p2.h
"
10
11
TrigMissingETCnv::TrigMissingETCnv
(ISvcLocator *svcloc):
TrigMissingETCnvBase
(svcloc) {}
12
TrigMissingETCnv::~TrigMissingETCnv
(){}
13
14
15
16
TrigMissingET_PERS
*
TrigMissingETCnv::createPersistent
(
TrigMissingET
* transObj) {
17
MsgStream mlog(msgSvc(),
"TrigMissingETConverter"
);
18
19
mlog << MSG::DEBUG <<
"TrigMissingETCnv::createPersistent"
<<
endmsg
;
20
21
// TrigMissingETCnv_p1 converter;
22
TrigMissingETCnv_p2
converter;
23
24
TrigMissingET_PERS
*persObj = converter.
createPersistent
( transObj, mlog );
25
26
return
persObj;
27
}
28
29
30
TrigMissingET
*
TrigMissingETCnv::createTransient
(
const
Token
* token) {
31
MsgStream mlog(msgSvc(),
"TrigMissingETConverter"
);
32
33
mlog << MSG::DEBUG <<
"TrigMissingETCnv::createTransient "
<<
endmsg
;
34
35
static
const
Guid
p2_guid(
"9972F10B-2B6A-42A7-AF71-D8FB60F07C6D"
);
36
static
const
Guid
p1_guid(
"A65F0499-A789-4D66-9930-E8651FE91F8A"
);
37
static
const
Guid
p0_guid(
"1403772C-7444-4340-930B-ABD51C243A09"
);
38
39
if
(
compareClassGuid
(token, p2_guid) ) {
40
41
std::unique_ptr< TrigMissingET_p2 > col_vect(
poolReadObject< TrigMissingET_p2 >
(token) );
42
TrigMissingETCnv_p2
converter;
43
return
converter.
createTransient
( col_vect.get(), mlog );
44
45
}
46
else
if
(
compareClassGuid
(token, p1_guid) ) {
47
48
std::unique_ptr< TrigMissingET_p1 > col_vect(
poolReadObject< TrigMissingET_p1 >
(token) );
49
TrigMissingETCnv_p1
converter;
50
return
converter.
createTransient
( col_vect.get(), mlog );
51
52
}
53
else
if
(
compareClassGuid
(token, p0_guid) ) {
54
// old version from before TP separation, just return it
55
return
this->
poolReadObject<TrigMissingET>
(token);
56
}
57
else
{
58
throw
std::runtime_error(
"Unsupported persistent version"
);
59
}
60
61
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigMissingETCnv.h
TrigMissingETCnvBase
T_AthenaPoolCustomCnv< TrigMissingET, TrigMissingET_PERS > TrigMissingETCnvBase
Definition
TrigMissingETCnv.h:32
TrigMissingET_PERS
TrigMissingET_p2 TrigMissingET_PERS
Definition
TrigMissingETCnv.h:30
TrigMissingETCnv_p1.h
TrigMissingETCnv_p2.h
TrigMissingET_p1.h
TrigMissingET_p2.h
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
T_AthenaPoolCustomCnv< TrigMissingET, TrigMissingET_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< TrigMissingET, TrigMissingET_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
TrigMissingETCnv_p1
Definition
TrigMissingETCnv_p1.h:32
TrigMissingETCnv_p2
Definition
TrigMissingETCnv_p2.h:31
TrigMissingETCnv::~TrigMissingETCnv
~TrigMissingETCnv()
Definition
TrigMissingETCnv.cxx:12
TrigMissingETCnv::TrigMissingETCnv
TrigMissingETCnv(ISvcLocator *svcloc)
Definition
TrigMissingETCnv.cxx:11
TrigMissingETCnv::createTransient
virtual TrigMissingET * createTransient(const Token *token)
Definition
TrigMissingETCnv.cxx:30
TrigMissingETCnv::createPersistent
virtual TrigMissingET_PERS * createPersistent(TrigMissingET *transObj)
Definition
TrigMissingETCnv.cxx:16
TrigMissingET
Class for LVL2/EF MissingET trigger.
Definition
Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h:36
Generated on
for ATLAS Offline Software by
1.17.0