ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
TruthParticleID
McParticleEventAthenaPool
src
TruthParticleContainerCnv.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// TruthParticleContainerCnv.h
8
// Header file for class TruthParticleContainerCnv
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef MCPARTICLEEVENTATHENAPOOL_TRUTHPARTICLECONTAINERCNV_H
12
#define MCPARTICLEEVENTATHENAPOOL_TRUTHPARTICLECONTAINERCNV_H
13
14
// STL includes
15
16
17
// AthenaPoolCnvSvc includes
18
#include "
AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h
"
19
20
// McParticleEvent includes
21
#include "
McParticleEvent/TruthParticleContainer.h
"
22
#include "
McParticleKernel/ITruthParticleCnvTool.h
"
23
24
// McParticleEventTPCnv includes
25
#include "
McParticleEventTPCnv/TruthParticleContainer_p6.h
"
26
27
// Forward declaration
28
class
StoreGateSvc
;
29
class
ITruthParticleCnvTool
;
30
31
// the latest persistent representation type of DataCollection:
32
typedef
TruthParticleContainer_p6
TruthParticleContainer_PERS
;
33
34
class
TruthParticleContainerCnv
:
public
T_AthenaPoolCustomCnv
<
35
TruthParticleContainer,
36
TruthParticleContainer_PERS
37
>
38
39
{
40
41
// make the factory for this converter our friend
42
friend
class
CnvFactory
<
TruthParticleContainerCnv
>;
43
45
// Protected methods:
47
protected
:
48
51
public
:
52
TruthParticleContainerCnv
(ISvcLocator* svcloc);
53
protected
:
54
57
virtual
TruthParticleContainer_PERS
*
58
createPersistent
(
TruthParticleContainer
* transCont );
59
62
virtual
TruthParticleContainer
*
createTransient
(
const
Token
* token);
63
65
// Protected data:
67
protected
:
68
72
ToolHandle<ITruthParticleCnvTool>
m_cnvTool
{
"TruthParticleCnvTool"
,
this
};
73
74
};
75
79
80
#endif
//> MCPARTICLEEVENTATHENAPOOL_TRUTHPARTICLECONTAINERCNV_H
81
ITruthParticleCnvTool.h
TruthParticleContainer.h
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
TruthParticleContainer_PERS
TruthParticleContainer_p6 TruthParticleContainer_PERS
Definition
TruthParticleContainerCnv.h:32
TruthParticleContainer_p6.h
CnvFactory
Abstract factory to create the converter.
Definition
ToyConverter.h:16
ITruthParticleCnvTool
interface for AlgTools which want to convert McEventCollection objects into a TruthParticleContainer ...
Definition
ITruthParticleCnvTool.h:39
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:120
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
TruthParticleContainerCnv::m_cnvTool
ToolHandle< ITruthParticleCnvTool > m_cnvTool
Handle to the McEventCollection -> TruthParticleContainer converter tool.
Definition
TruthParticleContainerCnv.h:72
TruthParticleContainerCnv::TruthParticleContainerCnv
TruthParticleContainerCnv(ISvcLocator *svcloc)
Create the converter from the service locator.
Definition
TruthParticleContainerCnv.cxx:31
TruthParticleContainerCnv::createTransient
virtual TruthParticleContainer * createTransient(const Token *token)
Build the transient representation from a persistent one.
Definition
TruthParticleContainerCnv.cxx:53
TruthParticleContainerCnv::createPersistent
virtual TruthParticleContainer_PERS * createPersistent(TruthParticleContainer *transCont)
Build the persistent representation from the transient one.
Definition
TruthParticleContainerCnv.cxx:42
TruthParticleContainer_p6
Definition
TruthParticleContainer_p6.h:27
TruthParticleContainer
Definition
PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticleContainer.h:42
Generated on
for ATLAS Offline Software by
1.17.0