#include #include #include using namespace std; // These are defined in copytoplusplus.cc extern string INFILE; extern string OUTFILE; extern bool POSTSMEAR; extern string MCSMEAROPTS; extern bool DELETEUNSMEARED; // Declare routines callable from FORTRAN extern "C" int hdgeant_(void); // define in hdgeant_f.F int main(int narg, char *argv[]) { // Run hdgeant proper int res = hdgeant_(); // Optionally smear the resulting output file if(POSTSMEAR){ string cmd = "mcsmear "+MCSMEAROPTS+" "+OUTFILE; cout<