ATLAS Offline Software
Loading...
Searching...
No Matches
LArOFCBinCompleteCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10
12
14 MsgStream log(msgSvc(), "LArOFCBinCompleteCnv" );
15 //log << MSG::DEBUG << "LArOFCBinComplete write" << endmsg;
16 LArOFCBinPersType* persObj = m_TPconverter.createPersistent( transObj, log );
17 //log << MSG::DEBUG << "Success" << endmsg;
18 return persObj;
19}
20
22 static const pool::Guid p1_guid("E7E2E993-4AF2-4782-9B8B-7668434CBAEC");
23 if( compareClassGuid(p1_guid) ) {
24 // using unique_ptr ensures deletion of the persistent object
25 std::unique_ptr<LArOFCBinPersType> col_vect( poolReadObject<LArOFCBinPersType>() );
26 MsgStream log(msgSvc(), "LArOFCBinCompleteCnv" );
27 //log << MSG::INFO << "Reading LArOFCBinSubset_p1" << endmsg;
28 return m_TPconverter.createTransient( col_vect.get(), log );
29 }
30 throw std::runtime_error("Unsupported persistent version of LArOFCBinComplete");
31}
32
33
AthenaPool converter LArOFCBinComplete.
LArSingleIntSubset_p1 LArOFCBinPersType
LArConditionsSubset< LArOFCBinP > LArOFCBinTransType
virtual LArOFCBinTransType * createTransient()
method to be implemented by the developer.
LArOFCBinSubsetCnv_p1 m_TPconverter
virtual LArOFCBinPersType * createPersistent(LArOFCBinTransType *transObj)
method to be implemented by the developer.