ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEventAthenaPool/src/TrigTauTracksInfo.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
17
18//create persistent
20{
21 MsgStream mlog(msgSvc(), "TrigTauTracksInfoConverter" );
22 mlog << MSG::DEBUG << "TrigTauTracksInfoCnv::createPersistent" << endmsg;
23
24 TrigTauTracksInfo_PERS *persObj = m_TPConverter->createPersistent( transCont, mlog );
25
26 return persObj;
27}
28
29//create transient
31{
32 MsgStream mlog(msgSvc(), "TrigTauTracksInfoConverter" );
33 mlog << MSG::DEBUG << "TrigTauTracksInfoCnv::createTransient " << endmsg;
34
35 static const pool::Guid tlp1_guid("ABF3C91C-A007-440E-8AEE-753FAA453352");
36 static const pool::Guid p0_guid("630E4944-7EDE-4938-B189-020DBC0436AE");
37
38 TrigTauTracksInfo *trans_cont(0);
39
40 if( compareClassGuid(tlp1_guid) ) {
41
42 mlog << MSG::DEBUG << "TrigTauTracksInfoCnv::reading tlp1 persistent object" << endmsg;
43 std::unique_ptr< TrigTauTracksInfo_tlp1 > col_vect( this->poolReadObject< TrigTauTracksInfo_tlp1 >() );
44 trans_cont = m_TPConverter->createTransient( col_vect.get(), mlog );
45
46 }
47 else if( compareClassGuid(p0_guid) ) {
48
49 mlog << MSG::DEBUG << "TrigTauTracksInfoCnv::reading p0 persistent object" << endmsg;
50 // old version from before TP separation, just return it
51 trans_cont = this->poolReadObject<TrigTauTracksInfo>();
52
53 } else {
54
55 throw std::runtime_error("Unsupported persistent version of Data container");
56
57 }
58
59 return trans_cont;
60
61}
#define endmsg
TrigTauTracksInfo_tlp1 TrigTauTracksInfo_PERS
Compatibility for old converter classes that don't get passed the key.
TrigTauTracksInfo_PERS * createPersistent(TrigTauTracksInfo *transCont)
TrigTauTracksInfoCnv_tlp1 * m_TPConverter
Contains basic information about trackc collection associated with Tau RoI.