1 %!PS-Adobe-2.0 EPSF-2.0
7 %%Orientation: Portrait
8 %%BoundingBox: 0 0 500 165.975
14 % ----- variables -----
22 /boundaspect 3.0125 def % aspect ratio of the BoundingBox (width/height)
24 /boundy boundx boundaspect div def
30 /boxfont /Times-Roman findfont fontheight scalefont def
32 % ----- procedures -----
34 /dotted { [1 4] 0 setdash } def
35 /dashed { [5] 0 setdash } def
36 /solid { [] 0 setdash } def
38 /max % result = MAX(arg1,arg2)
45 /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2)
47 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max
50 /cw % boxwidth = MAX(boxwidth, stringwidth(arg1))
53 /boxwidth boxwidth str stringwidth pop max def
56 /box % draws a box with text `arg1' at grid pos (arg2,arg3)
60 exch xspacing mul xoffset add
65 boxwidth neg 0 rlineto
66 0 boxheight neg rlineto
68 dup stringwidth pop neg boxwidth add 2 div
69 boxheight fontheight 2 div sub 2 div
76 exch xspacing mul xoffset add boxwidth add
79 0 boxheight 4 div rlineto
80 boxheight neg 4 div boxheight neg 4 div rlineto
97 /out % draws an output connector for the block at (arg1,arg2)
100 exch xspacing mul xoffset add boxwidth 2 div add
101 exch yspacing mul boxheight add
105 0 disty 2 div rlineto
107 1 eq { x y disty 2 div add arrow } if
110 /in % draws an input connector for the block at (arg1,arg2)
113 exch xspacing mul xoffset add boxwidth 2 div add
114 exch yspacing mul disty 2 div sub
118 0 disty 2 div rlineto
120 1 eq { x y disty 2 div add arrow } if
125 exch xspacing mul xoffset add boxwidth 2 div add
126 exch yspacing mul boxheight 2 div sub
131 boxwidth 2 div distx add 0 rlineto
134 { newpath x boxwidth 2 div distx add add y moveto
150 xs xspacing mul xoffset add boxwidth 2 div add dup
151 ys yspacing mul boxheight 2 div sub
153 ye yspacing mul boxheight 2 div sub
158 /conn % connections the blocks from col `arg1' to `arg2' of row `arg3'
164 xs xspacing mul xoffset add boxwidth 2 div add
165 ys yspacing mul disty 2 div sub
167 xspacing xe xs sub mul 0
176 (AliHLTPHOSRawAnalyzerChiSquareFit) cw
177 (AliHLTPHOSRawAnalyzer) cw
178 /boxwidth boxwidth marginwidth 2 mul add def
179 /xspacing boxwidth distx add def
180 /yspacing boxheight disty add def
182 boxwidth cols mul distx cols 1 sub mul add
183 boxheight rows mul disty rows 1 sub mul add boundaspect mul
185 boundx scalefactor div boundy scalefactor div scale
187 % ----- classes -----
189 (AliHLTPHOSRawAnalyzerChiSquareFit) 0 0 box
190 (AliHLTPHOSRawAnalyzer) 0 1 box
192 % ----- relations -----