ATLAS Offline Software
Loading...
Searching...
No Matches
GenVertex_p2.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_p2.h
8// Header file for class GenVertex_p2
9// Author: S.Binet<binet@cern.ch>
11#ifndef GENERATOROBJECTSTPCNV_GENVERTEX_P2_H
12#define GENERATOROBJECTSTPCNV_GENVERTEX_P2_H
13
14// STL includes
15#include <vector>
16
17// Gaudi includes
18
19// Forward declaration
21
23{
24
25 // Make the AthenaPoolCnv class our friend
27
29 // Public methods:
31 public:
32
36
38 GenVertex_p2( const double x, const double y, const double z, const double t,
39 const int id,
40 const std::vector<double>::const_iterator weightsBegin,
41 const std::vector<double>::const_iterator weightsEnd,
42 const int barcode );
43
45 // Protected data:
47 protected:
48
51 double m_x;
52
55 double m_y;
56
59 double m_z;
60
63 double m_t;
64
67 std::vector<int> m_particlesIn;
68
71 std::vector<int> m_particlesOut;
72
75 int m_id;
76
79 std::vector<float> m_weights;
80
84};
85
90 m_x ( 0 ),
91 m_y ( 0 ),
92 m_z ( 0 ),
93 m_t ( 0 ),
94 m_particlesIn ( ),
96 m_id ( 0 ),
97 m_weights ( ),
98 m_barcode ( 0 )
99{}
100
101inline GenVertex_p2::GenVertex_p2( const double x, const double y,
102 const double z, const double t,
103 const int id,
104 const std::vector<double>::const_iterator weightsBegin,
105 const std::vector<double>::const_iterator weightsEnd,
106 const int barcode ):
107 m_x ( x ),
108 m_y ( y ),
109 m_z ( z ),
110 m_t ( t ),
111 m_particlesIn ( ),
113 m_id ( id ),
114 m_weights ( weightsBegin, weightsEnd ),
115 m_barcode ( barcode )
116{}
117
118#endif //> GENERATOROBJECTSTPCNV_GENVERTEX_P2_H
#define y
#define x
#define z
double m_t
t-coordinate of the vertex
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
std::vector< float > m_weights
Weights for this vertex.
int m_id
Id of this vertex.
double m_x
x-coordinate of the vertex
double m_z
z-coordinate of the vertex
friend class McEventCollectionCnv_p2
GenVertex_p2()
Default constructor:
double m_y
y-coordinate of the vertex
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex