StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Pythia6.cxx
1 #include "Pythia6.h"
2 
3 //
4 // Declare several f77 functions/subroutines
5 //
6 #define pytune F77_NAME(pytune,PYTUNE) /* selects pythia tune */
7 #define pyinit F77_NAME(pyinit,PYINIT) /* pythia initialization */
8 #define pylist F77_NAME(pylist,PYLIST) /* pythia event recrd listing */
9 #define pyevnt F77_NAME(pyevnt,PYEVNT) /* generate a pythia event */
10 #define pyhepc F77_NAME(pyhepc,PYHEPC) /* copy to HEPEVT common... needed? */
11 #define pystat F77_NAME(pystat,PYSTAT) /* print end of run statistices */
12 #define pyr F77_NAME(pyr, PYR ) /* pythia random numbers */
13 #define py1ent F77_NAME(py1ent,PY1ENT) /* add entry */
14 #define pycomp F77_NAME(pycomp,PYCOMP) /* kc code from kf code */
15 
16 extern "C" void type_of_call pyevnt();
17 extern "C" void type_of_call pystat(int *key);
18 extern "C" void type_of_call pylist(int *key);
19 extern "C" int type_of_call pytune(int *itune);
20 extern "C" void type_of_call pyhepc(int *mconv);
21 extern "C" void type_of_call pyinit( const char *frame, const char *beam, const char *targ, double *ener, int nframe, int nbeam, int ntarg );
22 extern "C" void type_of_call py1ent(int *i, int *j, double *e, double *t, double *p );
23 extern "C" int type_of_call pycomp(int *kf);
24 
25 void PyEvnt(){ pyevnt(); }
26 void PyStat( int s ){ pystat( &s ); }
27 void PyList( int l ){ pylist( &l ); }
28 void PyTune( int t ){ pytune( &t ); }
29 void PyHepc( int m ){ pyhepc( &m ); }
30 void PyInit( string frame, string blue, string yellow, double energy ){ pyinit( frame.c_str(), blue.c_str(), yellow.c_str(), &energy, frame.size(), blue.size(), yellow.size() ); }
31 void Py1Ent( int ip, int kf, double energy, double theta, double phi ) { py1ent( &ip, &kf, &energy, &theta, &phi ); }
32 int PyComp( int kf ){ return pycomp(&kf); }
Definition: beam.h:43