ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
SCT_RawDataContainerCnv_p4.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_P4_H
6
#define SCT_RAWDATACONTAINERCNV_P4_H
7
8
// SCT_RawDataContainerCnv_p4, T/P separation of SCT Raw data
9
// author Susumu Oda <Susumu.Oda@cern.ch>
10
11
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
12
13
#include "
InDetEventAthenaPool/SCT_RawDataContainer_p4.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_p4
:
public
T_AthenaPoolTPCnvBase
<SCT_RDO_Container, SCT_RawDataContainer_p4>
27
{
28
private
:
29
const
SCT_ID
*
m_sctId
;
30
int
m_type
;
31
public
:
32
SCT_RawDataContainerCnv_p4
() :
m_sctId
(nullptr),
m_type
(0) {};
33
34
virtual
void
persToTrans
(
const
SCT_RawDataContainer_p4
* persCont,
35
SCT_RDO_Container
* transCont,
36
MsgStream& log);
37
virtual
void
transToPers
(
const
SCT_RDO_Container
* transCont,
38
SCT_RawDataContainer_p4
* persCont,
39
MsgStream& log);
40
virtual
SCT_RDO_Container
*
createTransient
(
const
SCT_RawDataContainer_p4
* persObj, MsgStream& log);
41
42
// ID helper can't be used in the constructor, need initialize()
43
void
initialize
(
const
SCT_ID
* idhelper) {
m_sctId
= idhelper; }
44
void
setType
(
int
type
) {
m_type
=
type
; }
45
};
46
47
#endif
// SCT_RAWDATACONTAINERCNV_P4_H
SCT_RDO_Container.h
SCT_RDO_Container
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
Definition
SCT_RDO_Container.h:23
SCT_RawDataContainer_p4.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SCT_RawDataContainerCnv_p4::transToPers
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p4 *persCont, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p4.cxx:22
SCT_RawDataContainerCnv_p4::SCT_RawDataContainerCnv_p4
SCT_RawDataContainerCnv_p4()
Definition
SCT_RawDataContainerCnv_p4.h:32
SCT_RawDataContainerCnv_p4::initialize
void initialize(const SCT_ID *idhelper)
Definition
SCT_RawDataContainerCnv_p4.h:43
SCT_RawDataContainerCnv_p4::createTransient
virtual SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p4 *persObj, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p4.cxx:190
SCT_RawDataContainerCnv_p4::setType
void setType(int type)
Definition
SCT_RawDataContainerCnv_p4.h:44
SCT_RawDataContainerCnv_p4::m_sctId
const SCT_ID * m_sctId
Definition
SCT_RawDataContainerCnv_p4.h:29
SCT_RawDataContainerCnv_p4::persToTrans
virtual void persToTrans(const SCT_RawDataContainer_p4 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p4.cxx:86
SCT_RawDataContainerCnv_p4::m_type
int m_type
Definition
SCT_RawDataContainerCnv_p4.h:30
SCT_RawDataContainer_p4
Definition
SCT_RawDataContainer_p4.h:25
type
Generated on
for ATLAS Offline Software by
1.17.0