From 0a4d73fea74535fe6a4fdfe59ea4d3237f96498f Mon Sep 17 00:00:00 2001
From: Pere Mato <pere.mato@cern.ch>
Date: Mon, 5 Oct 2015 12:59:39 +0200
Subject: [PATCH] Reestablish method TPythia6::Pytune  (see
 https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=20399&p=87881#p87881)

---
 montecarlo/pythia6/inc/TPythia6.h   | 2 +-
 montecarlo/pythia6/src/TPythia6.cxx | 9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/montecarlo/pythia6/inc/TPythia6.h b/montecarlo/pythia6/inc/TPythia6.h
index ba047f5f6cd..11cf5ec8b5e 100644
--- a/montecarlo/pythia6/inc/TPythia6.h
+++ b/montecarlo/pythia6/inc/TPythia6.h
@@ -326,7 +326,7 @@ public:
    void             Pyrset(int lun, int move);
    void             Pystat(int flag);
    void             Pytest(int flag);
-   //void             Pytune(int itune);   // not (anymore) in libPythia6
+   void             Pytune(int itune);
    void             Pyupda(int mupda, int lun);
    void             SetupTest();
 
diff --git a/montecarlo/pythia6/src/TPythia6.cxx b/montecarlo/pythia6/src/TPythia6.cxx
index 4eb67b53875..8c2e8ba213f 100644
--- a/montecarlo/pythia6/src/TPythia6.cxx
+++ b/montecarlo/pythia6/src/TPythia6.cxx
@@ -615,11 +615,10 @@ void TPythia6::Pytest(int flag) {
    pytest(&flag);
 }
 
-// not (anymore) in libPythia6
-//void TPythia6::Pytune(int itune) {
-//   //interface with fortran routine pytune
-//   pytune(&itune);
-//}
+void TPythia6::Pytune(int itune) {
+   //interface with fortran routine pytune
+   pytune(&itune);
+}
 
 void TPythia6::Pyupda(int mupda, int lun) {
    //interface with fortran routine pyupda
-- 
GitLab