ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_RawDataContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9// std::cout << " Container, cago bello T->P " << std::endl;
10
11 MsgStream log(msgSvc(), "ALFA_RawDataContainerCnv");
12if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataContainerCnv::createPersistent" << endmsg;
13
15ALFA_RawDataContainer_PERS* persCont = TPConverter.createPersistent(transCont, log);
16
17if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "Wrote persistent BCM RDO Container with " << persCont->size() << " entries" << endmsg;
18 return persCont;
19
20}
21
23
24 MsgStream log(msgSvc(), "ALFA_RawDataContainerCnv");
25if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataContainerCnv::createTransient" << endmsg;
26
27// std::cout << "Container, bello cago P->T " << std::endl;
28
29 ALFA_RawDataContainerCnv_p1 TPConverter_p1;
30 ALFA_RawDataContainer* transCont(nullptr);
31
32static const pool::Guid p1_guid("0C023583-E3D4-4C7D-9B20-B6B2A1018D2F");
33
34if (this->compareClassGuid(p1_guid)) {
35
36 std::unique_ptr< ALFA_RawDataContainer_p1 > persCont(poolReadObject< ALFA_RawDataContainer_p1 >());
37
38 transCont = TPConverter_p1.createTransient(persCont.get(), log);
39 }
40 else throw std::runtime_error("Unsupported persistent version of Data container");
41
42
43return transCont;
44
45
46}
47
48
49
ALFA_RawDataContainer_p1 ALFA_RawDataContainer_PERS
#define endmsg
static const LVL1_ROICnv_p1 TPConverter
virtual ALFA_RawDataContainer_PERS * createPersistent(ALFA_RawDataContainer *transCont)
virtual ALFA_RawDataContainer * createTransient()
This container provides acces to the PMF RDOs.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.