ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
SCT_RawDataContainerCnv_p3.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef SCT_RAWDATACONTAINERCNV_P3_H
6
#define SCT_RAWDATACONTAINERCNV_P3_H
7
8
// SCT_RawDataContainerCnv_p3, T/P separation of SCT Raw data
9
// author D.Costanzo <davide.costanzo@cern.ch>
10
11
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
12
13
#include "
InDetEventAthenaPool/SCT_RawDataContainer_p3.h
"
14
#include "
InDetRawData/SCT_RDO_Container.h
"
15
16
class
SCT_ID
;
17
18
// We do NOT use T_AthenaPoolTPCnvIDCont because we do all of the
19
// conversion in the .cxx. Same as for the LAr Raw Channels
20
// Note that this is used for a container of SCT Raw Data
21
// that containes only SCR1_RawData concrete types
22
// SCT_RDO_ContainerCnv.cxx delegates the conversion to this
23
// converter if the objects are of the correct type
24
25
26
class
SCT_RawDataContainerCnv_p3
:
public
T_AthenaPoolTPCnvBase
<SCT_RDO_Container, SCT_RawDataContainer_p3>
27
{
28
private
:
29
const
SCT_ID
*
m_sctId
;
30
int
m_type
;
31
public
:
32
SCT_RawDataContainerCnv_p3
() :
m_sctId
(nullptr),
m_type
(0) {};
33
34
virtual
void
persToTrans
(
const
SCT_RawDataContainer_p3
* persCont,
35
SCT_RDO_Container
* transCont,
36
MsgStream&
log
) ;
37
virtual
void
transToPers
(
const
SCT_RDO_Container
* transCont,
38
SCT_RawDataContainer_p3
* persCont,
39
MsgStream&
log
) ;
40
virtual
SCT_RDO_Container
*
createTransient
(
const
SCT_RawDataContainer_p3
* persObj, MsgStream&
log
) ;
41
42
43
// ID helper can't be used in the constructor, need initialize()
44
void
initialize
(
const
SCT_ID
* idhelper) {
m_sctId
= idhelper; }
45
void
setType
(
int
type
) {
m_type
=
type
; }
46
};
47
48
#endif
SCT_RawDataContainerCnv_p3
Definition:
SCT_RawDataContainerCnv_p3.h:27
SCT_RawDataContainerCnv_p3::transToPers
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p3 *persCont, MsgStream &log)
Definition:
SCT_RawDataContainerCnv_p3.cxx:23
SCT_RawDataContainerCnv_p3::persToTrans
virtual void persToTrans(const SCT_RawDataContainer_p3 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
Definition:
SCT_RawDataContainerCnv_p3.cxx:109
TPConverterBase
Definition:
TPConverter.h:738
SCT_RawDataContainerCnv_p3::m_type
int m_type
Definition:
SCT_RawDataContainerCnv_p3.h:30
InDetRawDataContainer
Definition:
InDetRawDataContainer.h:27
SCT_RawDataContainerCnv_p3::SCT_RawDataContainerCnv_p3
SCT_RawDataContainerCnv_p3()
Definition:
SCT_RawDataContainerCnv_p3.h:32
SCT_RDO_Container.h
SCT_RawDataContainer_p3.h
T_AthenaPoolTPConverter.h
SCT_RawDataContainerCnv_p3::setType
void setType(int type)
Definition:
SCT_RawDataContainerCnv_p3.h:45
SCT_RawDataContainerCnv_p3::createTransient
virtual SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p3 *persObj, MsgStream &log)
Definition:
SCT_RawDataContainerCnv_p3.cxx:194
SCT_RawDataContainerCnv_p3::m_sctId
const SCT_ID * m_sctId
Definition:
SCT_RawDataContainerCnv_p3.h:29
SCT_ID
Definition:
SCT_ID.h:68
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
SCT_RawDataContainer_p3
Persistent represenation of an SCT_RawDataContainer.
Definition:
SCT_RawDataContainer_p3.h:24
SCT_RawDataContainerCnv_p3::initialize
void initialize(const SCT_ID *idhelper)
Definition:
SCT_RawDataContainerCnv_p3.h:44
Generated on Thu Nov 7 2024 21:25:33 for ATLAS Offline Software by
1.8.18