ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20//createPersistent
22{
23 MsgStream mlog(msgSvc(), "TrigTrackCountsCollectionConverter" );
24
25 mlog << MSG::DEBUG << "TrigTrackCountsCollectionCnv::createPersistent called" << endmsg;
26
27 TrigTrackCountsCollection_PERS * p_cont = m_TPConverter->createPersistent( transObj, m_log );
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 {
48 p_collection = m_TPConverter->createTransient( m_log );
49
50 }else if( compareClassGuid( p0_guid ) ){
51
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
#define endmsg
T_AthenaPoolCustomCnv< TrigTrackCountsCollection, TrigTrackCountsCollection_PERS > TrigTrackCountsCollectionCnvBase
TrigTrackCountsCollection_tlp1 TrigTrackCountsCollection_PERS
virtual TrigTrackCountsCollection_PERS * createPersistent(TrigTrackCountsCollection *transObj)
TrigTrackCountsCollectionCnv_tlp1 * m_TPConverter
virtual TrigTrackCountsCollection * createTransient()