ATLAS Offline Software
Loading...
Searching...
No Matches
GenVertex_p1.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_p1.h
8// Header file for class GenVertex_p1
9// Author: S.Binet<binet@cern.ch>
11#ifndef GENERATOROBJECTSTPCNV_GENVERTEX_P1_H
12#define GENERATOROBJECTSTPCNV_GENVERTEX_P1_H
13
14// STL includes
15#include <vector>
16
17
18// Gaudi includes
19
20// Forward declaration
21class GenEventCnv_p1;
23
25{
26
27 // Make GenEventCnv_pX our friend
28 friend class GenEventCnv_p1;
29 // Make the AthenaPoolCnv class our friend
31
33 // Public methods:
35 public:
36
40
42 GenVertex_p1( const double x, const double y, const double z, const double t,
43 const int id,
44 const std::vector<double>& weights,
45 const int barcode );
46
48 // Protected data:
50 protected:
51
54 double m_x;
55
58 double m_y;
59
62 double m_z;
63
66 double m_t;
67
70 std::vector<int> m_particlesIn;
71
74 std::vector<int> m_particlesOut;
75
78 int m_id;
79
82 std::vector<double> m_weights;
83
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
104inline GenVertex_p1::GenVertex_p1( const double x, const double y,
105 const double z, const double t,
106 const int id,
107 const std::vector<double>& weights,
108 const int barcode ):
109 m_x ( x ),
110 m_y ( y ),
111 m_z ( z ),
112 m_t ( t ),
113 m_particlesIn ( ),
115 m_id ( id ),
116 m_weights ( weights ),
117 m_barcode ( barcode )
118{}
119
120#endif //> GENERATOROBJECTSTPCNV_GENVERTEX_P1_H
#define y
#define x
#define z
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
double m_t
t-coordinate of the vertex
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
friend class McEventCollectionCnv_p2
int m_id
Id of this vertex.
std::vector< double > m_weights
Weights for this vertex.
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
double m_x
x-coordinate of the vertex
friend class GenEventCnv_p1
double m_z
z-coordinate of the vertex
double m_y
y-coordinate of the vertex
GenVertex_p1()
Default constructor: