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