Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
v38r0 (2143aa4c)
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
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
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
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
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
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
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
MyTrack.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include "
GaudiExamples/MyTrack.h
"
12
13
using namespace
Gaudi::Examples
;
14
15
namespace
{
16
struct
InstanceCount {
17
long
count
;
18
InstanceCount() :
count
( 0 ) {}
19
~InstanceCount() {
20
if
( count )
std::cout
<<
"Number of MyTrack instances:"
<<
count
<<
std::endl
;
21
}
22
};
23
}
// namespace
24
static
InstanceCount s_instances;
25
27
MyTrack::MyTrack
() : m_px( 0.0 ), m_py( 0.0 ), m_pz( 0.0 ) {
28
// m_event(this);
29
// m_originVertex(this);
30
// m_decayVertices(this);
31
s_instances.count++;
32
}
33
35
MyTrack::MyTrack
(
float
x,
float
y,
float
z ) : m_px( x ), m_py( y ), m_pz( z ) {
36
// m_event(this);
37
// m_originVertex(this);
38
// m_decayVertices(this);
39
s_instances.count++;
40
}
41
42
MyTrack::MyTrack
(
const
MyTrack
&
t
) :
KeyedObject
<int>(
t
.
key
() ), m_px(
t
.m_px ), m_py(
t
.m_py ), m_pz(
t
.m_pz ) {
43
s_instances.count++;
44
}
45
47
MyTrack::~MyTrack
() { s_instances.count--; }
bug_34121.t
t
Definition:
bug_34121.py:30
Gaudi::Examples::MyTrack::~MyTrack
~MyTrack() override
Standard Destructor.
Definition:
MyTrack.cpp:47
Gaudi::Examples
Definition:
EvtColAlg.cpp:40
std::cout
MyTrack.h
KeyedObject
Definition of the templated KeyedObject class.
Definition:
KeyedObject.h:39
std::endl
T endl(T... args)
Gaudi::Examples::MyTrack
Definition:
MyTrack.h:53
std::count
T count(T... args)
Gaudi::Examples::MyTrack::MyTrack
MyTrack()
Standard constructor.
Definition:
MyTrack.cpp:27
ProduceConsume.key
key
Definition:
ProduceConsume.py:81
GaudiExamples
src
Lib
MyTrack.cpp
Generated on Thu Jan 25 2024 17:52:20 for The Gaudi Framework by
1.8.18