ATLAS Offline Software
Loading...
Searching...
No Matches
TrigInDetTrackCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
10
13
16
19
20//constructor
25
26//destructor
31
32
33//create persistent
35 MsgStream mlog(msgSvc(), "TrigInDetTrackCollectionConverter" );
36 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::createPersistent" << endmsg;
37
38 TrigInDetTrackCollection_PERS* persObj = m_tlp_Converter->createPersistent( transObj, mlog );
39
40 return persObj;
41}
42
43//create transient
45
46 MsgStream mlog(msgSvc(), "TrigInDetTrackCollectionConverter" );
47 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::createTransient " << endmsg;
48
49 static const pool::Guid tlp4_guid("E1B8EE19-4F7B-4EF2-8FDC-45AA871BD628");
50 static const pool::Guid tlp3_guid("196F811B-382D-47A9-8551-D2038343BFFA");
51 static const pool::Guid tlp2_guid("4DBBB46F-33C9-4571-AE5E-A2335D7A2976");
52 static const pool::Guid tlp1_guid("0B5CA4CA-0A0F-43DC-8973-0E2212B2E8DA");
53 static const pool::Guid p0_guid("5F6029E6-764B-4126-891D-73BFC3CC391C");
54
55 TrigInDetTrackCollection *transObj = 0;
56 if( compareClassGuid(tlp4_guid) ) {
57
58 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::reading tlp4 persistent object" << endmsg;
61 transObj = tlp4_Converter.createTransient( mlog );
62 } else if( compareClassGuid(tlp3_guid) ) {
63
64 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::reading tlp3 persistent object" << endmsg;
67 transObj = tlp3_Converter.createTransient( mlog );
68 } else if( compareClassGuid(tlp2_guid) ) {
69
70 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::reading tlp2 persistent object" << endmsg;
73 transObj = tlp2_Converter.createTransient( mlog );
74 } else if( compareClassGuid(tlp1_guid) ) {
75
76 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::reading tlp1 persistent object" << endmsg;
79 transObj = tlp1_Converter.createTransient( mlog );
80
81 }
82
83 else if( compareClassGuid(p0_guid) ) {
84
85 mlog << MSG::DEBUG << "TrigInDetTrackCollectionCnv::reading p0 persistent object" << endmsg;
86 // old version from before TP separation, just return it
88 }
89 else {
90 throw std::runtime_error("Unsupported persistent version of Data container");
91 }
92
93 return transObj;
94}
#define endmsg
TrigInDetTrackCollectionCnv_tlp4 TrigInDetTrackCollectionCnv_PERS
T_AthenaPoolCustomCnv< TrigInDetTrackCollection, TrigInDetTrackCollection_PERS > TrigInDetTrackCollectionCnvBase
TrigInDetTrackCollection_tlp4 TrigInDetTrackCollection_PERS
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
virtual TrigInDetTrackCollection_PERS * createPersistent(TrigInDetTrackCollection *transObj)
TrigInDetTrackCollectionCnv_PERS * m_tlp_Converter
virtual TrigInDetTrackCollection * createTransient()