ATLAS Offline Software
GenVertex_p1.h
Go to the documentation of this file.
1 
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
21 class 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 
39  GenVertex_p1();
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 
86  int m_barcode;
87 };
88 
93  m_x ( 0 ),
94  m_y ( 0 ),
95  m_z ( 0 ),
96  m_t ( 0 ),
97  m_particlesIn ( ),
98  m_particlesOut( ),
99  m_id ( 0 ),
100  m_weights ( ),
101  m_barcode ( 0 )
102 {}
103 
104 inline 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 ( ),
114  m_particlesOut( ),
115  m_id ( id ),
116  m_weights ( weights ),
117  m_barcode ( barcode )
118 {}
119 
120 #endif //> GENERATOROBJECTSTPCNV_GENVERTEX_P1_H
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
GenVertex_p1::m_particlesOut
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
Definition: GenVertex_p1.h:74
z
#define z
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
GenVertex_p1::m_particlesIn
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
Definition: GenVertex_p1.h:70
GenEventCnv_p1
Definition: GenEventCnv_p1.h:45
GenVertex_p1::m_barcode
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
Definition: GenVertex_p1.h:86
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
GenVertex_p1
Definition: GenVertex_p1.h:25
weights
Definition: herwig7_interface.h:38
y
#define y
GenVertex_p1::m_y
double m_y
y-coordinate of the vertex
Definition: GenVertex_p1.h:58
GenVertex_p1::m_x
double m_x
x-coordinate of the vertex
Definition: GenVertex_p1.h:54
McEventCollectionCnv_p2
Definition: McEventCollectionCnv_p2.h:48
GenVertex_p1::m_id
int m_id
Id of this vertex.
Definition: GenVertex_p1.h:78
GenVertex_p1::GenVertex_p1
GenVertex_p1()
Default constructor:
Definition: GenVertex_p1.h:92
GenVertex_p1::m_t
double m_t
t-coordinate of the vertex
Definition: GenVertex_p1.h:66
GenVertex_p1::m_z
double m_z
z-coordinate of the vertex
Definition: GenVertex_p1.h:62
GenVertex_p1::m_weights
std::vector< double > m_weights
Weights for this vertex.
Definition: GenVertex_p1.h:82