ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigEventAthenaPool
src
TileMuFeatureCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
12
#include "
TileMuFeatureCnv.h
"
13
#include "
TrigMuonEventTPCnv/TileMuFeatureCnv_p1.h
"
14
15
TileMuFeatureCnv::TileMuFeatureCnv
(ISvcLocator *svcloc):
TileMuFeatureCnvBase
(svcloc) {}
16
TileMuFeatureCnv::~TileMuFeatureCnv
(){}
17
18
//createPersistent
19
TileMuFeature_PERS
*
TileMuFeatureCnv::createPersistent
(
TileMuFeature
* transObj) {
20
MsgStream mlog(msgSvc(),
"TileMuFeatureConverter"
);
21
22
mlog << MSG::DEBUG <<
"TileMuFeatureCnv::createPersistent"
<<
endmsg
;
23
24
TileMuFeatureCnv_p1
converter;
25
TileMuFeature_PERS
*persObj = converter.
createPersistent
( transObj, mlog );
26
return
persObj;
27
}
28
29
//createTransient
30
TileMuFeature
*
TileMuFeatureCnv::createTransient
(
const
Token
* token) {
31
MsgStream mlog(msgSvc(),
"TileMuFeatureConverter"
);
32
33
mlog << MSG::DEBUG <<
"TileMuFeatureCnv::createTransient "
<<
endmsg
;
34
35
static
const
Guid
p1_guid(
"F853E605-AFD5-44F9-98BC-4D777CBCBEE4"
);
36
// from "TrigEvent/TrigMuonEventTPCnv/TrigMuonEventTPCnv/selection.xml"
37
38
static
const
Guid
p0_guid(
"526B0709-442D-4D2C-8C1F-8C3922149656"
);
39
// from "TrigEvent/TrigMuonEvent/TrigMuonEvent/selection.xml"
40
41
if
(
compareClassGuid
(token, p1_guid) ) {
42
std::unique_ptr< TileMuFeature_p1 > col_vect(
poolReadObject< TileMuFeature_p1 >
(token) );
43
TileMuFeatureCnv_p1
converter;
44
return
converter.
createTransient
( col_vect.get(), mlog );
45
46
}
47
else
if
(
compareClassGuid
(token, p0_guid) ) {
48
// old version from before TP separation, just return it
49
return
this->
poolReadObject<TileMuFeature>
(token);
50
}
51
else
{
52
throw
std::runtime_error(
"Unsupported persistent version"
);
53
}
54
55
}
56
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TileMuFeatureCnv.h
TileMuFeature_PERS
TileMuFeature_p1 TileMuFeature_PERS
Definition
TileMuFeatureCnv.h:29
TileMuFeatureCnvBase
T_AthenaPoolCustomCnv< TileMuFeature, TileMuFeature_PERS > TileMuFeatureCnvBase
Definition
TileMuFeatureCnv.h:31
TileMuFeatureCnv_p1.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< TileMuFeature, TileMuFeature_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< TileMuFeature, TileMuFeature_PERS >::poolReadObject
P * poolReadObject(const Token *token)
TileMuFeatureCnv_p1
Definition
TileMuFeatureCnv_p1.h:29
TileMuFeatureCnv::createPersistent
virtual TileMuFeature_PERS * createPersistent(TileMuFeature *transObj)
Definition
TileMuFeatureCnv.cxx:19
TileMuFeatureCnv::TileMuFeatureCnv
TileMuFeatureCnv(ISvcLocator *svcloc)
Definition
TileMuFeatureCnv.cxx:15
TileMuFeatureCnv::createTransient
virtual TileMuFeature * createTransient(const Token *token)
Definition
TileMuFeatureCnv.cxx:30
TileMuFeatureCnv::~TileMuFeatureCnv
~TileMuFeatureCnv()
Definition
TileMuFeatureCnv.cxx:16
TileMuFeature
Definition
TileMuFeature.h:33
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