ATLAS Offline Software
Loading...
Searching...
No Matches
SkimDecisionCollectionCnv.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 SkimDecisionCollectionCnv
7// Author: David Cote, September 2008. <david.cote@cern.ch>
9
11
13 MsgStream log(msgSvc(), "SkimDecisionCollectionConverter" );
14 SkimDecisionCollection_PERS * persObj = m_TPConverter.createPersistent( transCont, log );
15
16 log << MSG::DEBUG << "Success" << endmsg;
17 return persObj;
18}
19
21 MsgStream log(msgSvc(), "SkimDecisionCollectionConverter" );
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("5705559E-F062-4F15-A220-78A8542EFBF3");
24 if( compareClassGuid(p1_guid) ) {
25 // using unique_ptr ensures deletion of the persistent object
26 std::unique_ptr< SkimDecisionCollection_p1 > col_vect( poolReadObject< SkimDecisionCollection_p1 >() );
27 return m_TPConverter.createTransient( col_vect.get(), log );
28 }
29 else {
30 throw std::runtime_error("Unsupported persistent version of SkimDecisionCollection");
31 }
32}
33
#define endmsg
SkimDecisionCollection_p1 SkimDecisionCollection_PERS
virtual SkimDecisionCollection * createTransient()
virtual SkimDecisionCollection_PERS * createPersistent(SkimDecisionCollection *transCont)
SkimDecisionCollectionCnv_p1 m_TPConverter