GENIE-MC / Generator

The popular GENIE Generator product is used by nearly all accelerator neutrino experiments and it plays a key role in the exploitation of neutrino data. The Generator implements a modern software framework and it includes state-of-the-art physics modules. It captures the latest results of the GENIE global analysis of neutrino scattering data and includes several tunes that were produced using the proprietary Comparisons and Tuning products. The GENIE physics model is universal and comprehensive: It handles all neutrinos and targets, and all processes relevant from MeV to PeV energy scales. The Generator includes several tools (flux drivers, detector geometry navigators, specialized event generation apps, event reweighting engines) to simulate complex experimental setups in full detail and to support generator-related analysis tasks.
http://www.genie-mc.org
42 stars 92 forks source link

work on Pythia8 interface and potential for no Pythia6 #308

Open nusense opened 1 year ago

nusense commented 1 year ago

This is currently a work in progress. Making a pull request to anticipate future pull and allow others to see what is being done.

sjgardiner commented 1 year ago

Converted it to a draft PR to reinforce the "do not merge" message

nusense commented 1 year ago

Thanks for making it a "draft" ... I didn't know how to do that.

nusense commented 8 months ago

Here are the necessary modifications to XML config files in order to run fully with Pythia8 and no Pythia6: (ugh, putting XML code here doesn't work correctly, but one can get the gist of it all from this)

$ git diff AGKY2019.xml
diff --git a/config/AGKY2019.xml b/config/AGKY2019.xml
index f09c6dc..157501a 100644
--- a/config/AGKY2019.xml
+++ b/config/AGKY2019.xml
@@ -24,7 +24,7 @@ KNO2PYTHIA-Wmax             double  No     relevant only for method=2
      KNO2Pythia 

           genie::AGKYLowW2019/Default     
-       genie::Pythia6Hadro2019/Default 
+       genie::Pythia8Hadro2019/Default 

   

$ git diff AGKYLowW2019.xml
diff --git a/config/AGKYLowW2019.xml b/config/AGKYLowW2019.xml
index 50fb5d1..e1c9536 100644
--- a/config/AGKYLowW2019.xml
+++ b/config/AGKYLowW2019.xml
@@ -169,7 +169,7 @@ KNO-PhaseSpDec-ReweightParm       double  Yes   parameter controlling the reweig

   
       true                                 
-          genie::Pythia6Decayer2023/Default    
+          genie::Pythia8Decayer2023/Default    
   

   
@@ -179,7 +179,7 @@ KNO-PhaseSpDec-ReweightParm       double  Yes   parameter controlling the reweig

   
                 true                            
-                    genie::Pythia6Decayer2023/Default   
+                    genie::Pythia8Decayer2023/Default   
         false                           
         false                           
   
$ git diff DISHadronicSystemGenerator.xml
diff --git a/config/DISHadronicSystemGenerator.xml b/config/DISHadronicSystemGenerator.xml
index ce78b82..51de284 100644
--- a/config/DISHadronicSystemGenerator.xml
+++ b/config/DISHadronicSystemGenerator.xml
@@ -40,7 +40,7 @@ NUCL-NR             double  No
   

   
-               genie::AGCharmPythia6Hadro2023/Default                     
+               genie::AGCharmPythia8Hadro2023/Default                
       genie::UnstableParticleDecayer/BeforeHadronTransport  
            false                                                 

$ git diff UnstableParticleDecayer.xml
diff --git a/config/UnstableParticleDecayer.xml b/config/UnstableParticleDecayer.xml
index 49af36c..08237ba 100644
--- a/config/UnstableParticleDecayer.xml
+++ b/config/UnstableParticleDecayer.xml
@@ -13,19 +13,19 @@ Name             Type     Optional   Comment               Default

   
        2                                                    
-       genie::Pythia6Decayer2023/BeforeHadronTransport      
+       genie::Pythia8Decayer2023/BeforeHadronTransport      
        genie::BaryonResonanceDecayer/BeforeHadronTransport  
   

   
        2                                                    
-       genie::Pythia6Decayer2023/AfterHadronTransport       
+       genie::Pythia8Decayer2023/AfterHadronTransport       
        genie::BaryonResonanceDecayer/AfterHadronTransport   
   

   
        3                                                    
-       genie::Pythia6Decayer2023/AfterHadronTransport       
+       genie::Pythia8Decayer2023/AfterHadronTransport       
        genie::BaryonResonanceDecayer/AfterHadronTransport   
        genie::DarkSectorDecayer/Default