ATLAS Offline Software
GenVertex_p2.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_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 
35  GenVertex_p2();
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 
83  int m_barcode;
84 };
85 
90  m_x ( 0 ),
91  m_y ( 0 ),
92  m_z ( 0 ),
93  m_t ( 0 ),
94  m_particlesIn ( ),
95  m_particlesOut( ),
96  m_id ( 0 ),
97  m_weights ( ),
98  m_barcode ( 0 )
99 {}
100 
101 inline 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 ( ),
112  m_particlesOut( ),
113  m_id ( id ),
114  m_weights ( weightsBegin, weightsEnd ),
115  m_barcode ( barcode )
116 {}
117 
118 #endif //> GENERATOROBJECTSTPCNV_GENVERTEX_P2_H
GenVertex_p2::m_y
double m_y
y-coordinate of the vertex
Definition: GenVertex_p2.h:55
GenVertex_p2::m_barcode
int m_barcode
barcode of this vertex (uniquely identifying a vertex within an event)
Definition: GenVertex_p2.h:83
GenVertex_p2::m_t
double m_t
t-coordinate of the vertex
Definition: GenVertex_p2.h:63
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
GenVertex_p2::m_x
double m_x
x-coordinate of the vertex
Definition: GenVertex_p2.h:51
GenVertex_p2::m_z
double m_z
z-coordinate of the vertex
Definition: GenVertex_p2.h:59
z
#define z
GenVertex_p2
Definition: GenVertex_p2.h:23
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
GenVertex_p2::m_id
int m_id
Id of this vertex.
Definition: GenVertex_p2.h:75
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
GenVertex_p2::m_particlesIn
std::vector< int > m_particlesIn
collection of barcodes of in-going particles connected to this vertex
Definition: GenVertex_p2.h:67
y
#define y
GenVertex_p2::m_particlesOut
std::vector< int > m_particlesOut
collection of barcodes of out-going particles connected to this vertex
Definition: GenVertex_p2.h:71
McEventCollectionCnv_p2
Definition: McEventCollectionCnv_p2.h:48
GenVertex_p2::m_weights
std::vector< float > m_weights
Weights for this vertex.
Definition: GenVertex_p2.h:79
GenVertex_p2::GenVertex_p2
GenVertex_p2()
Default constructor:
Definition: GenVertex_p2.h:89