IAP GITLAB

Skip to content
Snippets Groups Projects
sibyll2.3c.h 2.55 KiB
Newer Older
 * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
 *
 * See file AUTHORS for a list of contributors.
 *
 * This software is distributed under the terms of the GNU General Public
 * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
 * the license.
 */

#ifndef _include_sib23c_interface_h_
#define _include_sib23c_interface_h_
//----------------------------------------------
//  C++ interface for the SIBYLL event generator
//----------------------------------------------
ralfulrich's avatar
ralfulrich committed
// wrapper
ralfulrich's avatar
ralfulrich committed
extern "C" {
ralfulrich's avatar
ralfulrich committed
typedef char s_name[6];
ralfulrich's avatar
ralfulrich committed
// SIBYLL particle stack (FORTRAN COMMON)
// variables are: np : numer of particles on stack
//                 p : 4momentum + mass of particles on stack
//             llist : id of particles on stack
extern struct {
  double p[5][8000];
  int llist[8000];
  int np;
} s_plist_;
// additional information about interactions.
// number of wounded nucleons, number of hard and soft scatterings etc.
extern struct { int nnsof[20], nnjet[20], jdif[20], nwd, njet, nsof; } s_chist_;

ralfulrich's avatar
ralfulrich committed
extern struct {
  double cbr[223 + 16 + 12 + 8];
  int kdec[1338 + 6 * (16 + 12 + 8)];
  int lbarp[99];
  int idb[99];
} s_csydec_;
ralfulrich's avatar
ralfulrich committed
// additional particle stack for the mother particles of unstable particles
// stable particles have entry zero
extern struct { int llist1[8000]; } s_plist1_;
ralfulrich's avatar
ralfulrich committed
// tables with particle properties
// charge, strangeness and baryon number
extern struct {
  int ichp[99];
  int istr[99];
  int ibar[99];
} s_chp_;
ralfulrich's avatar
ralfulrich committed
// tables with particle properties
// mass and mass squared
extern struct {
  double am[99];
  double am2[99];
} s_mass1_;
ralfulrich's avatar
ralfulrich committed
// table with particle names
extern struct { char namp[6][99]; } s_cnam_;
ralfulrich's avatar
ralfulrich committed
// debug info
extern struct {
  int ncall;
  int ndebug;
  int lun;
} s_debug_;
ralfulrich's avatar
ralfulrich committed
// lund random generator setup
// extern struct {int mrlu[6]; float rrlu[100]; }ludatr_;
ralfulrich's avatar
ralfulrich committed
// sibyll main subroutine
ralfulrich's avatar
ralfulrich committed
void sibyll_(const int&, const int&, const double&);
ralfulrich's avatar
ralfulrich committed
// subroutine to initiate sibyll
void sibyll_ini_();
Felix Riehn's avatar
Felix Riehn committed

ralfulrich's avatar
ralfulrich committed
// subroutine to SET DECAYS
void dec_ini_();
ralfulrich's avatar
ralfulrich committed
// subroutine to initiate random number generator
// void rnd_ini_();
ralfulrich's avatar
ralfulrich committed
// print event
void sib_list_(int&);
ralfulrich's avatar
ralfulrich committed
// decay routine
void decsib_();
ralfulrich's avatar
ralfulrich committed
// interaction length
// double fpni_(double&, int&);
Felix Riehn's avatar
Felix Riehn committed
void sib_sigma_hnuc_(const int&, const int&, const double&, double&, double&, double&);
ralfulrich's avatar
ralfulrich committed
void sib_sigma_hp_(const int&, const double&, double&, double&, double&, double*, double&,
                   double&);
ralfulrich's avatar
ralfulrich committed
double s_rndm_(int&);
ralfulrich's avatar
ralfulrich committed
// phojet random generator setup
void pho_rndin_(int&, int&, int&, int&);