ATLAS Offline Software
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 
12 
13 
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 
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 }
ITPConverterFor
Definition: TPConverter.h:37
MaterialProperties.h
HomogeneousLayerMaterial.h
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:126
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
Trk::HomogeneousLayerMaterial_p1::material
TPObjRef material
Definition: HomogeneousLayerMaterial_p1.h:26
HomogeneousLayerMaterialCnv_p1::transToPers
void transToPers(const Trk::HomogeneousLayerMaterial *, Trk::HomogeneousLayerMaterial_p1 *, MsgStream &)
Definition: HomogeneousLayerMaterialCnv_p1.cxx:29
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
HomogeneousLayerMaterialCnv_p1::persToTrans
void persToTrans(const Trk::HomogeneousLayerMaterial_p1 *, Trk::HomogeneousLayerMaterial *, MsgStream &)
Definition: HomogeneousLayerMaterialCnv_p1.cxx:14
Trk::HomogeneousLayerMaterial_p1::splitFactor
float splitFactor
Definition: HomogeneousLayerMaterial_p1.h:27
Trk::HomogeneousLayerMaterial_p1
Definition: HomogeneousLayerMaterial_p1.h:20
Trk::HomogeneousLayerMaterial
Definition: HomogeneousLayerMaterial.h:53
HomogeneousLayerMaterialCnv_p1.h
ITPConverterFor< TRANS_BASE >::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172