ATLAS Offline Software
TrigOperationalInfoCollectionCnv.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 
9 
11 {
14 };
15 
19 {}
21 {
22  delete m_impl;
23 }
24 
25 //create persistent
27 {
28  MsgStream mlog(msgSvc(), "TrigOperationalInfoCollectionConverter" );
29 
31 
32  return persObj;
33 }
34 
35 //createTransient
37 {
38  MsgStream mlog(msgSvc(), "TrigOperationalInfoCollectionConverter" );
39 
40  static const pool::Guid tlp1_guid("7D5A0227-E28B-4228-83C5-22F8BBB90BBF");
41  static const pool::Guid p1_guid("B6C95F89-C1B9-4B9D-A533-F6F4B57BD277");
42 
43  TrigOperationalInfoCollection *trans_obj(0);
44 
45  if( compareClassGuid(tlp1_guid) ) {
46 
47  std::unique_ptr< TrigOperationalInfoCollection_tlp1 > col_vect( this->poolReadObject< TrigOperationalInfoCollection_tlp1 >() );
48  trans_obj = m_impl->m_TPConverter_tlp1.createTransient( col_vect.get(), mlog );
49 
50  }
51  else if( compareClassGuid(p1_guid) ) {
52 
53  std::unique_ptr< TrigOperationalInfoCollection_p1 > col_vect( this->poolReadObject< TrigOperationalInfoCollection_p1 >() );
54  trans_obj = m_impl->m_TPConverter.createTransient( col_vect.get(), mlog );
55 
56  }
57  else {
58 
59  throw std::runtime_error("Unsupported persistent version of TrigOperationalInfoCollection");
60  }
61 
62  return trans_obj;
63 
64 }
65 
TrigOperationalInfoCollectionCnv::TrigOperationalInfoCollectionCnv
TrigOperationalInfoCollectionCnv(ISvcLocator *svcloc)
Definition: TrigOperationalInfoCollectionCnv.cxx:16
TrigOperationalInfoCollectionCnv_tlp1
Definition: TrigOperationalInfoCollectionCnv_tlp1.h:28
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigOperationalInfoCollectionCnv_impl
Definition: TrigOperationalInfoCollectionCnv.cxx:11
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigOperationalInfoCollectionCnv_p1.h
TrigOperationalInfoCollectionCnv::createPersistent
TrigOperationalInfoCollection_PERS * createPersistent(TrigOperationalInfoCollection *transObj)
Definition: TrigOperationalInfoCollectionCnv.cxx:26
TrigOperationalInfoCollection_tlp1
Definition: TrigOperationalInfoCollection_tlp1.h:25
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TrigOperationalInfoCollectionCnv_impl::m_TPConverter_tlp1
TrigOperationalInfoCollectionCnv_tlp1 m_TPConverter_tlp1
Definition: TrigOperationalInfoCollectionCnv.cxx:13
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
TrigOperationalInfoCollectionCnv::~TrigOperationalInfoCollectionCnv
~TrigOperationalInfoCollectionCnv()
Definition: TrigOperationalInfoCollectionCnv.cxx:20
TrigOperationalInfoCollection
Definition: TrigOperationalInfoCollection.h:15
TrigOperationalInfoCollectionCnv_tlp1.h
TrigOperationalInfoCollectionCnv_impl::m_TPConverter
TrigOperationalInfoCollectionCnv_p1 m_TPConverter
Definition: TrigOperationalInfoCollectionCnv.cxx:12
TrigOperationalInfoCollectionCnv.h
TrigOperationalInfoCollectionCnv::m_impl
TrigOperationalInfoCollectionCnv_impl * m_impl
Definition: TrigOperationalInfoCollectionCnv.h:46
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv< TrigOperationalInfoCollection, TrigOperationalInfoCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigOperationalInfoCollectionCnv_p1
Definition: TrigOperationalInfoCollectionCnv_p1.h:27
TrigOperationalInfoCollectionCnv::createTransient
TrigOperationalInfoCollection * createTransient()
Definition: TrigOperationalInfoCollectionCnv.cxx:36