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 pygive F77_NAME(pygive,PYGIVE) /* pythia configuration */
9 #define pylist F77_NAME(pylist,PYLIST) /* pythia event recrd listing */
10 #define pyevnt F77_NAME(pyevnt,PYEVNT) /* generate a pythia event */
11 #define pyhepc F77_NAME(pyhepc,PYHEPC) /* copy to HEPEVT common... needed? */
12 #define pystat F77_NAME(pystat,PYSTAT) /* print end of run statistices */
13 #define pyr F77_NAME(pyr, PYR ) /* pythia random numbers */
14 #define py1ent F77_NAME(py1ent,PY1ENT) /* add entry */
15 #define pycomp F77_NAME(pycomp,PYCOMP) /* kc code from kf code */
16 #define closedecays F77_NAME(closedecays,CLOSEDECAYS)
17 #define opendecay F77_NAME(opendecay,OPENDECAY)
18 
19 extern "C" void type_of_call pyevnt();
20 extern "C" void type_of_call pystat(int *key);
21 extern "C" void type_of_call pylist(int *key);
22 extern "C" int type_of_call pytune(int *itune);
23 extern "C" void type_of_call pyhepc(int *mconv);
24 extern "C" void type_of_call pyinit( const char *frame, const char *beam, const char *targ, double *ener, int nframe, int nbeam, int ntarg );
25 extern "C" void type_of_call pygive( const char *command, int n );
26 extern "C" void type_of_call py1ent(int *i, int *j, double *e, double *t, double *p );
27 extern "C" int type_of_call pycomp(int *kf);
28 
29 extern "C" void type_of_call closedecays( int& id );
30 extern "C" void type_of_call opendecay( int& id, int& idcy, int& value );
31 
32 void PyEvnt(){ pyevnt(); }
33 void PyStat( int s ){ pystat( &s ); }
34 void PyList( int l ){ pylist( &l ); }
35 void PyTune( int t ){ pytune( &t ); }
36 void PyHepc( int m ){ pyhepc( &m ); }
37 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() ); }
38 void PyGive( string command ){ pygive( command.c_str(), command.size() ); }
39 void Py1Ent( int ip, int kf, double energy, double theta, double phi ) { py1ent( &ip, &kf, &energy, &theta, &phi ); }
40 int PyComp( int kf ){ return pycomp(&kf); }
41 void PyCloseDecays( int id ) { closedecays(id); }
42 void PyOpenDecay( int id, int idcy, int val ){ opendecay(id,idcy,val); }
Definition: beam.h:43