ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrTPCnv
src
TrkGeometry
HomogeneousLayerMaterialCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// HomogeneousLayerMaterialCnv_p1.cxx, (c) ATLAS Detector software
8
9
#include "
TrkGeometry/HomogeneousLayerMaterial.h
"
10
#include "
TrkGeometry/MaterialProperties.h
"
11
#include "
TrkDetDescrTPCnv/TrkGeometry/HomogeneousLayerMaterialCnv_p1.h
"
12
13
14
void
HomogeneousLayerMaterialCnv_p1::persToTrans
(
const
Trk::HomogeneousLayerMaterial_p1
*persObj,
15
Trk::HomogeneousLayerMaterial
*transObj,
16
MsgStream &mlog )
17
{
18
19
20
21
// create the persistent material properties
22
// pointer to converter (will be auto-retrieved)
23
ITPConverterFor<Trk::MaterialProperties>
*materialCnv =
nullptr
;
24
transObj->
m_fullMaterial
= std::unique_ptr<Trk::MaterialProperties>(
createTransFromPStore
( &materialCnv, persObj->
material
, mlog ));
25
transObj->
m_splitFactor
= persObj->
splitFactor
;
26
27
}
28
29
void
HomogeneousLayerMaterialCnv_p1::transToPers
(
const
Trk::HomogeneousLayerMaterial
*transObj,
30
Trk::HomogeneousLayerMaterial_p1
*persObj,
31
MsgStream &mlog )
32
{
33
// assign the split factor
34
persObj->
splitFactor
= transObj->
m_splitFactor
;
35
36
// create the persistent material properties
37
// pointer to converter (will be auto-retrieved)
38
ITPConverterFor<Trk::MaterialProperties>
*materialCnv =
nullptr
;
39
persObj->
material
=
toPersistent
( &materialCnv, transObj->
m_fullMaterial
.get(), mlog );
40
}
HomogeneousLayerMaterialCnv_p1.h
HomogeneousLayerMaterial.h
MaterialProperties.h
HomogeneousLayerMaterialCnv_p1::persToTrans
void persToTrans(const Trk::HomogeneousLayerMaterial_p1 *, Trk::HomogeneousLayerMaterial *, MsgStream &)
Definition
HomogeneousLayerMaterialCnv_p1.cxx:14
HomogeneousLayerMaterialCnv_p1::transToPers
void transToPers(const Trk::HomogeneousLayerMaterial *, Trk::HomogeneousLayerMaterial_p1 *, MsgStream &)
Definition
HomogeneousLayerMaterialCnv_p1.cxx:29
ITPConverterFor< TRANS_BASE >::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Definition
TPConverter.h:172
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Definition
TPConverter.h:119
ITPConverterFor< TRANS_BASE >::ITPConverterFor
ITPConverterFor()
Definition
TPConverter.h:43
Trk::HomogeneousLayerMaterial_p1
Definition
HomogeneousLayerMaterial_p1.h:20
Trk::HomogeneousLayerMaterial_p1::material
TPObjRef material
Definition
HomogeneousLayerMaterial_p1.h:26
Trk::HomogeneousLayerMaterial_p1::splitFactor
float splitFactor
Definition
HomogeneousLayerMaterial_p1.h:27
Trk::HomogeneousLayerMaterial
It extends the LayerMaterialProperties base class.
Definition
HomogeneousLayerMaterial.h:53
Trk::HomogeneousLayerMaterial::m_fullMaterial
std::unique_ptr< MaterialProperties > m_fullMaterial
The five different MaterialProperties.
Definition
HomogeneousLayerMaterial.h:108
Trk::LayerMaterialProperties::m_splitFactor
double m_splitFactor
the split factor in favour of oppositePre
Definition
LayerMaterialProperties.h:134
Generated on
for ATLAS Offline Software by
1.17.0