00001 // -*- C++ -*- 00002 00003 #include "AGILe/Phojet/PhojetWrapper.hh" 00004 #include <cstring> 00005 00006 // Define methods to hide the subtle syntax necessary to call fortran from C++ 00007 void call_pyhepc( int mode ){ 00008 00009 pyhepc_( &mode ); 00010 } 00011 00012 void call_pyinit( const char* frame, const char* beam, const char* target, double win ) { 00013 pyinit_( frame, beam, target, &win, strlen(frame), strlen(beam), strlen(target) ); 00014 } 00015 00016 void call_pygive( const char* chin ) { 00017 pygive_( chin, strlen(chin) ); 00018 } 00019 00020 void call_pylist( int mode ) { 00021 pylist_( &mode ); 00022 } 00023 00024 void call_pystat( int mode ) { 00025 pystat_( &mode ); 00026 } 00027 00028 void call_pyevnt() { 00029 pyevnt_(); 00030 } 00031 00032 void call_pho_setpar(int i,int id, int mode,double zero) { 00033 pho_setpar_(&i,&id, &mode, &zero); 00034 } 00035 00036 void call_pho_init(int mode, int irej){ 00037 pho_init_( &mode, &irej); 00038 } 00039 00040 void call_pho_event(int mode, double* _p1, double* _p2, 00041 double sigmax, int irej) { 00042 pho_event_(&mode, _p1, _p2, &sigmax,&irej); 00043 } 00044 00045 void call_pho_hepevt() { 00046 pho_hepevt_(); 00047 } 00048 00049 void call_pho_rndin(int rndm1, int rndm2, int rndm3, int rndm4) { 00050 pho_rndin_(&rndm1,&rndm2,&rndm3,&rndm4); 00051 }