ATLAS Offline Software
GenEvent_p5.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 // GenEvent_p5.h
8 // Header file for class GenEvent_p5
9 // Author: S.Binet<binet@cern.ch>
10 // Date: March 2007
12 #ifndef GENERATOROBJECTSTPCNV_GENEVENT_P5_H
13 #define GENERATOROBJECTSTPCNV_GENEVENT_P5_H
14 
15 // STL includes
16 #include <vector>
17 #include <utility> //> for std::pair
18 
19 // forward declarations
21 
23 {
25  // Friend classes
27 
28  // Make the AthenaPoolCnv class our friend
30 
32  // Public methods
34  public:
35 
38  GenEvent_p5();
39 
42  GenEvent_p5( int signalProcessId,
43  int eventNbr,
44  int mpi,
45  double eventScale,
46  double alphaQCD,
47  double alphaQED,
48  int signalProcessVtx,
49  int beamParticle1,
50  int beamParticle2,
51  const std::vector<double>& weights,
52  const std::vector<long int>& randomStates,
53  const std::vector<double>& crossSection,
54  const std::vector<float>& heavyIon,
55  const std::vector<double>& pdfinfo,
56  int momentumUnit,
57  int lengthUnit,
58  unsigned int verticesBegin,
59  unsigned int verticesEnd,
60  unsigned int particlesBegin,
61  unsigned int particlesEnd );
62 
64  // Const methods:
66 
68  // Protected data:
70  protected:
71 
75 
79 
82  int m_mpi;
83 
86  double m_eventScale;
87 
90  double m_alphaQCD;
91 
94  double m_alphaQED;
95 
101 
105 
109 
113  std::vector<double> m_weights;
114 
117  std::vector<long int> m_randomStates;
118 
121  std::vector<double> m_crossSection;
122 
125  std::vector<float> m_heavyIon;
126 
130  std::vector<double> m_pdfinfo;
131 
135 
139 
142  unsigned int m_verticesBegin;
143 
146  unsigned int m_verticesEnd;
147 
150  unsigned int m_particlesBegin;
151 
154  unsigned int m_particlesEnd;
155 
156 };
157 
162  m_signalProcessId ( -1 ),
163  m_eventNbr ( -1 ),
164  m_mpi ( -1 ),
165  m_eventScale ( -1 ),
166  m_alphaQCD ( -1 ),
167  m_alphaQED ( -1 ),
168  m_signalProcessVtx ( 0 ),
169  m_beamParticle1 ( 0 ),
170  m_beamParticle2 ( 0 ),
171  m_weights ( ),
172  m_randomStates ( ),
173  m_crossSection ( ),
174  m_heavyIon ( ),
175  m_pdfinfo ( ),
176  m_momentumUnit ( 0 ),
177  m_lengthUnit ( 0 ),
178  m_verticesBegin ( 0 ),
179  m_verticesEnd ( 0 ),
180  m_particlesBegin ( 0 ),
181  m_particlesEnd ( 0 )
182 {}
183 
184 inline GenEvent_p5::GenEvent_p5( int signalProcessId,
185  int eventNbr,
186  int mpi,
187  double eventScale,
188  double alphaQCD,
189  double alphaQED,
190  int signalProcessVtx,
191  int beamParticle1,
192  int beamParticle2,
193  const std::vector<double>& weights,
194  const std::vector<long int>& randomStates,
195  const std::vector<double>& crossSection,
196  const std::vector<float>& heavyIon,
197  const std::vector<double>& pdfinfo,
198  int momentumUnit,
199  int lengthUnit,
200  unsigned int verticesBegin,
201  unsigned int verticesEnd,
202  unsigned int particlesBegin,
203  unsigned int particlesEnd ) :
204  m_signalProcessId ( signalProcessId ),
205  m_eventNbr ( eventNbr ),
206  m_mpi ( mpi ),
207  m_eventScale ( eventScale ),
208  m_alphaQCD ( alphaQCD ),
209  m_alphaQED ( alphaQED ),
210  m_signalProcessVtx ( signalProcessVtx ),
211  m_beamParticle1 ( beamParticle1 ),
212  m_beamParticle2 ( beamParticle2 ),
213  m_weights ( weights ),
214  m_randomStates ( randomStates ),
215  m_crossSection ( crossSection ),
216  m_heavyIon ( heavyIon ),
217  m_pdfinfo ( pdfinfo ),
218  m_momentumUnit ( momentumUnit ),
219  m_lengthUnit ( lengthUnit ),
220  m_verticesBegin ( verticesBegin ),
221  m_verticesEnd ( verticesEnd ),
222  m_particlesBegin ( particlesBegin ),
223  m_particlesEnd ( particlesEnd )
224 {}
225 
226 #endif //> GENERATOROBJECTSTPCNV_GENEVENT_P5_H
GenEvent_p5::GenEvent_p5
GenEvent_p5()
Default constructor.
Definition: GenEvent_p5.h:161
GenEvent_p5::m_particlesEnd
unsigned int m_particlesEnd
End position in the vector of particles composing this event.
Definition: GenEvent_p5.h:154
GenEvent_p5::m_momentumUnit
int m_momentumUnit
HepMC::Units::MomentumUnit casted to int.
Definition: GenEvent_p5.h:134
GenEvent_p5::m_verticesEnd
unsigned int m_verticesEnd
End position in the vector of vertices composing this event.
Definition: GenEvent_p5.h:146
GenEvent_p5::m_beamParticle1
int m_beamParticle1
Barcode of the beam particle 1.
Definition: GenEvent_p5.h:104
GenEvent_p5::m_crossSection
std::vector< double > m_crossSection
Container of HepMC::GenCrossSection object translated to vector<double>
Definition: GenEvent_p5.h:121
GenEvent_p5::m_mpi
int m_mpi
Number of multi particle interactions.
Definition: GenEvent_p5.h:82
GenEvent_p5::m_beamParticle2
int m_beamParticle2
Barcode of the beam particle 2.
Definition: GenEvent_p5.h:108
GenEvent_p5::m_alphaQCD
double m_alphaQCD
value of the QCD coupling.
Definition: GenEvent_p5.h:90
GenEvent_p5
Definition: GenEvent_p5.h:23
McEventCollectionCnv_p5
Definition: McEventCollectionCnv_p5.h:51
GenEvent_p5::m_randomStates
std::vector< long int > m_randomStates
Container of random numbers for the generator states.
Definition: GenEvent_p5.h:117
GenEvent_p5::m_signalProcessId
int m_signalProcessId
Id of the processus being generated.
Definition: GenEvent_p5.h:74
GenEvent_p5::m_alphaQED
double m_alphaQED
value of the QED coupling.
Definition: GenEvent_p5.h:94
GenEvent_p5::m_particlesBegin
unsigned int m_particlesBegin
Begin position in the vector of particles composing this event.
Definition: GenEvent_p5.h:150
GenEvent_p5::m_weights
std::vector< double > m_weights
Weights for this event.
Definition: GenEvent_p5.h:113
xAOD::crossSection
crossSection
Definition: TruthEvent_v1.cxx:33
GenEvent_p5::m_eventScale
double m_eventScale
Energy scale.
Definition: GenEvent_p5.h:86
GenEvent_p5::m_eventNbr
int m_eventNbr
Event number.
Definition: GenEvent_p5.h:78
GenEvent_p5::m_heavyIon
std::vector< float > m_heavyIon
Container of HepMC::HeavyIon object translated to vector<double>
Definition: GenEvent_p5.h:125
HepMC::mpi
int mpi(const GenEvent &e)
Definition: GenEvent.h:507
GenEvent_p5::m_lengthUnit
int m_lengthUnit
HepMC::Units::LengthUnit casted to int.
Definition: GenEvent_p5.h:138
GenEvent_p5::m_verticesBegin
unsigned int m_verticesBegin
Begin position in the vector of vertices composing this event.
Definition: GenEvent_p5.h:142
GenEvent_p5::m_pdfinfo
std::vector< double > m_pdfinfo
Container of HepMC::PdfInfo object translated to vector<double> for simplicity.
Definition: GenEvent_p5.h:130
GenEvent_p5::m_signalProcessVtx
int m_signalProcessVtx
Barcode of the GenVertex holding the signal process.
Definition: GenEvent_p5.h:100