ATLAS Offline Software
Loading...
Searching...
No Matches
GenVertex_p7.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7// GenVertex_p7.h
8// Header file for class GenVertex_p7
9// Author: S.Binet<binet@cern.ch>
11#ifndef GENERATOROBJECTSTPCNV_GENVERTEX_p7_H
12#define GENERATOROBJECTSTPCNV_GENVERTEX_p7_H
13
14// STL includes
15#include <vector>
16
17
18// Gaudi includes
19
20// Forward declaration
22
24{
25
26 // Make the AthenaPoolCnv class our friend
28
30 // Public methods:
32 public:
33
37
39 template <class ITERATOR>
40 GenVertex_p7( 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
86
87};
88
93 m_x ( 0 ),
94 m_y ( 0 ),
95 m_z ( 0 ),
96 m_t ( 0 ),
97 m_particlesIn ( ),
99 m_id ( 0 ),
100 m_weights ( ),
101 m_barcode ( 0 )
102{}
103
104 template <class ITERATOR>
105inline GenVertex_p7::GenVertex_p7( const double x, const double y,
106 const double z, const double t,
107 const int id,
108 ITERATOR weightsBegin,
109 ITERATOR weightsEnd,
110 const int barcode ):
111 m_x ( static_cast<float>(x) ),
112 m_y ( static_cast<float>(y) ),
113 m_z ( static_cast<float>(z) ),
114 m_t ( static_cast<float>(t) ),
115 m_particlesIn ( ),
116 m_particlesOut ( ),
117 m_id ( id ),
118 m_weights ( weightsBegin, weightsEnd ),
119 m_barcode ( barcode )
120{}
121
122#endif //> GENERATOROBJECTSTPCNV_GENVERTEX_p7_H
#define y
#define x
#define z
friend class McEventCollectionCnv_p7
float m_x
x-coordinate of the vertex
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
float m_y
y-coordinate of the vertex
int m_id
Id of this vertex.
GenVertex_p7()
Default constructor:
float m_z
z-coordinate of the vertex
float m_t
t-coordinate of the vertex
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
std::vector< float > m_weights
Weights for this vertex.