ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "TrigCompositeCnv.h"
7
8
13
18
23
25{
26 MsgStream mlog(msgSvc(), "TrigCompositeConverter" );
27 mlog << MSG::DEBUG << "TrigCompositeCnv::createPersistent" << endmsg;
28
29 TrigComposite_PERS *persObj = m_impl->m_TPConverter.createPersistent( transCont, mlog );
30
31 return persObj;
32}
33
34
36{
37 MsgStream mlog(msgSvc(), "TrigCompositeConverter" );
38 mlog << MSG::DEBUG << "TrigCompositeCnv::createTransient " << endmsg;
39
40 static const pool::Guid p1_guid("53F70884-38EE-4D08-9F03-FA8BED725B63");
41
42 TrigComposite *trans_cont(0);
43
44 if( compareClassGuid(p1_guid) ) {
45
46 mlog << MSG::DEBUG << "TrigCompositeCnv::reading p1 persistent object" << endmsg;
47 std::unique_ptr< TrigComposite_p1 > col_vect( this->poolReadObject< TrigComposite_p1 >() );
48 trans_cont = m_impl->m_TPConverter.createTransient( col_vect.get(), mlog );
49
50 } else {
51
52 throw std::runtime_error("Unsupported persistent version of Data container TrigComposite");
53
54 }
55 return trans_cont;
56
57}
#define endmsg
TrigComposite_p1 TrigComposite_PERS
virtual bool compareClassGuid(const Guid &clid) const
Compatibility for old converter classes that don't get passed the key.
TrigCompositeCnv_impl * m_impl
TrigComposite * createTransient()
TrigComposite_PERS * createPersistent(TrigComposite *transCont)
TrigCompositeCnv(ISvcLocator *svcloc)
The class is meant to store links (of type TrigFeatureLink) to trigger objects and arbitrary details ...
TrigCompositeCnv_p1 m_TPConverter