ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrAthenaPool
src
ElementTableCnv.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
// ElementTableCnv.h, (c) ATLAS Detector software
8
9
#ifndef ELELEMENTTABLE_CNV_H
10
#define ELELEMENTTABLE_CNV_H
11
12
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
13
#include "GaudiKernel/MsgStream.h"
14
15
// the transient side
16
#include "
TrkGeometry/ElementTable.h
"
17
// the perisistent side
18
#include "
TrkDetDescrTPCnv/TrkGeometry/ElementTableCnv_p1.h
"
19
20
// useful typedefs to not change the code only once in case of schema evolution
21
typedef
Trk::ElementTable_p1
ElementTable_PERS
;
22
typedef
T_AthenaPoolCustomCnvWithKey<Trk::ElementTable, ElementTable_PERS>
ElementTableCnvBase
;
23
24
25
class
ElementTableCnv
:
public
ElementTableCnvBase
{
26
27
friend
class
CnvFactory
<
ElementTableCnv
>;
28
29
protected
:
30
31
public
:
32
ElementTableCnv
( ISvcLocator *svcloc );
33
protected
:
34
virtual
ElementTable_PERS
*
createPersistentWithKey
(
Trk::ElementTable
*transCont,
const
std::string& key)
override
;
35
virtual
Trk::ElementTable
*
createTransientWithKey
(
const
Token
* token,
const
std::string& key)
override
;
36
37
38
private
:
39
IMessageSvc*
m_msgSvc
;
40
ElementTableCnv_p1
m_TPConverter
;
41
};
//end of class definitions
42
43
44
#endif
// ELELEMENTTABLE_CNV_H
ElementTableCnvBase
T_AthenaPoolCustomCnvWithKey< Trk::ElementTable, ElementTable_PERS > ElementTableCnvBase
Definition
ElementTableCnv.h:22
ElementTable_PERS
Trk::ElementTable_p1 ElementTable_PERS
Definition
ElementTableCnv.h:21
ElementTableCnv_p1.h
ElementTable.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
ElementTableCnv_p1
Definition
ElementTableCnv_p1.h:22
ElementTableCnv::createPersistentWithKey
virtual ElementTable_PERS * createPersistentWithKey(Trk::ElementTable *transCont, const std::string &key) override
method to be implemented by the developer.
Definition
ElementTableCnv.cxx:24
ElementTableCnv::m_TPConverter
ElementTableCnv_p1 m_TPConverter
Definition
ElementTableCnv.h:40
ElementTableCnv::m_msgSvc
IMessageSvc * m_msgSvc
MsgStream svc.
Definition
ElementTableCnv.h:39
ElementTableCnv::ElementTableCnv
ElementTableCnv(ISvcLocator *svcloc)
Definition
ElementTableCnv.cxx:17
ElementTableCnv::createTransientWithKey
virtual Trk::ElementTable * createTransientWithKey(const Token *token, const std::string &key) override
method to be implemented by the developer.
Definition
ElementTableCnv.cxx:38
T_AthenaPoolCustomCnvWithKey< Trk::ElementTable, ElementTable_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
Trk::ElementTable_p1
elements & fractions as unsigned char - if filled
Definition
ElementTable_p1.h:25
Trk::ElementTable
Definition
ElementTable.h:24
Generated on
for ATLAS Offline Software by
1.17.0