Changeset 1602


Ignore:
Timestamp:
11/13/02 18:21:05 (22 years ago)
Author:
bigongia
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/tester/cermaker.c

    r1601 r1602  
    111111/*****************************/
    112112
    113 if (argc < 7 || argc > 8)
     113if (argc < 4 || argc > 5)
    114114  {
    115     printf ("\nUsage: cermaker source_x(cm) source_y(cm) source_z(cm) minradius(cm) maxradius(cm) maxpsi(deg) [events]\n\n");
     115    printf ("\nUsage: cermaker source_x(cm) source_y(cm) source_z(cm) [events]\n\n");
    116116    exit(-1);
    117117  }
     
    125125source_z += MAGIC_HEIGHT;
    126126
     127/*
    127128sscanf (argv[4], "%f", &minradius);
    128129sscanf (argv[5], "%f", &maxradius);
    129130sscanf (argv[6], "%f", &maxpsi);
    130 
    131 if (argc == 8)
    132   sscanf (argv[7], "%d", &maxevents);
     131*/
     132
     133minradius = 0.; maxradius = 900.; maxpsi = 360.;
     134
     135if (argc == 5)
     136  sscanf (argv[4], "%ld", &maxevents);
     137
    133138
    134139memset ((char*)dummy,0,sizeof(dummy));
Note: See TracChangeset for help on using the changeset viewer.