ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
PixelRDO_ContainerCnv_p0.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PIXELRDO_CONTAINERCNV_P0_H
6
#define PIXELRDO_CONTAINERCNV_P0_H
7
8
#include "
AthContainers/DataVector.h
"
9
10
#include "
InDetRawData/PixelRDO_Container.h
"
11
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
12
#include "
InDetRawData/Pixel1RawData.h
"
13
14
class
PixelID
;
15
16
typedef
DataVector<InDetRawDataCollection< Pixel1RawData >
>
PixelRDO_Container_p0
;
17
18
class
MsgStream;
19
class
PixelRDO_ContainerCnv_p0
:
public
T_AthenaPoolTPCnvBase
<PixelRDO_Container, PixelRDO_Container_p0> {
20
const
PixelID
*
m_pixId
{
nullptr
};
21
public
:
22
virtual
void
persToTrans
(
const
PixelRDO_Container_p0
*,
PixelRDO_Container
*, MsgStream&) {
23
// everything is done in createTransient()
24
}
25
26
virtual
void
transToPers
(
const
PixelRDO_Container
*,
PixelRDO_Container_p0
*, MsgStream&) {
27
throw
std::runtime_error(
"Writing Pixel RDOs in the old format is not supported"
);
28
}
29
30
virtual
PixelRDO_Container
*
createTransient
(
const
PixelRDO_Container_p0
* persObj, MsgStream&
log
);
31
32
// ID helper can't be used in the constructor, need initialize()
33
void
initialize
(
const
PixelID
*idhelper) {
m_pixId
= idhelper; }
34
};
35
36
#endif
/*PIXELRDO_CONTAINERCNV_P0_H*/
PixelRDO_ContainerCnv_p0::persToTrans
virtual void persToTrans(const PixelRDO_Container_p0 *, PixelRDO_Container *, MsgStream &)
Definition:
PixelRDO_ContainerCnv_p0.h:22
PixelRDO_ContainerCnv_p0::m_pixId
const PixelID * m_pixId
Definition:
PixelRDO_ContainerCnv_p0.h:20
PixelRDO_ContainerCnv_p0
Definition:
PixelRDO_ContainerCnv_p0.h:19
TPConverterBase
Definition:
TPConverter.h:738
InDetRawDataContainer
Definition:
InDetRawDataContainer.h:27
PixelRDO_Container_p0
DataVector< InDetRawDataCollection< Pixel1RawData > > PixelRDO_Container_p0
Definition:
PixelRDO_ContainerCnv_p0.h:14
T_AthenaPoolTPConverter.h
Pixel1RawData.h
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
PixelRDO_ContainerCnv_p0::initialize
void initialize(const PixelID *idhelper)
Definition:
PixelRDO_ContainerCnv_p0.h:33
PixelRDO_Container.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
PixelRDO_ContainerCnv_p0::createTransient
virtual PixelRDO_Container * createTransient(const PixelRDO_Container_p0 *persObj, MsgStream &log)
Definition:
PixelRDO_ContainerCnv_p0.cxx:19
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
PixelRDO_ContainerCnv_p0::transToPers
virtual void transToPers(const PixelRDO_Container *, PixelRDO_Container_p0 *, MsgStream &)
Definition:
PixelRDO_ContainerCnv_p0.h:26
PixelID
Definition:
PixelID.h:67
Generated on Sun Dec 22 2024 21:16:29 for ATLAS Offline Software by
1.8.18