Rev | Line | |
---|
[1350] | 1 | |
---|
| 2 | MACRO 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 | |
---|
| 20 | m = $exec('NumberOfSolids') | number of solids |
---|
| 21 | |
---|
| 22 | do solidnum=1,[m] |
---|
| 23 | |
---|
| 24 | file = $shell('ls hbk/run_*.hbk',[solidnum]) |
---|
| 25 | mess process [file] |
---|
| 26 | exec singlesolid [file] |
---|
| 27 | |
---|
| 28 | enddo |
---|
| 29 | |
---|
| 30 | return |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | ****************************************************************** |
---|
| 34 | ****************************************************************** |
---|
| 35 | ******* determine the number of hbook files in hbk *************** |
---|
| 36 | |
---|
| 37 | Macro NUMBEROFSOLIDS |
---|
| 38 | |
---|
| 39 | m = $shell('ls -l hbk/run_*.hbk | wc -l') |
---|
| 40 | |
---|
| 41 | Return [m] |
---|
Note: See
TracBrowser
for help on using the repository browser.