ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrAthenaPool
src
MaterialStepCollectionCnv.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
// MaterialStepCollectionCnv.h, (c) ATLAS Detector software
8
9
#ifndef MATERIALSTEPCOLLECTION_CNV_H
10
#define MATERIALSTEPCOLLECTION_CNV_H
11
12
// ATLAS persistency way:
13
#include "GaudiKernel/MsgStream.h"
14
15
16
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
17
18
// the transient side
19
#include "
TrkGeometry/MaterialStepCollection.h
"
20
// the perisistent side
21
#include "
TrkDetDescrTPCnv/TrkGeometry/MaterialStepCollectionCnv_p1.h
"
22
23
// useful typedefs to not change the code only once in case of schema evolution
24
typedef
Trk::MaterialStepCollection_p1
MaterialStepCollection_PERS
;
25
typedef
T_AthenaPoolCustomCnvWithKey<Trk::MaterialStepCollection, MaterialStepCollection_PERS>
MaterialStepCollectionCnvBase
;
26
27
28
class
MaterialStepCollectionCnv
:
public
MaterialStepCollectionCnvBase
{
29
30
friend
class
CnvFactory
<
MaterialStepCollectionCnv
>;
31
32
protected
:
33
34
public
:
35
MaterialStepCollectionCnv
( ISvcLocator *svcloc );
36
37
38
protected
:
39
virtual
MaterialStepCollection_PERS
*
40
createPersistentWithKey
(
Trk::MaterialStepCollection
*transCont,
41
const
std::string& key)
override
;
42
43
virtual
Trk::MaterialStepCollection
*
44
createTransientWithKey
(
const
Token
* token,
45
const
std::string& key)
override
;
46
47
48
private
:
49
IMessageSvc*
m_msgSvc
;
50
MaterialStepCollectionCnv_p1
m_TPConverter
;
51
52
};
//end of class definitions
53
54
#endif
// MATERIALSTEPCOLLECTION_CNV_H
MaterialStepCollectionCnvBase
T_AthenaPoolCustomCnvWithKey< Trk::MaterialStepCollection, MaterialStepCollection_PERS > MaterialStepCollectionCnvBase
Definition
MaterialStepCollectionCnv.h:25
MaterialStepCollection_PERS
Trk::MaterialStepCollection_p1 MaterialStepCollection_PERS
Definition
MaterialStepCollectionCnv.h:24
MaterialStepCollectionCnv_p1.h
MaterialStepCollection.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
MaterialStepCollectionCnv_p1
Definition
MaterialStepCollectionCnv_p1.h:23
MaterialStepCollectionCnv::m_TPConverter
MaterialStepCollectionCnv_p1 m_TPConverter
Definition
MaterialStepCollectionCnv.h:50
MaterialStepCollectionCnv::MaterialStepCollectionCnv
MaterialStepCollectionCnv(ISvcLocator *svcloc)
Definition
MaterialStepCollectionCnv.cxx:17
MaterialStepCollectionCnv::createTransientWithKey
virtual Trk::MaterialStepCollection * createTransientWithKey(const Token *token, const std::string &key) override
method to be implemented by the developer.
Definition
MaterialStepCollectionCnv.cxx:32
MaterialStepCollectionCnv::m_msgSvc
IMessageSvc * m_msgSvc
MsgStream svc.
Definition
MaterialStepCollectionCnv.h:49
MaterialStepCollectionCnv::createPersistentWithKey
virtual MaterialStepCollection_PERS * createPersistentWithKey(Trk::MaterialStepCollection *transCont, const std::string &key) override
method to be implemented by the developer.
Definition
MaterialStepCollectionCnv.cxx:23
T_AthenaPoolCustomCnvWithKey< Trk::MaterialStepCollection, MaterialStepCollection_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::MaterialStepCollection_p1
Definition
MaterialStepCollection_p1.h:18
Trk::MaterialStepCollection
DataVector< Trk::MaterialStep > MaterialStepCollection
Definition
MaterialStepCollection.h:17
Generated on
for ATLAS Offline Software by
1.17.0