source: trunk/source/geometry/solids/test/SurfaceChecker/solidplot.kumac @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 1.2 KB
Line 
1
2MACRO SOLIDPLOT
3
4* Author: Oliver Link, Oliver.Link@cern.ch
5* Description:
6*    1. testall.pl generates hbook files in folder hbk
7*         (e.g: hbk/run_solidname_nevents.hbk)
8*    2. The user can specify the range to be analysed [xmin] [xmax]
9*        and change the number of bins [n] . See USER INPUT below
10*    3. solidplot.kumac is analysing only files respecting the
11*       naming scheme (1.), ommiting other hbk files in the folder!!!
12*       See Macro: checksolids
13*    4. Plotting data (stored in vectors).
14*       Macro: plot [psfile] [xmin] [xmax] [ymin] [ymax]
15*   ->  Prepares two postscript files
16*            - name-full.ps  : full range plotted
17*            - name-zoom.ps  : reduced range plotted
18*          ( this may be changed in future, e.g more plots, ranges.. )   
19
20m     =  $exec('NumberOfSolids')      |  number of solids
21
22do solidnum=1,[m]
23
24  file = $shell('ls hbk/run_*.hbk',[solidnum])
25  mess process [file]
26  exec singlesolid [file]
27
28enddo
29
30return
31
32
33******************************************************************
34******************************************************************
35******* determine the number of hbook files in hbk ***************
36
37Macro NUMBEROFSOLIDS
38
39 m = $shell('ls -l hbk/run_*.hbk | wc -l')
40
41Return [m]
Note: See TracBrowser for help on using the repository browser.