ATLAS Offline Software
TrigPassFlagsCollectionCnv.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 
10 {
12 };
13 
17 {}
18 
20 
21 //createPersistent
23 {
24  MsgStream mlog(msgSvc(), "TrigPassFlagsCollectionConverter" );
25 
26  TrigPassFlagsCollection_PERS * p_cont = m_impl->m_TPconverter_p1.createPersistent( transObj, mlog );
27 
28  return p_cont;
29 
30 }//end of create persistent method
31 
32 
33 //createTransient
35 {
36  MsgStream mlog(msgSvc(), "TrigPassFlagsCollectionConverter" );
37 
38  static const pool::Guid p1_guid( "7DE670AF-A256-4E8E-BC44-1CA30810F294" );
39 
40  // TrigPassFlagsCollection *p_collection = 0;
41  if( compareClassGuid( p1_guid ) )
42  {
43  std::unique_ptr< TrigPassFlagsCollection_p1 > col_vect( poolReadObject< TrigPassFlagsCollection_p1 >() );
44  return m_impl->m_TPconverter_p1.createTransient( col_vect.get(), mlog ) ;
45  }
46  else throw std::runtime_error( "Unsupported persistent version of TrigPassFlagsCollection" );
47 
48 }//end of create transient method
49 
TrigPassFlagsCollectionCnv::~TrigPassFlagsCollectionCnv
~TrigPassFlagsCollectionCnv()
TrigPassFlagsCollection_p1.h
TrigPassFlagsCollectionCnv::createTransient
virtual TrigPassFlagsCollection * createTransient()
Definition: TrigPassFlagsCollectionCnv.cxx:34
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
TrigPassFlagsCollectionCnv::TrigPassFlagsCollectionCnv
TrigPassFlagsCollectionCnv(ISvcLocator *svcloc)
Definition: TrigPassFlagsCollectionCnv.cxx:14
TrigPassFlagsCollectionCnv::m_impl
std::unique_ptr< TrigPassFlagsCollectionCnv_impl > m_impl
Definition: TrigPassFlagsCollectionCnv.h:31
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
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
TrigPassFlagsCollection
Definition: TrigPassFlagsCollection.h:16
TrigPassFlagsCollectionCnv::createPersistent
virtual TrigPassFlagsCollection_PERS * createPersistent(TrigPassFlagsCollection *transObj)
Definition: TrigPassFlagsCollectionCnv.cxx:22
TrigPassFlagsCollectionCnv.h
TrigPassFlagsCollectionCnv_impl
Definition: TrigPassFlagsCollectionCnv.cxx:10
TrigPassFlagsCollectionCnv_p1.h
TPCnvVector
Definition: TPConverter.h:1256
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigPassFlagsCollection_p1
Definition: TrigPassFlagsCollection_p1.h:10
TrigPassFlagsCollectionCnv_impl::m_TPconverter_p1
TrigPassFlagsCollectionCnv_p1 m_TPconverter_p1
Definition: TrigPassFlagsCollectionCnv.cxx:11