#ifndef __RUNVEGAS__
#define __RUNVEGAS__

#include<stdio.h>
#include"vegas.h"

extern int runVegas (int init);

typedef struct
  {
    long ncall0;
    int itmx0;
    int wrtEvnt;
  }
mcintr_;
extern mcintr_ mcintr_1;

extern int nSess;
extern double rapidity;
extern int WriteVegasGrid (FILE * f);
extern int ReadVegasGrid (FILE * f);

typedef struct vegas_integral
  {
    double s0, s1, s2;
    long nCallTot;
    int n_it, old;
  }
vegas_integral;

extern vegas_integral integral;

#endif
