Subversion Repositories f9daq

Rev

Blame | Last modification | View Log | RSS feed

int positions() {

  FILE *fp=fopen("positions.txt","w");
  int i=0,j=0;
  int nx=20;
  int ny=20;
  int minx=145000;
  int maxx=295000;
  int miny=85000;
  int maxy=235000;
  //~ fprintf(fp,"30000 124000\n");
  fprintf(fp,"48000 110000\n");
  for (i=0; i<nx+1; i++) for (j=0; j<ny+1; j++)
      fprintf(fp,"%d %d\n",minx+i*(maxx-minx)/nx, miny+j*(maxy-miny)/ny);
 
  fprintf(fp,"-1 -1\n");
  fclose(fp);
 
  gSystem->Exit(0);
  return 0;
}