MAP:YBOS

histograms

 When you map to shared memory (or restore a YBOS histogram file),
 for histogram number j, you get the following PHYSICA variables:

 variable name        type          YBOS structure name or description
 ------------------------------------------------------------------------
 HRUNNO               scalar        YBS.I_RUNNO
 HTITLE[j]            array text    YBS.HISTO_ST(j).DOT_NAME
 HTEST[j]             array text    YBS.HISTO_ST(j).TEST_NAME
 HDATA[j]             array text    YBS.HISTO_ST(j).DATA_NAME
 HIST                 vector        YBS.HISTO
 HSTART[j]            vector        starting index for histo #j
 HNBIN[j]             vector        YBS.HISTO_ST(j).N_BINS
 HLOW[j]              vector        YBS.HISTO_ST(j).XLOW
 HHI[j]               vector        YBS.HISTO_ST(j).XHI
 HBINW[j]             vector        (HHI[j]-HLOW[j])/HNBIN[j]
 HUNDER[j]            vector        YBS.HISTO_ST(j).XUNDER
 HOVER[j]             vector        YBS.HISTO_ST(j).XOVER
 HSUM[j]              vector        sum of histo #j
 HMEAN[j]             vector        mean value of histo #j
 HSIGMA[j]            vector        sigma of histo #j

dotplots

 Syntax: RESTORE\YBOS\DOTPLOT filename

 When you map to shared memory (or restore a YBOS dot plot file),
 for dot plot number j, you get the following PHYSICA variables:

 PHYSICA name         type          YBOS structure name or description
 ------------------------------------------------------------------------
 DRUNNO               scalar        YBS.I_RUNNO
 X_SYMBOL[j]          array text    YBS.DOT_EXTRA(j).X_SYMBOL
 Y_SYMBOL[j]          array text    YBS.DOT_EXTRA(j).Y_SYMBOL
 STEST_ALL[j]         array text    YBS.DOT_EXTRA(j).STEST_ALL
 DOT_NAME[j]          array text    YBS.DOT_ST(j).DOT_NAME
 SCTEST[j]            array text    YBS.DOT_EXTRA(j).SCTEST[1-4]
 XDOT                 vector        YBS.XDOT
 YDOT                 vector        YBS.YDOT
 XLOW[j]              vector        YBS.DOT_ST(j).X_LOW
 XHIGH[j]             vector        YBS.DOT_ST(j).X_HIGH
 YLOW[j]              vector        YBS.DOT_ST(j).Y_LOW
 YHIGH[j]             vector        YBS.DOT_ST(j).Y_HIGH
 SCTEST_START[j,1:4]  matrix        starting char. index for SCTEST[j]
 SCTEST_END[j,1:4]    matrix        final char. index for SCTEST[j]
 COL_DEF[j,1:4]       matrix        YBS.DOT_ST(j).COL_ST(1:4).COL_DEF
 COL_POINTER[j,1:4]   matrix        YBS.DOT_ST(j).COL_ST(1:4).COL_POINTER
 COL_OFF[j,1:4]       matrix        YBS.DOT_ST(j).COL_ST(1:4).COL_OFF
 ------------------------------------------------------------------------
 Furthermore: SCTEST[j][SCTEST_START[j,k]:SCTEST_END[j,k]] =
               YBS.DOT_EXTRA(j).SCTEST[k] 

1_example

 To plot histogram n:

  label\xaxis htitle[n]
  scalar\dummy j
  graph loop(hlow[n]+(j-1)*hbinw[n],j,1:hnbin[n]) -
   hist[hstart[n]:hstart[n]+hnbin[n]-1]

2_example

 To plot dotplot n:

 do j = [1:4]
   if (col_off[n,j] > 0 ) then
     scale xlow[n] xhigh[n] 5 ylow[n] yhigh[n] 5
     graph\axesonly
     colour j
     graph\noaxes -
      xdot[col_pointer[n,j]:col_pointer[n,j]+col_off[n,j]-1] -
      ydot[col_pointer[n,j]:col_pointer[n,j]+col_off[n,j]-1]
     set
      %xloc 32
      %yloc 90-3*j
      %txthit 2.0
       cursor -2

     text rchar(col_off[n,j],`F6.0')//`/'//sctest[n]
   endif
 enddo