ATLAS Offline Software
Loading...
Searching...
No Matches
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}
void persToTrans(const Trk::HomogeneousLayerMaterial_p1 *, Trk::HomogeneousLayerMaterial *, MsgStream &)
void transToPers(const Trk::HomogeneousLayerMaterial *, Trk::HomogeneousLayerMaterial_p1 *, MsgStream &)
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
It extends the LayerMaterialProperties base class.
std::unique_ptr< MaterialProperties > m_fullMaterial
The five different MaterialProperties.
double m_splitFactor
the split factor in favour of oppositePre