ATLAS Offline Software
Loading...
Searching...
No Matches
Event
EventBookkeeperAthenaPool
src
SkimDecisionCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// File for class SkimDecisionCnv
7
// Author: David Cote, September 2008. <david.cote@cern.ch>
9
10
#include "
SkimDecisionCnv.h
"
11
12
SkimDecision_PERS
*
SkimDecisionCnv::createPersistent
(
SkimDecision
* transCont) {
13
MsgStream log(msgSvc(),
"SkimDecisionConverter"
);
14
SkimDecision_PERS
* persObj =
m_TPConverter
.createPersistent( transCont, log );
15
16
log << MSG::DEBUG <<
"Success"
<<
endmsg
;
17
return
persObj;
18
}
19
20
SkimDecision
*
SkimDecisionCnv::createTransient
() {
21
MsgStream log(msgSvc(),
"SkimDecisionConverter"
);
22
//p1_guid matches the number in EventBookkeeperTPCnv/selection.xtml and is generated with uuidgen | tr "[:lower:]" "[:upper:]"
23
static
const
pool::Guid
p1_guid(
"61CEDFF0-46DD-42BD-B43A-12F850D3752E"
);
24
if
(
compareClassGuid
(p1_guid) ) {
25
// using unique_ptr ensures deletion of the persistent object
26
std::unique_ptr< SkimDecision_p1 > col_vect(
poolReadObject< SkimDecision_p1 >
() );
27
return
m_TPConverter
.createTransient( col_vect.get(), log );
28
}
29
else
{
30
throw
std::runtime_error(
"Unsupported persistent version of SkimDecision"
);
31
}
32
}
33
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
SkimDecisionCnv.h
SkimDecision_PERS
SkimDecision_p1 SkimDecision_PERS
Definition
SkimDecisionCnv.h:20
SkimDecisionCnv::m_TPConverter
SkimDecisionCnv_p1 m_TPConverter
Definition
SkimDecisionCnv.h:34
SkimDecisionCnv::createPersistent
virtual SkimDecision_PERS * createPersistent(SkimDecision *transCont)
Definition
SkimDecisionCnv.cxx:12
SkimDecisionCnv::createTransient
virtual SkimDecision * createTransient()
Definition
SkimDecisionCnv.cxx:20
SkimDecision
Definition
SkimDecision.h:16
T_AthenaPoolCustomCnv< SkimDecision, SkimDecision_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< SkimDecision, SkimDecision_PERS >::poolReadObject
P * poolReadObject()
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0