ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_RawDataContainerCnv_charge.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 MsgStream log(msgSvc(), "ALFA_RawDataContainerCnv_charge");
10if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataContainerCnv_charge::createPersistent" << endmsg;
11
13ALFA_RawDataContainer_charge_PERS* persCont = TPConverter.createPersistent(transCont, log);
14
15if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "Wrote persistent BCM RDO Container with " << persCont->size() << " entries" << endmsg;
16 return persCont;
17
18}
19
21
22 MsgStream log(msgSvc(), "ALFA_RawDataContainerCnv_charge");
23if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In ALFA_RawDataContainerCnv_charge::createTransient" << endmsg;
24
26 ALFA_RawDataContainer_charge* transCont(nullptr);
27
28static const pool::Guid p1_guid("0C023583-E3D4-4C7D-9B20-B6B2A1018D2F");
29
30if (this->compareClassGuid(p1_guid)) {
31
32 std::unique_ptr< ALFA_RawDataContainer_charge_p1 > persCont(poolReadObject< ALFA_RawDataContainer_charge_p1 >());
33
34 transCont = TPConverter_p1.createTransient(persCont.get(), log);
35 }
36 else throw std::runtime_error("Unsupported persistent version of Data container");
37
38
39return transCont;
40
41
42}
43
44
45
ALFA_RawDataContainer_charge_p1 ALFA_RawDataContainer_charge_PERS
#define endmsg
static const LVL1_ROICnv_p1 TPConverter
virtual ALFA_RawDataContainer_charge * createTransient()
virtual ALFA_RawDataContainer_charge_PERS * createPersistent(ALFA_RawDataContainer_charge *transCont)
This container provides acces to the PMF RDOs.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.