Skip to content

Pythia 8.313 #9612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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