ATLAS Offline Software
TrigTrackCountsCollectionCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
10  m_msgSvc( msgSvc() ),
11  m_log( m_msgSvc, "TrigTrackCountsCollectionCnv" ),
13 {}
14 
16 {
17  delete m_TPConverter;
18 }
19 
20 //createPersistent
22 {
23  MsgStream mlog(msgSvc(), "TrigTrackCountsCollectionConverter" );
24 
25  mlog << MSG::DEBUG << "TrigTrackCountsCollectionCnv::createPersistent called" << endmsg;
26 
28 
29  return p_cont;
30 
31 }//end of create persistent method
32 
33 
34 //createTransient
36 {
37  MsgStream mlog(msgSvc(), "TrigTrackCountsCollectionConverter" );
38 
39  mlog << MSG::DEBUG << "TrigTrackCountsCollectionCnv::createTransient called" << endmsg;
40 
41  static const pool::Guid tlp1_guid( "FCEB4390-F8FB-4C93-9538-105BCABE487C" );
42  static const pool::Guid p0_guid( "7A4412AD-C11D-4EFD-AE15-D343D2CB28BC" );
43 
44  TrigTrackCountsCollection *p_collection = 0;
45  if( compareClassGuid( tlp1_guid ) )
46  {
47  poolReadObject< TrigTrackCountsCollection_PERS >(*m_TPConverter);
48  p_collection = m_TPConverter->createTransient( m_log );
49 
50  }else if( compareClassGuid( p0_guid ) ){
51 
52  p_collection = poolReadObject< TrigTrackCountsCollection >();
53 
54  }else throw std::runtime_error( "Unsupported persistent version of TrigTrackCountsCollection" );
55 
56  return p_collection;
57 
58 }//end of create transient method
59 
TrigTrackCountsCollectionCnv::m_TPConverter
TrigTrackCountsCollectionCnv_tlp1 * m_TPConverter
Definition: TrigTrackCountsCollectionCnv.h:58
TrigTrackCountsCollectionCnv::~TrigTrackCountsCollectionCnv
~TrigTrackCountsCollectionCnv()
Definition: TrigTrackCountsCollectionCnv.cxx:15
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigTrackCountsCollectionCnv.h
TrigTrackCountsCollectionCnv::TrigTrackCountsCollectionCnv
TrigTrackCountsCollectionCnv(ISvcLocator *svcloc)
Definition: TrigTrackCountsCollectionCnv.cxx:8
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigTrackCountsCollection
Definition: TrigTrackCountsCollection.h:13
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
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTrackCountsCollection_tlp1
Definition: TrigTrackCountsCollection_tlp1.h:26
TrigTrackCountsCollectionCnv_tlp1
Definition: TrigTrackCountsCollectionCnv_tlp1.h:29
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigTrackCountsCollectionCnv::createPersistent
virtual TrigTrackCountsCollection_PERS * createPersistent(TrigTrackCountsCollection *transObj)
Definition: TrigTrackCountsCollectionCnv.cxx:21
TrigTrackCountsCollectionCnv::createTransient
virtual TrigTrackCountsCollection * createTransient()
Definition: TrigTrackCountsCollectionCnv.cxx:35
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigTrackCountsCollectionCnv_tlp1.h
TrigTrackCountsCollectionCnv::m_log
MsgStream m_log
Definition: TrigTrackCountsCollectionCnv.h:56