ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_BSIdErrContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
10
12
15 MsgStream log(msgSvc(), "TRT_BSIdErrContainerCnv" );
16 TRT_BSIdErrContainer_PERS *persObj = m_TPConverter.createPersistent( transCont, log );
17 return persObj;
18}
19
22 MsgStream log(msgSvc(), "TRT_BSIdErrContainerCnv" );
23 static const pool::Guid p1_guid("26F44F1E-D1F5-43B3-93E9-09376AB37491");
24 if( compareClassGuid(p1_guid) ) {
25 // using unique_ptr ensures deletion of the persistent object
26 std::unique_ptr< TRT_BSIdErrContainer_p1 > col_vect( poolReadObject< TRT_BSIdErrContainer_p1 >() );
27 return m_TPConverter.createTransient( col_vect.get(), log );
28 }
29 throw std::runtime_error("Unsupported persistent version of Data Collection");
30}
Generated header file which defines a typedef for templated converter class.
TRT_BSIdErrContainer_p1 TRT_BSIdErrContainer_PERS
DataVector< std::pair< uint8_t, std::pair< uint32_t, uint8_t > > > TRT_BSIdErrContainer
TRT_BSIdErrContainerCnv_p1 m_TPConverter
virtual TRT_BSIdErrContainer * createTransient()
virtual TRT_BSIdErrContainer_PERS * createPersistent(TRT_BSIdErrContainer *transCont)