ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorObjectsTPCnv
GeneratorObjectsTPCnv
GenVertex_p3.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// GenVertex_p3.h
8
// Header file for class GenVertex_p3
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GENERATOROBJECTSTPCNV_GENVERTEX_P3_H
12
#define GENERATOROBJECTSTPCNV_GENVERTEX_P3_H
13
14
// STL includes
15
#include <vector>
16
17
18
// Gaudi includes
19
20
// Forward declaration
21
class
McEventCollectionCnv_p3
;
22
23
class
GenVertex_p3
24
{
25
26
// Make the AthenaPoolCnv class our friend
27
friend
class
McEventCollectionCnv_p3
;
28
30
// Public methods:
32
public
:
33
36
GenVertex_p3
();
37
39
GenVertex_p3
(
const
double
x
,
const
double
y
,
const
double
z
,
const
double
t,
40
const
int
id
,
41
const
std::vector<double>::const_iterator weightsBegin,
42
const
std::vector<double>::const_iterator weightsEnd,
43
const
int
barcode );
44
46
// Protected data:
48
protected
:
49
52
float
m_x
;
53
56
float
m_y
;
57
60
float
m_z
;
61
64
float
m_t
;
65
68
std::vector<int>
m_particlesIn
;
69
72
std::vector<int>
m_particlesOut
;
73
76
int
m_id
;
77
80
std::vector<float>
m_weights
;
81
84
int
m_barcode
;
85
};
86
90
inline
GenVertex_p3::GenVertex_p3
():
91
m_x
( 0 ),
92
m_y
( 0 ),
93
m_z
( 0 ),
94
m_t
( 0 ),
95
m_particlesIn
( ),
96
m_particlesOut
( ),
97
m_id
( 0 ),
98
m_weights
( ),
99
m_barcode
( 0 )
100
{}
101
102
inline
GenVertex_p3::GenVertex_p3
(
const
double
x
,
const
double
y
,
103
const
double
z
,
const
double
t,
104
const
int
id
,
105
const
std::vector<double>::const_iterator weightsBegin,
106
const
std::vector<double>::const_iterator weightsEnd,
107
const
int
barcode ):
108
m_x
( static_cast<float>(
x
) ),
109
m_y
( static_cast<float>(
y
) ),
110
m_z
( static_cast<float>(
z
) ),
111
m_t
( static_cast<float>(t) ),
112
m_particlesIn
( ),
113
m_particlesOut
( ),
114
m_id
( id ),
115
m_weights
( weightsBegin, weightsEnd ),
116
m_barcode
( barcode )
117
{}
118
119
#endif
//> GENERATOROBJECTSTPCNV_GENVERTEX_P3_H
y
#define y
x
#define x
z
#define z
GenVertex_p3::m_weights
std::vector< float > m_weights
Weights for this vertex.
Definition
GenVertex_p3.h:80
GenVertex_p3::m_particlesOut
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
Definition
GenVertex_p3.h:72
GenVertex_p3::m_barcode
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
Definition
GenVertex_p3.h:84
GenVertex_p3::m_z
float m_z
z-coordinate of the vertex
Definition
GenVertex_p3.h:60
GenVertex_p3::m_particlesIn
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
Definition
GenVertex_p3.h:68
GenVertex_p3::GenVertex_p3
GenVertex_p3()
Default constructor:
Definition
GenVertex_p3.h:90
GenVertex_p3::m_x
float m_x
x-coordinate of the vertex
Definition
GenVertex_p3.h:52
GenVertex_p3::m_y
float m_y
y-coordinate of the vertex
Definition
GenVertex_p3.h:56
GenVertex_p3::m_id
int m_id
Id of this vertex.
Definition
GenVertex_p3.h:76
GenVertex_p3::McEventCollectionCnv_p3
friend class McEventCollectionCnv_p3
Definition
GenVertex_p3.h:27
GenVertex_p3::m_t
float m_t
t-coordinate of the vertex
Definition
GenVertex_p3.h:64
McEventCollectionCnv_p3
Definition
McEventCollectionCnv_p3.h:37
Generated on
for ATLAS Offline Software by
1.17.0