Ticket #16: SHERPA-MC-1.1.3-hepevt.patch
File SHERPA-MC-1.1.3-hepevt.patch, 5.2 KB (added by , 16 years ago) |
---|
-
SHERPA-MC-1.1.3
diff -Naubr SHERPA-MC-1.1.3.orig/acinclude.m4 SHERPA-MC-1.1.3.NEW/acinclude.m4
old new 519 519 fi 520 520 AM_CONDITIONAL(PYTHIA_SUPPORT, test "$pythia" = "true") 521 521 522 dnl 523 dnl Setting HEPEVT common block size. Default is 4000. 524 dnl 525 526 AC_ARG_ENABLE( 527 hepevt, 528 AC_HELP_STRING([--enable-hepevt=HEPEVT_SIZE], [HEPEVT common block size @<:@default=4000@:>@]), 529 [ AC_MSG_CHECKING(whether HEPEVT common block size is defined); 530 echo HEPEVT size=$enableval 531 if test ${enableval} -gt 0 2>/dev/null ; then 532 hepevt_size=${enableval} 533 AC_MSG_RESULT(${hepevt_size}) 534 fi 535 ], 536 [ hepevt_size=4000 ] 537 ) 538 if test "x$hepevt_size" = "xno" ; then 539 exit 1 540 else 541 AC_DEFINE_UNQUOTED(_HEPEVT_SIZE_, ${hepevt_size} , [HEPEVT common block size]) 542 fi 543 522 544 AC_ARG_ENABLE(amisicinclude, 523 545 AC_HELP_STRING([--disable-amisicinclude], [Disable inclusion of AMISIC headers]), 524 546 [ AC_MSG_CHECKING(whether to include AMISIC headers); -
SHERPA/LundTools/Lund_Interface.C
diff -Naubr SHERPA-MC-1.1.3.orig/SHERPA/LundTools/Lund_Interface.C SHERPA-MC-1.1.3/SHERPA/LundTools/Lund_Interface.C
old new 38 38 m_path(_m_path),m_file(_m_file), m_maxtrials(2), 39 39 p_hepevt(NULL), 40 40 m_compress(true),m_writeout(false), 41 p_phep(new double[5* 10000]),42 p_vhep(new double[4* 10000]),43 p_jmohep(new int[2* 10000]),44 p_jdahep(new int[2* 10000])41 p_phep(new double[5*_HEPEVT_SIZE_]), 42 p_vhep(new double[4*_HEPEVT_SIZE_]), 43 p_jmohep(new int[2*_HEPEVT_SIZE_]), 44 p_jdahep(new int[2*_HEPEVT_SIZE_]) 45 45 { 46 46 exh->AddTerminatorObject(this); 47 47 double win; -
SHERPA/LundTools/Lund_Wrapper.H
diff -Naubr SHERPA-MC-1.1.3.orig/SHERPA/LundTools/Lund_Wrapper.H SHERPA-MC-1.1.3/SHERPA/LundTools/Lund_Wrapper.H
old new 7 7 #include "Exception.H" 8 8 #include <cstring> 9 9 10 #ifdef HAVE_CONFIG_H 11 #include "config.h" 12 #else 13 #ifndef _HEPEVT_SIZE_ 14 #define _HEPEVT_SIZE_ (4000) 15 #endif 16 #endif 17 10 18 using namespace SHERPA; 11 19 12 20 extern "C" { … … 118 126 const int nmaxdecay = 8000; 119 127 const int nmaxpup = 100; 120 128 121 const int nmxhep = 10000; 129 130 const int nmxhep = _HEPEVT_SIZE_; 122 131 123 132 extern "C" { 124 133 extern struct { -
SHERPA/LundTools/Makefile.am
diff -Naubr SHERPA-MC-1.1.3.orig/SHERPA/LundTools/Makefile.am SHERPA-MC-1.1.3/SHERPA/LundTools/Makefile.am
old new 1 1 pkglib_LTLIBRARIES = libLundTools.la 2 2 3 PYTHIASOURCES = pythia6214. fpydata.f pyalps.f pypdfu.f pyplst.f pymult.f \3 PYTHIASOURCES = pythia6214.F pydata.f pyalps.f pypdfu.f pyplst.f pymult.f \ 4 4 Lund_Interface.C 5 5 PYTHIAHEADERS = Lund_Wrapper.H Lund_Interface.H 6 6 -
SHERPA/LundTools/pythia6214.F
diff -Naubr SHERPA-MC-1.1.3.orig/SHERPA/LundTools/pythia6214.F SHERPA-MC-1.1.3/SHERPA/LundTools/pythia6214.F
old new 1 #ifdef HAVE_CONFIG_H 2 #include "config.h" 3 #else 4 #ifndef _HEPEVT_SIZE_ 5 #define _HEPEVT_SIZE_ 4000 6 #endif 7 #endif 8 9 1 10 C********************************************************************* 2 11 C********************************************************************* 3 12 C* ** … … 722 731 COMMON/SPDAT2/KCHG(500,4),PMAS(500,4),PARF(2000),VCKM(4,4) 723 732 SAVE /SPJETS/,/SPDAT1/,/SPDAT2/ 724 733 C...HEPEVT commonblock. 725 PARAMETER (NMXHEP= 10000)734 PARAMETER (NMXHEP=_HEPEVT_SIZE_) 726 735 COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP), 727 736 &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP) 728 737 DOUBLE PRECISION PHEP,VHEP … … 51866 51875 &KEXCIT=4000000,KDIMEN=5000000) 51867 51876 51868 51877 C...HEPEVT commonblock. 51869 PARAMETER (NMXHEP= 10000)51878 PARAMETER (NMXHEP=_HEPEVT_SIZE_) 51870 51879 COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP), 51871 51880 &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP) 51872 51881 DOUBLE PRECISION PHEP,VHEP -
SHERPA/Tools/HepEvt_Interface.H
diff -Naubr SHERPA-MC-1.1.3.orig/SHERPA/Tools/HepEvt_Interface.H SHERPA-MC-1.1.3/SHERPA/Tools/HepEvt_Interface.H
old new 6 6 #include "Particle.H" 7 7 #include <map> 8 8 9 #ifdef HAVE_CONFIG_H 10 #include "config.h" 11 #else 12 #ifndef _HEPEVT_SIZE_ 13 #define _HEPEVT_SIZE_ (4000) 14 #endif 15 #endif 16 9 17 namespace ATOOLS { 10 18 class Blob; 11 19 class Blob_List; … … 37 45 long int m_filesize,m_evtcount; 38 46 gtp::code m_generator; 39 47 40 static const int s_maxentries = 4000;48 static const int s_maxentries = _HEPEVT_SIZE_; 41 49 double * p_phep, * p_vhep; 42 50 int * p_jmohep, * p_jdahep, * p_isthep, * p_idhep; 43 51 double m_weight, m_Q2, m_x1, m_x2;