ATLAS Offline Software
Generators
GeneratorObjectsTPCnv
GeneratorObjectsTPCnv
GenVertex_p4.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// GenVertex_p4.h
8
// Header file for class GenVertex_p4
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GENERATOROBJECTSTPCNV_GENVERTEX_P4_H
12
#define GENERATOROBJECTSTPCNV_GENVERTEX_P4_H
13
14
// STL includes
15
#include <vector>
16
17
18
// Gaudi includes
19
20
// Forward declaration
21
class
McEventCollectionCnv_p4
;
22
23
class
GenVertex_p4
24
{
25
26
// Make the AthenaPoolCnv class our friend
27
friend
class
McEventCollectionCnv_p4
;
28
30
// Public methods:
32
public
:
33
36
GenVertex_p4
();
37
39
template
<
class
ITERATOR>
40
GenVertex_p4
(
const
double
x
,
const
double
y
,
const
double
z
,
const
double
t
,
41
const
int
id
,
42
ITERATOR weightsBegin,
43
ITERATOR weightsEnd,
44
const
int
barcode
);
45
47
// Protected data:
49
protected
:
50
53
float
m_x
;
54
57
float
m_y
;
58
61
float
m_z
;
62
65
float
m_t
;
66
69
std::vector<int>
m_particlesIn
;
70
73
std::vector<int>
m_particlesOut
;
74
77
int
m_id
;
78
81
std::vector<float>
m_weights
;
82
85
int
m_barcode
;
86
};
87
91
inline
GenVertex_p4::GenVertex_p4
():
92
m_x ( 0 ),
93
m_y ( 0 ),
94
m_z ( 0 ),
95
m_t ( 0 ),
96
m_particlesIn ( ),
97
m_particlesOut( ),
98
m_id ( 0 ),
99
m_weights ( ),
100
m_barcode ( 0 )
101
{}
102
103
template
<
class
ITERATOR>
104
inline
GenVertex_p4::GenVertex_p4
(
const
double
x
,
const
double
y
,
105
const
double
z
,
const
double
t
,
106
const
int
id
,
107
ITERATOR weightsBegin,
108
ITERATOR weightsEnd,
109
const
int
barcode
):
110
m_x ( static_cast<
float
>(
x
) ),
111
m_y ( static_cast<
float
>(
y
) ),
112
m_z ( static_cast<
float
>(
z
) ),
113
m_t ( static_cast<
float
>(
t
) ),
114
m_particlesIn ( ),
115
m_particlesOut( ),
116
m_id (
id
),
117
m_weights ( weightsBegin, weightsEnd ),
118
m_barcode (
barcode
)
119
{}
120
121
#endif //> GENERATOROBJECTSTPCNV_GENVERTEX_P4_H
GenVertex_p4::m_y
float m_y
y-coordinate of the vertex
Definition:
GenVertex_p4.h:57
GenVertex_p4
Definition:
GenVertex_p4.h:24
GenVertex_p4::GenVertex_p4
GenVertex_p4()
Default constructor:
Definition:
GenVertex_p4.h:91
GenVertex_p4::m_weights
std::vector< float > m_weights
Weights for this vertex.
Definition:
GenVertex_p4.h:81
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
GenVertex_p4::m_particlesIn
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
Definition:
GenVertex_p4.h:69
x
#define x
GenVertex_p4::m_t
float m_t
t-coordinate of the vertex
Definition:
GenVertex_p4.h:65
z
#define z
HepMC::barcode
int barcode(const T *p)
Definition:
Barcode.h:16
GenVertex_p4::m_id
int m_id
Id of this vertex.
Definition:
GenVertex_p4.h:77
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:227
y
#define y
McEventCollectionCnv_p4
Definition:
McEventCollectionCnv_p4.h:50
GenVertex_p4::m_barcode
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
Definition:
GenVertex_p4.h:85
GenVertex_p4::m_x
float m_x
x-coordinate of the vertex
Definition:
GenVertex_p4.h:53
readCCLHist.float
float
Definition:
readCCLHist.py:83
GenVertex_p4::m_z
float m_z
z-coordinate of the vertex
Definition:
GenVertex_p4.h:61
GenVertex_p4::m_particlesOut
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
Definition:
GenVertex_p4.h:73
Generated on Sun Dec 22 2024 21:10:47 for ATLAS Offline Software by
1.8.18