ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
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
#define endmsg
SkimDecision_p1 SkimDecision_PERS
SkimDecisionCnv_p1 m_TPConverter
virtual SkimDecision_PERS * createPersistent(SkimDecision *transCont)
virtual SkimDecision * createTransient()
virtual bool compareClassGuid(const Guid &clid) const