ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEventCnv
TrkEventAthenaPool
src
V0ContainerCnv.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//-----------------------------------------------------------------------------
6
//
7
// file: V0ContainerCnv.h
8
// author: Kirill Prokofiev <Kirill.Prokofiev@cern.ch>
9
// March 2007
10
//
11
//-----------------------------------------------------------------------------
12
#ifndef V0CONTAINER_CNV_H
13
#define V0CONTAINER_CNV_H
14
15
16
#include "GaudiKernel/MsgStream.h"
17
18
#include "
TrkEventCnvTools/ITrkEventCnvTool.h
"
19
#include "
AtlasDetDescr/AtlasDetectorID.h
"
20
21
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
22
23
#include "
TrkV0Vertex/V0Container.h
"
24
// #include "TrkEventTPCnv/V0ContainerCnv_tlp1.h"
25
#include "
TrkEventTPCnv/V0ContainerCnv_tlp2.h
"
26
27
28
//-----------------------------------------------------------------------------
29
// Base class definition
30
//-----------------------------------------------------------------------------
31
// typedef Trk::V0Container_tlp1 V0Container_PERS;
32
typedef
Trk::V0Container_tlp2
V0Container_PERS
;
33
34
typedef
T_AthenaPoolCustomCnv<V0Container, V0Container_PERS>
V0ContainerCnvBase
;
35
36
//-----------------------------------------------------------------------------
37
// Converter for V0Collection object
38
//-----------------------------------------------------------------------------
39
class
V0ContainerCnv
:
public
V0ContainerCnvBase
40
{
41
42
friend
class
CnvFactory
<
V0ContainerCnv
>;
43
44
protected
:
45
46
public
:
47
V0ContainerCnv
( ISvcLocator *svcloc );
48
protected
:
49
virtual
StatusCode
initialize
()
override
;
50
51
virtual
V0Container_PERS
*
createPersistent
(
V0Container
*transCont)
override
;
52
virtual
V0Container
*
createTransient
(
const
Token
* token)
override
;
53
54
TopLevelTPCnvBase
*
getTopLevelTPCnv
() {
return
&
m_TPConverter
; }
55
56
private
:
57
void
updateLog
();
58
59
IMessageSvc *
m_msgSvc
;
60
MsgStream
m_log
;
61
62
V0ContainerCnv_tlp2
m_TPConverter
;
63
64
};
//end of class definitions
65
66
67
#endif
//V0CONTAINER_CNV_H
AtlasDetectorID.h
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
ITrkEventCnvTool.h
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
V0ContainerCnvBase
T_AthenaPoolCustomCnv< V0Container, V0Container_PERS > V0ContainerCnvBase
Definition
V0ContainerCnv.h:34
V0Container_PERS
Trk::V0Container_tlp2 V0Container_PERS
Definition
V0ContainerCnv.h:32
V0ContainerCnv_tlp2.h
V0Container.h
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition
T_AthenaPoolCustomCnv.h:129
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::V0Container_tlp2
Definition
V0Container_tlp2.h:54
V0ContainerCnv_tlp2
Definition
V0ContainerCnv_tlp2.h:51
V0ContainerCnv::V0ContainerCnv
V0ContainerCnv(ISvcLocator *svcloc)
Definition
V0ContainerCnv.cxx:19
V0ContainerCnv::m_msgSvc
IMessageSvc * m_msgSvc
Definition
V0ContainerCnv.h:59
V0ContainerCnv::getTopLevelTPCnv
TopLevelTPCnvBase * getTopLevelTPCnv()
Definition
V0ContainerCnv.h:54
V0ContainerCnv::m_TPConverter
V0ContainerCnv_tlp2 m_TPConverter
Definition
V0ContainerCnv.h:62
V0ContainerCnv::updateLog
void updateLog()
This method modifies m_log to indicate the current key being converted.
Definition
V0ContainerCnv.cxx:158
V0ContainerCnv::createPersistent
virtual V0Container_PERS * createPersistent(V0Container *transCont) override
Definition
V0ContainerCnv.cxx:47
V0ContainerCnv::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition
V0ContainerCnv.cxx:28
V0ContainerCnv::createTransient
virtual V0Container * createTransient(const Token *token) override
Definition
V0ContainerCnv.cxx:82
V0ContainerCnv::m_log
MsgStream m_log
Definition
V0ContainerCnv.h:60
V0Container
Definition
V0Container.h:22
Generated on
for ATLAS Offline Software by
1.17.0