sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #16: SHERPA-MC-1.1.3-hepevt.patch

File SHERPA-MC-1.1.3-hepevt.patch, 5.2 KB (added by anonymous, 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  
    519519  fi
    520520  AM_CONDITIONAL(PYTHIA_SUPPORT, test "$pythia" = "true")
    521521
     522dnl
     523dnl Setting HEPEVT common block size. Default is 4000.
     524dnl
     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
    522544  AC_ARG_ENABLE(amisicinclude,
    523545    AC_HELP_STRING([--disable-amisicinclude], [Disable inclusion of AMISIC headers]),
    524546    [ 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  
    3838  m_path(_m_path),m_file(_m_file), m_maxtrials(2),
    3939  p_hepevt(NULL),
    4040  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_])
    4545{
    4646  exh->AddTerminatorObject(this);
    4747  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  
    77#include "Exception.H"
    88#include <cstring>
    99
     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
    1018using namespace SHERPA;
    1119
    1220extern "C" {
     
    118126const int nmaxdecay = 8000;
    119127const int nmaxpup   = 100;
    120128
    121 const int nmxhep    = 10000;
     129
     130const int nmxhep    = _HEPEVT_SIZE_;
    122131
    123132extern "C" {
    124133extern 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  
    11pkglib_LTLIBRARIES       =      libLundTools.la
    22
    3 PYTHIASOURCES = pythia6214.f pydata.f pyalps.f pypdfu.f pyplst.f pymult.f \
     3PYTHIASOURCES = pythia6214.F pydata.f pyalps.f pypdfu.f pyplst.f pymult.f \
    44                Lund_Interface.C
    55PYTHIAHEADERS = Lund_Wrapper.H Lund_Interface.H
    66
  • 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
    110C*********************************************************************
    211C*********************************************************************
    312C*                                                                  **
     
    722731      COMMON/SPDAT2/KCHG(500,4),PMAS(500,4),PARF(2000),VCKM(4,4)
    723732      SAVE /SPJETS/,/SPDAT1/,/SPDAT2/
    724733C...HEPEVT commonblock.
    725       PARAMETER (NMXHEP=10000)
     734      PARAMETER (NMXHEP=_HEPEVT_SIZE_)
    726735      COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP),
    727736     &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP)
    728737      DOUBLE PRECISION PHEP,VHEP
     
    5186651875     &KEXCIT=4000000,KDIMEN=5000000)
    5186751876 
    5186851877C...HEPEVT commonblock.
    51869       PARAMETER (NMXHEP=10000)
     51878      PARAMETER (NMXHEP=_HEPEVT_SIZE_)
    5187051879      COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP),
    5187151880     &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP)
    5187251881      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  
    66#include "Particle.H"
    77#include <map>
    88
     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
    917namespace ATOOLS {
    1018  class Blob;
    1119  class Blob_List;
     
    3745    long int m_filesize,m_evtcount;
    3846    gtp::code m_generator;
    3947
    40     static const int s_maxentries = 4000;
     48    static const int s_maxentries = _HEPEVT_SIZE_;
    4149    double * p_phep,   * p_vhep;
    4250    int    * p_jmohep, * p_jdahep,  * p_isthep, * p_idhep;
    4351    double   m_weight, m_Q2, m_x1, m_x2;