Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
289 f9daq 1
int positions() {
2
 
3
  FILE *fp=fopen("positions.txt","w");
4
  int i=0,j=0;
5
  int nx=20;
6
  int ny=20;
7
  int minx=145000;
8
  int maxx=295000;
9
  int miny=85000;
10
  int maxy=235000;
11
  //~ fprintf(fp,"30000 124000\n");
12
  fprintf(fp,"48000 110000\n");
13
  for (i=0; i<nx+1; i++) for (j=0; j<ny+1; j++)
14
      fprintf(fp,"%d %d\n",minx+i*(maxx-minx)/nx, miny+j*(maxy-miny)/ny);
15
 
16
  fprintf(fp,"-1 -1\n");
17
  fclose(fp);
18
 
19
  gSystem->Exit(0);
20
  return 0;
21
}