ATLAS Offline Software
Loading...
Searching...
No Matches
GenParticle_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// 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
71
75
78 std::vector< std::pair<int, int> > m_flow;
79
82 //std::pair<double, double> m_polarization;
83
87
91
96
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
127inline 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
int m_endVtx
Barcode of the decay vertex of this particle.
double m_py
y-component of the 4-momentum of this particle
int m_pdgId
identity of this particle, according to the Particle Data Group notation
double m_px
x-component of the 4-momentum of this particle
int m_status
Status of this particle, as defined for HEPEVT.
int m_prodVtx
Barcode of the production vertex of this particle.
friend class McEventCollectionCnv_p2
std::vector< std::pair< int, int > > m_flow
Flow for this particle.
float m_thetaPolarization
polarization
float m_phiPolarization
phi polarization
double m_ene
e-component of the 4-momentum of this particle
int m_barcode
barcode of this particles (uniquely identifying this particle within a given GenEvent)
double m_pz
z-component of the 4-momentum of this particle
GenParticle_p2()
Default constructor: