ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrAthenaPool
src
LayerMaterialMapCnv.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// LayerMaterialMapCnv.h, (c) ATLAS Detector software
8
9
#ifndef TRK_LAYERMATERIALMAP_CNV_H
10
#define TRK_LAYERMATERIALMAP_CNV_H
11
12
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
13
#include "GaudiKernel/MsgStream.h"
14
15
#include "
TrkGeometry/LayerMaterialMap.h
"
16
#include "
TrkDetDescrTPCnv/LayerMaterialMapCnv_tlp1.h
"
17
18
//-----------------------------------------------------------------------------
19
// Base class definition
20
//-----------------------------------------------------------------------------
21
typedef
Trk::LayerMaterialMap_tlp1
LayerMaterialMap_PERS
;
22
23
typedef
T_AthenaPoolCustomCnvWithKey<Trk::LayerMaterialMap, LayerMaterialMap_PERS>
LayerMaterialMapCnvBase
;
24
25
//-----------------------------------------------------------------------------
26
// Converter for TrackCollection object
27
//-----------------------------------------------------------------------------
28
class
LayerMaterialMapCnv
:
public
LayerMaterialMapCnvBase
29
{
30
friend
class
CnvFactory
<
LayerMaterialMapCnv
>;
31
32
protected
:
33
public
:
34
LayerMaterialMapCnv
( ISvcLocator *svcloc );
35
protected
:
36
virtual
StatusCode
initialize
()
override
;
37
38
virtual
LayerMaterialMap_PERS
*
createPersistentWithKey
(
Trk::LayerMaterialMap
*transCont,
39
const
std::string& key)
override
;
40
virtual
Trk::LayerMaterialMap
*
createTransientWithKey
(
const
Token
* token,
41
const
std::string& key)
override
;
42
43
virtual
TopLevelTPCnvBase
*
getTopLevelTPCnv
() {
return
&
m_TPConverter_tlp1
; }
44
45
private
:
46
IMessageSvc *
m_msgSvc
;
47
LayerMaterialMapCnv_tlp1
m_TPConverter_tlp1
;
48
};
49
50
51
#endif
// TRK_LAYERMATERIALMAP_CNV_H
LayerMaterialMap_PERS
Trk::LayerMaterialMap_tlp1 LayerMaterialMap_PERS
Definition
LayerMaterialMapCnv.h:21
LayerMaterialMapCnvBase
T_AthenaPoolCustomCnvWithKey< Trk::LayerMaterialMap, LayerMaterialMap_PERS > LayerMaterialMapCnvBase
Definition
LayerMaterialMapCnv.h:23
LayerMaterialMapCnv_tlp1.h
LayerMaterialMap.h
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
LayerMaterialMapCnv_tlp1
Definition
LayerMaterialMapCnv_tlp1.h:24
LayerMaterialMapCnv::getTopLevelTPCnv
virtual TopLevelTPCnvBase * getTopLevelTPCnv()
Definition
LayerMaterialMapCnv.h:43
LayerMaterialMapCnv::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition
LayerMaterialMapCnv.cxx:24
LayerMaterialMapCnv::m_TPConverter_tlp1
LayerMaterialMapCnv_tlp1 m_TPConverter_tlp1
Definition
LayerMaterialMapCnv.h:47
LayerMaterialMapCnv::createTransientWithKey
virtual Trk::LayerMaterialMap * createTransientWithKey(const Token *token, const std::string &key) override
method to be implemented by the developer.
Definition
LayerMaterialMapCnv.cxx:54
LayerMaterialMapCnv::LayerMaterialMapCnv
LayerMaterialMapCnv(ISvcLocator *svcloc)
Definition
LayerMaterialMapCnv.cxx:15
LayerMaterialMapCnv::m_msgSvc
IMessageSvc * m_msgSvc
Definition
LayerMaterialMapCnv.h:46
LayerMaterialMapCnv::createPersistentWithKey
virtual LayerMaterialMap_PERS * createPersistentWithKey(Trk::LayerMaterialMap *transCont, const std::string &key) override
method to be implemented by the developer.
Definition
LayerMaterialMapCnv.cxx:42
T_AthenaPoolCustomCnvWithKey< Trk::LayerMaterialMap, LayerMaterialMap_PERS >::T_AthenaPoolCustomCnvWithKey
T_AthenaPoolCustomCnvWithKey(ISvcLocator *pSvcLocator, const char *name=nullptr)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
TopLevelTPCnvBase
Base class for top-level TP converters.
Definition
TopLevelTPCnvBase.h:32
Trk::LayerMaterialMap_tlp1
Definition
LayerMaterialMap_tlp1.h:28
Trk::LayerMaterialMap
This class extends the DataVector<Trk::LayerMaterialProperties> by an elementTable;.
Definition
LayerMaterialMap.h:32
Generated on
for ATLAS Offline Software by
1.17.0