ATLAS Offline Software
Loading...
Searching...
No Matches
TrigHisto1DContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
8
14
19
20
21//createPersistent
23{
24 MsgStream mlog(msgSvc(), "TrigHisto1DContainerConverter" );
25
26 mlog << MSG::DEBUG << "TrigHisto1DContainerCnv::createPersistent" << endmsg;
27
28 TrigHisto1DContainer_PERS* persObj = m_TPConverter->createPersistent( transObj, mlog );
29
30 return persObj;
31
32}//end of create persistent method
33
34
35//createTransient
37{
38 MsgStream mlog(msgSvc(), "TrigHisto1DContainerConverter" );
39
40 mlog << MSG::DEBUG << "TrigHisto1DContainerCnv::createTransient" << endmsg;
41
42 static const pool::Guid tlp1_guid( "CDC70E22-85DF-45B4-B69E-FC7FD70987A9" );
43 static const pool::Guid p1_guid( "B6240954-1842-45F5-AB5B-50934C633B1E" );
44 static const pool::Guid trans_guid( "B5752F0C-EF7A-4330-8413-1CCF0FC58AC8" );
45
46 TrigHisto1DContainer *p_container = 0;
47
48 if(compareClassGuid(tlp1_guid)) {
50 p_container = m_TPConverter->createTransient(mlog);
51 }
52 else if(compareClassGuid(p1_guid)) {
53 std::unique_ptr< TrigHisto1DContainer_p1 > col_vect( poolReadObject< TrigHisto1DContainer_p1 >() );
55 p_container = converter.createTransient( col_vect.get(), mlog );
56 }
57 else if(compareClassGuid(trans_guid)) {
59 }
60 else {
61 throw std::runtime_error( "Unsupported persistent version of TrigHisto1DContainer" );
62 }
63
64 return p_container;
65
66}//end of create transient method
67
#define endmsg
T_AthenaPoolCustomCnv< TrigHisto1DContainer, TrigHisto1DContainer_PERS > TrigHisto1DContainerCnvBase
TrigHisto1DContainer_tlp1 TrigHisto1DContainer_PERS
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual TrigHisto1DContainer_PERS * createPersistent(TrigHisto1DContainer *transObj)
virtual TrigHisto1DContainer * createTransient()
TrigHisto1DContainerCnv_tlp1 * m_TPConverter
TrigHisto1DContainerCnv(ISvcLocator *svcloc)