Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions pythia8-beamsetup.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/src/BeamSetup.cc b/src/BeamSetup.cc
index efb2b848..8e3d2480 100644
--- a/src/BeamSetup.cc
+++ b/src/BeamSetup.cc
@@ -1209,10 +1209,10 @@ PDFPtr BeamSetup::getPDFPtr(int idIn, int sequence, string beam,
make_pair("", ""),
make_pair("", "")
};
+ if (pMode == 1) pWord = "LHAPDF5:" + pMap[pSet - 1].first;
+ else if (pMode == 2) pWord = "LHAPDF6:" + pMap[pSet - 1].second;
+ else if (pMode == 3) pWord = "LHAGrid1:" + pMap[pSet - 1].second;
pSet = 0;
- if (pMode == 1) pWord = "LHAPDF5:" + pMap[pSet + 1].first;
- else if (pMode == 2) pWord = "LHAPDF6:" + pMap[pSet + 1].second;
- else if (pMode == 3) pWord = "LHALHAGrid1:" + pMap[pSet + 1].second;
}
}
4 changes: 3 additions & 1 deletion pythia8.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
### RPM external pythia8 311
### RPM external pythia8 313

Source: https://pythia.org/download/pythia83/%{n}%{realversion}.tgz
Patch0: pythia8-beamsetup

Requires: hepmc hepmc3 lhapdf

%prep
%setup -q -n %{n}%{realversion}
%patch0 -p1

./configure --prefix=%i --enable-shared --with-hepmc2=${HEPMC_ROOT} --with-hepmc3=${HEPMC3_ROOT} --with-lhapdf6=${LHAPDF_ROOT} --enable-mg5mes

Expand Down