ATLAS Offline Software
GenParticle_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 // GenParticle_p2.h
8 // Header file for class GenParticle_p2
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef GENERATOROBJECTSTPCNV_GENPARTICLE_P2_H
12 #define GENERATOROBJECTSTPCNV_GENPARTICLE_P2_H
13 
14 // STL includes
15 #include <vector>
16 #include <utility> //> for std::pair
17 
18 // Forward declaration
20 
22 {
23  // Make the AthenaPoolCnv class our friend
25 
27  // Public methods:
29  public:
30 
34 
37  GenParticle_p2( const double px, const double py, const double pz,
38  const double ene, const int pdgId,
39  const int status,
40  const std::size_t flowSize,
41  const double thetaPolarization,
42  const double phiPolarization,
43  const int prodVtx,
44  const int endVtx,
45  const int barcode );
46 
48  // Protected data:
50  protected:
51 
54  double m_px;
55 
58  double m_py;
59 
62  double m_pz;
63 
66  double m_ene;
67 
70  int m_pdgId;
71 
74  int m_status;
75 
78  std::vector< std::pair<int, int> > m_flow;
79 
82  //std::pair<double, double> m_polarization;
83 
87 
91 
95  int m_prodVtx;
96 
100  int m_endVtx;
101 
106 };
107 
111 
113  m_px ( 0 ),
114  m_py ( 0 ),
115  m_pz ( 0 ),
116  m_ene ( 0 ),
117  m_pdgId ( 0 ),
118  m_status ( 0 ),
119  m_flow ( 0 ),
120  m_thetaPolarization ( 0. ),
121  m_phiPolarization ( 0. ),
122  m_prodVtx ( 0 ),
123  m_endVtx ( 0 ),
124  m_barcode ( 0 )
125 {}
126 
127 inline GenParticle_p2::GenParticle_p2( const double px,
128  const double py,
129  const double pz,
130  const double ene,
131  const int pdgId,
132  const int status,
133  const std::size_t flowSize,
134  const double thetaPolarization,
135  const double phiPolarization,
136  const int prodVtx,
137  const int endVtx,
138  const int barcode ):
139  m_px ( px ),
140  m_py ( py ),
141  m_pz ( pz ),
142  m_ene ( ene ),
143  m_pdgId ( pdgId ),
144  m_status ( status ),
145  m_flow ( flowSize ),
146  m_thetaPolarization ( thetaPolarization ),
147  m_phiPolarization ( phiPolarization ),
148  m_prodVtx ( prodVtx ),
149  m_endVtx ( endVtx ),
150  m_barcode ( barcode )
151 {}
152 
153 #endif //> GENERATOROBJECTSTPCNV_GENPARTICLE_P2_H
GenParticle_p2::m_endVtx
int m_endVtx
Barcode of the decay vertex of this particle.
Definition: GenParticle_p2.h:100
GenParticle_p2::m_pz
double m_pz
z-component of the 4-momentum of this particle
Definition: GenParticle_p2.h:62
GenParticle_p2
Definition: GenParticle_p2.h:22
test_pyathena.px
px
Definition: test_pyathena.py:18
GenParticle_p2::m_py
double m_py
y-component of the 4-momentum of this particle
Definition: GenParticle_p2.h:58
GenParticle_p2::m_px
double m_px
x-component of the 4-momentum of this particle
Definition: GenParticle_p2.h:54
GenParticle_p2::m_ene
double m_ene
e-component of the 4-momentum of this particle
Definition: GenParticle_p2.h:66
GenParticle_p2::m_pdgId
int m_pdgId
identity of this particle, according to the Particle Data Group notation
Definition: GenParticle_p2.h:70
PowhegPy8EG_H2a.pdgId
dictionary pdgId
Definition: PowhegPy8EG_H2a.py:128
GenParticle_p2::m_flow
std::vector< std::pair< int, int > > m_flow
Flow for this particle.
Definition: GenParticle_p2.h:78
GenParticle_p2::m_prodVtx
int m_prodVtx
Barcode of the production vertex of this particle.
Definition: GenParticle_p2.h:95
GenParticle_p2::GenParticle_p2
GenParticle_p2()
Default constructor:
Definition: GenParticle_p2.h:112
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
GenParticle_p2::m_thetaPolarization
float m_thetaPolarization
polarization
Definition: GenParticle_p2.h:86
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
Amg::py
@ py
Definition: GeoPrimitives.h:39
GenParticle_p2::m_status
int m_status
Status of this particle, as defined for HEPEVT.
Definition: GenParticle_p2.h:74
GenParticle_p2::m_phiPolarization
float m_phiPolarization
phi polarization
Definition: GenParticle_p2.h:90
McEventCollectionCnv_p2
Definition: McEventCollectionCnv_p2.h:48
merge.status
status
Definition: merge.py:17
GenParticle_p2::m_barcode
int m_barcode
barcode of this particles (uniquely identifying this particle within a given GenEvent)
Definition: GenParticle_p2.h:105