ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
SCT_ClusterContainerCnv_p0.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_CLUSTERCONTAINERCNV_P0_H
6
#define SCT_CLUSTERCONTAINERCNV_P0_H
7
8
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
9
#include "
InDetPrepRawData/SCT_ClusterContainer.h
"
10
#include "
AthContainers/DataVector.h
"
11
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
14
typedef
DataVector<Trk::PrepRawDataCollection<InDet::SCT_Cluster>
>
SCT_ClusterContainer_p0
;
15
16
class
SCT_ID
;
17
class
MsgStream;
18
19
class
SCT_ClusterContainerCnv_p0
:
public
T_AthenaPoolTPCnvBase
<InDet::SCT_ClusterContainer, SCT_ClusterContainer_p0> {
20
public
:
21
SCT_ClusterContainerCnv_p0
();
22
23
// ID helper can't be used in the constructor, need initialize()
24
StatusCode
initialize
( MsgStream& log );
25
26
virtual
void
persToTrans
(
const
SCT_ClusterContainer_p0
*, InDet::SCT_ClusterContainer*, MsgStream&)
override
{
27
// everything is done in createTransient()
28
}
29
30
virtual
void
transToPers
(
const
InDet::SCT_ClusterContainer*,
SCT_ClusterContainer_p0
*, MsgStream&)
override
{
31
throw
std::runtime_error(
"Writing SCT PRDs in the old format is not supported"
);
32
}
33
34
virtual
InDet::SCT_ClusterContainer*
createTransient
(
const
SCT_ClusterContainer_p0
*
/*persObj*/
, MsgStream&
/*log*/
)
override
{
35
std::abort();
36
}
37
38
InDet::SCT_ClusterContainer*
createTransient
(
SCT_ClusterContainer_p0
* persObj, MsgStream& log);
39
40
private
:
41
const
SCT_ID
*
m_sctId
;
42
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_SCTDetEleCollKey
;
43
};
44
45
#endif
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
ReadCondHandleKey.h
SCT_ClusterContainer_p0
DataVector< Trk::PrepRawDataCollection< InDet::SCT_Cluster > > SCT_ClusterContainer_p0
Definition
SCT_ClusterContainerCnv_p0.h:14
SCT_ClusterContainer.h
SiDetectorElementCollection.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
SCT_ClusterContainerCnv_p0::SCT_ClusterContainerCnv_p0
SCT_ClusterContainerCnv_p0()
Definition
SCT_ClusterContainerCnv_p0.cxx:25
SCT_ClusterContainerCnv_p0::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition
SCT_ClusterContainerCnv_p0.h:42
SCT_ClusterContainerCnv_p0::m_sctId
const SCT_ID * m_sctId
Definition
SCT_ClusterContainerCnv_p0.h:41
SCT_ClusterContainerCnv_p0::persToTrans
virtual void persToTrans(const SCT_ClusterContainer_p0 *, InDet::SCT_ClusterContainer *, MsgStream &) override
Definition
SCT_ClusterContainerCnv_p0.h:26
SCT_ClusterContainerCnv_p0::createTransient
virtual InDet::SCT_ClusterContainer * createTransient(const SCT_ClusterContainer_p0 *, MsgStream &) override
Definition
SCT_ClusterContainerCnv_p0.h:34
SCT_ClusterContainerCnv_p0::transToPers
virtual void transToPers(const InDet::SCT_ClusterContainer *, SCT_ClusterContainer_p0 *, MsgStream &) override
Definition
SCT_ClusterContainerCnv_p0.h:30
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0