ATLAS Offline Software
Loading...
Searching...
No Matches
IDCInDetBSErrContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
9 MsgStream log(msgSvc(), "IDCInDetBSErrContainer" );
10 IDCBSErrContainer_PERS *persObj = m_TPConverter.createPersistent( transCont, log );
11 return persObj;
12}
13
14
17 MsgStream log(msgSvc(), "IDC_BSErrContainerCnv" );
18 const pool::Guid p1_guid("84056F02-9D9F-4D0C-8D5A-C6C686F5CF76");
19 if( compareClassGuid(p1_guid) ) {
20 // using unique_ptr ensures deletion of the persistent object
21 std::unique_ptr< InDetBSErrContainer64_p1 > col_vect( poolReadObject< InDetBSErrContainer64_p1 >() );
22 return m_TPConverter.createTransient( col_vect.get(), log );
23 }
24 throw std::runtime_error("Unsupported persistent version of Data Collection");
25}
26
27
InDetBSErrContainer64_p1 IDCBSErrContainer_PERS
IDCInDetBSErrContainerCnv_p1 m_TPConverter
virtual IDCBSErrContainer_PERS * createPersistent(IDCInDetBSErrContainer *transCont)
virtual IDCInDetBSErrContainer * createTransient()
IDC like storage for BS errors, TODO, customise implementation further so that we store int rather th...