ATLAS Offline Software
TrigPassBitsCollectionCnv.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(), "TrigPassBitsCollectionConverter" );
25 
26  TrigPassBitsCollection_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(), "TrigPassBitsCollectionConverter" );
37 
38  static const pool::Guid p1_guid( "E6E4F396-D696-4C1C-A0C4-7766E0AF9BB5" );
39 
40  // TrigPassBitsCollection *p_collection = 0;
41  if( compareClassGuid( p1_guid ) )
42  {
43  std::unique_ptr< TrigPassBitsCollection_p1 > col_vect( poolReadObject< TrigPassBitsCollection_p1 >() );
44  return m_impl->m_TPconverter_p1.createTransient( col_vect.get(), mlog ) ;
45  }
46  else throw std::runtime_error( "Unsupported persistent version of TrigPassBitsCollection" );
47 
48 }//end of create transient method
49 
TrigPassBitsCollection
Definition: TrigPassBitsCollection.h:17
TrigPassBitsCollection_impl
Definition: TrigPassBitsCollectionCnv.cxx:10
TrigPassBitsCollectionCnv::TrigPassBitsCollectionCnv
TrigPassBitsCollectionCnv(ISvcLocator *svcloc)
Definition: TrigPassBitsCollectionCnv.cxx:14
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
TrigPassBitsCollectionCnv.h
TrigPassBitsCollectionCnv_p1.h
TrigPassBitsCollectionCnv::m_impl
std::unique_ptr< TrigPassBitsCollection_impl > m_impl
Definition: TrigPassBitsCollectionCnv.h:32
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigPassBitsCollectionCnv::createPersistent
virtual TrigPassBitsCollection_PERS * createPersistent(TrigPassBitsCollection *transObj)
Definition: TrigPassBitsCollectionCnv.cxx:22
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
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
TrigPassBitsCollectionCnv::~TrigPassBitsCollectionCnv
~TrigPassBitsCollectionCnv()
TrigPassBitsCollection_p1.h
TrigPassBitsCollection_p1
Definition: TrigPassBitsCollection_p1.h:10
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.
TrigPassBitsCollectionCnv::createTransient
virtual TrigPassBitsCollection * createTransient()
Definition: TrigPassBitsCollectionCnv.cxx:34
TrigPassBitsCollection_impl::m_TPconverter_p1
TrigPassBitsCollectionCnv_p1 m_TPconverter_p1
Definition: TrigPassBitsCollectionCnv.cxx:11