00001 // -*- C++ -*- 00002 00003 #include "AGILe/Ariadne/AriadneWrapper.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_artune( const char* version ) { 00033 artune_( version, strlen(version) ); 00034 } 00035 00036 void call_arinit( const char* setup ) { 00037 arinit_( setup, strlen(setup) ); 00038 } 00039 00040 void call_arexec() { 00041 arexec_(); 00042 } 00043 void call_ariset( int in, float val) { 00044 ariset_( &in, &val ); 00045 }