Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
PhysicsAnalysis
TruthParticleID
McParticleKernel
McParticleKernel
ITruthParticleCnvTool.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// ITruthParticleCnvTool.h
8
// Header file for class ITruthParticleCnvTool
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
12
#define MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
13
22
// STL includes
23
24
// FrameWork includes
25
#include "GaudiKernel/IAlgTool.h"
26
#include "GaudiKernel/IProperty.h"
27
28
// McParticleKernel includes
29
#include "
McParticleKernel/ITruthParticleVisitor.h
"
30
31
// Forward declaration
32
class
McEventCollection
;
33
class
TruthParticle
;
34
class
TruthParticleContainer
;
35
class
EventContext;
36
37
38
class
ITruthParticleCnvTool
:
virtual
public
extend_interfaces<IAlgTool, IProperty>
39
{
40
42
// Public methods:
44
public
:
45
// Declare interface ID
46
DeclareInterfaceID
(
ITruthParticleCnvTool
, 1, 0);
47
50
virtual
~ITruthParticleCnvTool
();
51
52
// Athena algorithm's Hooks
53
virtual
StatusCode
execute
()
const
= 0;
54
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
= 0;
55
63
virtual
64
StatusCode
convert
(
const
McEventCollection
* mcEvts,
65
const
unsigned
int
genEvtIndex,
66
TruthParticleContainer
* mcParts,
67
const
ITruthParticleVisitor
* visitor = 0 )
const
= 0;
68
72
StatusCode
convert
(
const
McEventCollection
* mcCollection,
73
TruthParticleContainer
* container )
const
;
74
80
StatusCode
81
convertMcEventCollection
(
const
McEventCollection
* mcCollection,
82
TruthParticleContainer
* container )
const
;
86
};
87
88
92
93
inline
StatusCode
94
ITruthParticleCnvTool::convert
(
const
McEventCollection
* mcCollection,
95
TruthParticleContainer
* container )
const
96
{
97
const
unsigned
int
genEvtIndex = 0;
98
const
ITruthParticleVisitor
* dummyVisitor = 0;
99
return
this->
convert
( mcCollection, genEvtIndex, container, dummyVisitor );
100
}
101
102
inline
StatusCode
103
ITruthParticleCnvTool::convertMcEventCollection
(
const
McEventCollection
* mcCollection,
104
TruthParticleContainer
* container )
const
105
{
106
const
unsigned
int
genEvtIndex = 0;
107
const
ITruthParticleVisitor
* dummyVisitor = 0;
108
return
this->
convert
( mcCollection, genEvtIndex, container, dummyVisitor );
109
}
110
111
#endif //> MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
ITruthParticleCnvTool::convert
virtual StatusCode convert(const McEventCollection *mcEvts, const unsigned int genEvtIndex, TruthParticleContainer *mcParts, const ITruthParticleVisitor *visitor=0) const =0
Convert a McEventCollection into an TruthParticleContainer.
ITruthParticleCnvTool::execute
virtual StatusCode execute() const =0
ITruthParticleCnvTool::convertMcEventCollection
StatusCode convertMcEventCollection(const McEventCollection *mcCollection, TruthParticleContainer *container) const
Convert a McEventCollection into an TruthParticleContainer.
Definition:
ITruthParticleCnvTool.h:103
TruthParticle
Definition:
PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticle.h:58
TruthParticleContainer
Definition:
PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticleContainer.h:42
ITruthParticleCnvTool::DeclareInterfaceID
DeclareInterfaceID(ITruthParticleCnvTool, 1, 0)
ITruthParticleCnvTool::~ITruthParticleCnvTool
virtual ~ITruthParticleCnvTool()
Destructor:
Definition:
ITruthParticleCnvTool.cxx:25
ITruthParticleCnvTool::execute
virtual StatusCode execute(const EventContext &ctx) const =0
ITruthParticleVisitor
Definition:
ITruthParticleVisitor.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITruthParticleVisitor.h
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition:
McEventCollection.h:33
ITruthParticleCnvTool
Definition:
ITruthParticleCnvTool.h:39
Generated on Sat Mar 15 2025 21:12:23 for ATLAS Offline Software by
1.8.18