ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
SCT_RawDataContainerCnv_p1.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_P1_H
6
#define SCT_RAWDATACONTAINERCNV_P1_H
7
8
// SCT_RawDataContainerCnv_p1, T/P separation of SCT Raw data
9
// author D.Costanzo <davide.costanzo@cern.ch>
10
11
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
12
#include "
InDetEventAthenaPool/SCT_RawDataContainer_p1.h
"
13
#include "
InDetRawData/SCT_RDO_Container.h
"
14
15
class
SCT_ID
;
16
17
// We do NOT use T_AthenaPoolTPCnvIDCont because we do all of the
18
// conversion in the .cxx. Same as for the LAr Raw Channels
19
// Note that this is used for a container of SCT Raw Data
20
// that containes only SCR1_RawData concrete types
21
// SCT_RDO_ContainerCnv.cxx delegates the conversion to this
22
// converter if the objects are of the correct type
23
24
25
class
SCT_RawDataContainerCnv_p1
:
public
T_AthenaPoolTPCnvBase
<SCT_RDO_Container, SCT_RawDataContainer_p1>
26
{
27
private
:
28
const
SCT_ID
*
m_sctId
=
nullptr
;
29
int
m_type
;
30
public
:
31
SCT_RawDataContainerCnv_p1
() :
m_type
(0) {};
32
33
virtual
void
persToTrans
(
const
SCT_RawDataContainer_p1
* persCont,
34
SCT_RDO_Container
* transCont,
35
MsgStream& log) ;
36
virtual
void
transToPers
(
const
SCT_RDO_Container
* transCont,
37
SCT_RawDataContainer_p1
* persCont,
38
MsgStream& log) ;
39
virtual
SCT_RDO_Container
*
createTransient
(
const
SCT_RawDataContainer_p1
* persObj, MsgStream& log) ;
40
41
// ID helper can't be used in the constructor, need initialize()
42
void
initialize
(
const
SCT_ID
* idhelper) {
m_sctId
= idhelper; }
43
void
setType
(
int
type
) {
m_type
=
type
; }
44
};
45
46
#endif
SCT_RDO_Container.h
SCT_RDO_Container
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
Definition
SCT_RDO_Container.h:23
SCT_RawDataContainer_p1.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_p1::SCT_RawDataContainerCnv_p1
SCT_RawDataContainerCnv_p1()
Definition
SCT_RawDataContainerCnv_p1.h:31
SCT_RawDataContainerCnv_p1::transToPers
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p1 *persCont, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p1.cxx:21
SCT_RawDataContainerCnv_p1::persToTrans
virtual void persToTrans(const SCT_RawDataContainer_p1 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p1.cxx:84
SCT_RawDataContainerCnv_p1::m_type
int m_type
Definition
SCT_RawDataContainerCnv_p1.h:29
SCT_RawDataContainerCnv_p1::initialize
void initialize(const SCT_ID *idhelper)
Definition
SCT_RawDataContainerCnv_p1.h:42
SCT_RawDataContainerCnv_p1::createTransient
virtual SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p1 *persObj, MsgStream &log)
Definition
SCT_RawDataContainerCnv_p1.cxx:147
SCT_RawDataContainerCnv_p1::m_sctId
const SCT_ID * m_sctId
Definition
SCT_RawDataContainerCnv_p1.h:28
SCT_RawDataContainerCnv_p1::setType
void setType(int type)
Definition
SCT_RawDataContainerCnv_p1.h:43
SCT_RawDataContainer_p1
Definition
SCT_RawDataContainer_p1.h:26
type
Generated on
for ATLAS Offline Software by
1.17.0