CMS 3D CMS Logo

LesHouches.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Copyright (C) 1999-2007 Leif Lonnblad
4 //
5 // Modified by C.Saout
6 //
7 #ifndef SimDataFormats_GeneratorProducts_LesHouches_h
8 #define SimDataFormats_GeneratorProducts_LesHouches_h
9 
10 #include <utility>
11 #include <vector>
12 
13 namespace lhef {
14 
22  class HEPRUP {
23  public:
29  HEPRUP() : IDWTUP(0), NPRUP(0) {}
31 
32  public:
33  bool operator==(const HEPRUP &other) const {
34  return IDBMUP == other.IDBMUP && EBMUP == other.EBMUP && PDFGUP == other.PDFGUP && PDFSUP == other.PDFSUP &&
35  IDWTUP == other.IDWTUP && NPRUP == other.NPRUP && XSECUP == other.XSECUP && XERRUP == other.XERRUP &&
36  XMAXUP == other.XMAXUP && LPRUP == other.LPRUP;
37  }
38 
44  void resize(int nrup) {
45  NPRUP = nrup;
46  resize();
47  }
48 
54  void resize() {
55  XSECUP.resize(NPRUP);
56  XERRUP.resize(NPRUP);
57  XMAXUP.resize(NPRUP);
58  LPRUP.resize(NPRUP);
59  }
60 
61  void swap(HEPRUP &other) {
62  IDBMUP.swap(other.IDBMUP);
63  EBMUP.swap(other.EBMUP);
64  PDFGUP.swap(other.PDFGUP);
65  PDFSUP.swap(other.PDFSUP);
66  std::swap(IDWTUP, other.IDWTUP);
67  std::swap(NPRUP, other.NPRUP);
68  XSECUP.swap(other.XSECUP);
69  XERRUP.swap(other.XERRUP);
70  XMAXUP.swap(other.XMAXUP);
71  LPRUP.swap(other.LPRUP);
72  }
73 
77  std::pair<int, int> IDBMUP;
78 
82  std::pair<double, double> EBMUP;
83 
88  std::pair<int, int> PDFGUP;
89 
94  std::pair<int, int> PDFSUP;
95 
101  int IDWTUP;
102 
107  int NPRUP;
108 
112  std::vector<double> XSECUP;
113 
118  std::vector<double> XERRUP;
119 
123  std::vector<double> XMAXUP;
124 
128  std::vector<int> LPRUP;
129  };
130 
138  class HEPEUP {
139  public:
145  HEPEUP() : NUP(0), IDPRUP(0), XWGTUP(0.0), XPDWUP(0.0, 0.0), SCALUP(0.0), AQEDUP(0.0), AQCDUP(0.0) {}
147 
148  public:
149  struct FiveVector {
150  double operator[](unsigned int i) const { return x[i]; }
151  double &operator[](unsigned int i) { return x[i]; }
152 
153  double x[5];
154  };
155 
161  void resize(int nup) {
162  NUP = nup;
163  resize();
164  }
165 
171  void resize() {
172  IDUP.resize(NUP);
173  ISTUP.resize(NUP);
174  MOTHUP.resize(NUP);
175  ICOLUP.resize(NUP);
176  PUP.resize(NUP);
177  VTIMUP.resize(NUP);
178  SPINUP.resize(NUP);
179  }
180 
184  int NUP;
185 
189  int IDPRUP;
190 
194  double XWGTUP;
195 
202  std::pair<double, double> XPDWUP;
203 
208  double SCALUP;
209 
213  double AQEDUP;
214 
218  double AQCDUP;
219 
223  std::vector<int> IDUP;
224 
228  std::vector<int> ISTUP;
229 
234  std::vector<std::pair<int, int> > MOTHUP;
235 
240  std::vector<std::pair<int, int> > ICOLUP;
241 
246  std::vector<FiveVector> PUP;
247 
252  std::vector<double> VTIMUP;
253 
259  std::vector<double> SPINUP;
260  };
261 
262 } // namespace lhef
263 
264 #endif // SimDataFormats_GeneratorProducts_LesHouches_h
lhef::HEPEUP::AQCDUP
double AQCDUP
Definition: LesHouches.h:218
lhef::HEPRUP::XSECUP
std::vector< double > XSECUP
Definition: LesHouches.h:112
lhef::HEPRUP::HEPRUP
HEPRUP()
Definition: LesHouches.h:29
mps_fire.i
i
Definition: mps_fire.py:428
lhef::HEPEUP::FiveVector::x
double x[5]
Definition: LesHouches.h:153
lhef::HEPRUP::resize
void resize()
Definition: LesHouches.h:54
lhef::HEPEUP::MOTHUP
std::vector< std::pair< int, int > > MOTHUP
Definition: LesHouches.h:234
lhef::HEPEUP::ISTUP
std::vector< int > ISTUP
Definition: LesHouches.h:228
lhef::HEPEUP::SPINUP
std::vector< double > SPINUP
Definition: LesHouches.h:259
lhef::HEPRUP::swap
void swap(HEPRUP &other)
Definition: LesHouches.h:61
lhef::HEPRUP::EBMUP
std::pair< double, double > EBMUP
Definition: LesHouches.h:82
lhef::HEPEUP::resize
void resize()
Definition: LesHouches.h:171
lhef::HEPEUP::NUP
int NUP
Definition: LesHouches.h:184
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
lhef::HEPRUP::LPRUP
std::vector< int > LPRUP
Definition: LesHouches.h:128
trackingPlots.other
other
Definition: trackingPlots.py:1467
lhef::HEPEUP::FiveVector::operator[]
double operator[](unsigned int i) const
Definition: LesHouches.h:150
lhef::HEPEUP::ICOLUP
std::vector< std::pair< int, int > > ICOLUP
Definition: LesHouches.h:240
lhef::HEPRUP::PDFGUP
std::pair< int, int > PDFGUP
Definition: LesHouches.h:88
lhef::HEPEUP::VTIMUP
std::vector< double > VTIMUP
Definition: LesHouches.h:252
lhef
Definition: ExhumeHadronizer.h:12
lhef::HEPRUP::resize
void resize(int nrup)
Definition: LesHouches.h:44
lhef::HEPEUP::HEPEUP
HEPEUP()
Definition: LesHouches.h:145
lhef::HEPRUP::NPRUP
int NPRUP
Definition: LesHouches.h:107
lhef::HEPRUP
Definition: LesHouches.h:22
lhef::HEPRUP::IDWTUP
int IDWTUP
Definition: LesHouches.h:101
lhef::HEPEUP::AQEDUP
double AQEDUP
Definition: LesHouches.h:213
lhef::HEPEUP::FiveVector
Definition: LesHouches.h:149
lhef::HEPEUP
Definition: LesHouches.h:138
lhef::HEPEUP::XWGTUP
double XWGTUP
Definition: LesHouches.h:194
lhef::HEPEUP::XPDWUP
std::pair< double, double > XPDWUP
Definition: LesHouches.h:202
lhef::HEPRUP::XERRUP
std::vector< double > XERRUP
Definition: LesHouches.h:118
lhef::HEPRUP::PDFSUP
std::pair< int, int > PDFSUP
Definition: LesHouches.h:94
lhef::HEPEUP::IDUP
std::vector< int > IDUP
Definition: LesHouches.h:223
lhef::HEPEUP::IDPRUP
int IDPRUP
Definition: LesHouches.h:189
lhef::HEPRUP::operator==
bool operator==(const HEPRUP &other) const
Definition: LesHouches.h:33
lhef::HEPEUP::resize
void resize(int nup)
Definition: LesHouches.h:161
lhef::HEPRUP::XMAXUP
std::vector< double > XMAXUP
Definition: LesHouches.h:123
lhef::HEPEUP::FiveVector::operator[]
double & operator[](unsigned int i)
Definition: LesHouches.h:151
lhef::HEPEUP::PUP
std::vector< FiveVector > PUP
Definition: LesHouches.h:246
lhef::HEPEUP::SCALUP
double SCALUP
Definition: LesHouches.h:208
lhef::HEPRUP::IDBMUP
std::pair< int, int > IDBMUP
Definition: LesHouches.h:77