ATLAS Offline Software
TrigOperationalInfoCnv.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 
8 
11  m_TPConverter (new TrigOperationalInfoCnv_p1)
12 {}
14 {
15  delete m_TPConverter;
16 }
17 
18 //create persistent
20 {
21  MsgStream mlog(msgSvc(), "TrigOperationalInfoConverter" );
22 
24 
25  return persObj;
26 }
27 
28 //createTransient
30 {
31  MsgStream mlog(msgSvc(), "TrigOperationalInfoConverter" );
32 
33  static const pool::Guid p1_guid("765F0281-801B-4F5C-8C4C-5BE7E7DB5E42");
34 
35  TrigOperationalInfo *trans_obj(0);
36 
37  if( compareClassGuid(p1_guid) ) {
38 
39  std::unique_ptr< TrigOperationalInfo_p1 > col_vect( this->poolReadObject< TrigOperationalInfo_p1 >() );
40  trans_obj = m_TPConverter->createTransient( col_vect.get(), mlog );
41  } else {
42 
43  throw std::runtime_error("Unsupported persistent version of Data container");
44  }
45 
46  return trans_obj;
47 
48 }
49 
TrigOperationalInfoCnv::createPersistent
TrigOperationalInfo_PERS * createPersistent(TrigOperationalInfo *transObj)
Definition: TrigOperationalInfoCnv.cxx:19
TrigOperationalInfoCnv_p1.h
TrigOperationalInfo_p1
Definition: TrigOperationalInfo_p1.h:22
TrigOperationalInfoCnv.h
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigOperationalInfoCnv_p1
Definition: TrigOperationalInfoCnv_p1.h:29
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigOperationalInfoCnv::~TrigOperationalInfoCnv
~TrigOperationalInfoCnv()
Definition: TrigOperationalInfoCnv.cxx:13
TrigOperationalInfoCnv::createTransient
TrigOperationalInfo * createTransient()
Definition: TrigOperationalInfoCnv.cxx:29
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigOperationalInfoCnv::m_TPConverter
TrigOperationalInfoCnv_p1 * m_TPConverter
Definition: TrigOperationalInfoCnv.h:49
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:139
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
TrigOperationalInfo
This class defined generic object to store operational info available during triggering online i....
Definition: TrigOperationalInfo.h:27
T_AthenaPoolCustCnv< TrigOperationalInfo, TrigOperationalInfo_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigOperationalInfoCnv::TrigOperationalInfoCnv
TrigOperationalInfoCnv(ISvcLocator *svcloc)
Definition: TrigOperationalInfoCnv.cxx:9