otsdaq_utilities  v2_05_02_indev
examples.js
1 examples_main = {
2  TH1 : [
3  { opt: "", file: "hsimple.root", item: "hpx;1" },
4  { opt: "P" },
5  { opt: "P0" },
6  { name: "star", opt:"*", title: "draw stars on histogram bins" },
7  { name: "*H", opt:"*H", title: "draw stars and histogram itself" },
8  { opt: "L", title: "draw histogram as line" },
9  { name: "LF2", opt:"LF2,fill_blue", title: "draw histogram as line with filled area" },
10  { name: "B", opt:"B,fill_red", title: "draw histogram as bar chart" },
11  { opt: "A", title: "disables axes drawing" },
12  { opt: "E" },
13  { opt: "E0", title: "draw errors, also for empty bins" },
14  { opt: "E1" },
15  { opt: "E1X0", title: "draw error markers, without horizontal part" },
16  { opt: "pE2" },
17  { name: "E3", opt: "e3,fill_red" },
18  { name: "E4", opt: "e4,fill_blue" },
19  { name: "text", opt: "hist,text" },
20  { name: "lego", opt: "lego2,pal50" },
21  { opt: "X+Y+" },
22  { opt: "inspect", title: "universal object inspector, can be used for any class" },
23  { name: "docu", file: "histpainter6.root", layout: "vert32", items: ["two_axis","draw_e1","draw_bar","draw_e34","draw_text"], title:"several TH1 examples from THistPainter documentation" }
24  ],
25  TH2 : [
26  { opt: "", file: "hsimple.root", item: "hpxpy;1" },
27  { opt: "col" },
28  { opt: "colpal77", title: "example how color palette 77 can be used for drawing" },
29  { opt: "colz", title: "color draw with palette" },
30  { opt: "acol", title: "disable axes drawing with col option" },
31  { name: "projx1", opt: "projx1,colz", title: "Draw X projection together with 2D plot", notest:true },
32  { name: "projy3", opt: "projy3,colz", title: "Draw Y projection over 3 bins together with 2D plot", notest:true },
33  { opt: "arr", title: "ARR draw option" },
34  { opt: "cont", title: "Contour plot" },
35  { opt: "cont1", title: "Contour plot with different line colors" },
36  { opt: "cont2", title: "Contour plot with different line styles" },
37  { opt: "cont3", title: "Contour plot with just lines" },
38  { opt: "cont4", title: "Contour plot with background color" },
39  { opt: "surf", title: "3D plot with surf option" },
40  { opt: "surf1", title: "3D SURF plot with colors levels" },
41  { opt: "surf2", title: "3D colored SURF without lines" },
42  { opt: "surf3", title: "3D SURF with contour plot on the top" },
43  { opt: "surf4", title: "3D SURF with Gouraud shading" },
44  { opt: "surf6", title: "Only contour lines in 3D space" },
45  { opt: "surf7", title: "3D colored SURF with contours on the top" },
46  { opt: "e", title: "3D plot with errors" },
47  { opt: "lego", title: "3D lego plot" },
48  { opt: "lego0", title: "3D lego plot (without zeros)" },
49  { opt: "lego1", title: "3D lego plot with red colors on x-sides" },
50  { opt: "lego2", title: "3D lego plot with color levels" },
51  { opt: "lego3", title: "lego3 plot - lego1 without border lines" },
52  { opt: "lego4", title: "lego4 plot - lego2 without border lines" },
53  { opt: "text", title: "draw bins content as text, can be combined with col, box or scat options" },
54  { opt: "texte", title: "draw bins bins content as text and error in new line - using #splitline syntax" },
55  { opt: "texte0", title: "draw errors in the same line" },
56  { opt: "scat", title: "scatter plot (used as default draw option)" },
57  { name: "box", json: "hbox.json.gz", opt: "box", title: "boxes, area proportional to bin content" },
58  { name: "box1", json: "hbox.json.gz", opt: "box1", title: "boxes, area proportional to bin content" }
59  ],
60  TH2Poly : [
61  { name: "honeycomb", file: "th2poly.root", item: "honeycomb;1", opt: "l,col" },
62  { opt: "lego", file: "th2poly.root", item: "boxes;1" },
63  { opt: "col0z", title: "suppress empty bins with 0 option" },
64  { name: "europe", item: "europe;1", opt: "", title: "Europe map (relatively old)" },
65  { name: "usa", item: "usa;1", opt: "l,col,pal50", title: "USA map" },
66  { name: "fibonacci", file: "tutorials_hist.root", item: "Fibonacci", title: "Macro outputs from $ROOTSYS/tutorials/hist/Fibonacci.C" },
67  { name: "tprofile2poly", file: "tprofile2poly.root", item: "c2", title: "Example of TProfile2Poly class, see $ROOTSYS/tutorials/hist/tprofile2polyRealistic.C output" }
68  ],
69  TH3 : [
70  { opt: "", file: "histpainter6.root", item: "draw_th3_scat;1" },
71  { opt: "box", file: "histpainter6.root", item: "draw_th3_box;1/h3box" },
72  { name: "box2", file: "hsimple.root", item: "ntuple", opt: "px:py:pz;hbins:15;drawopt:box2", title: "use colors" },
73  { name: "box3", file: "hsimple.root", item: "ntuple", opt: "px:py:pz;hbins:15;drawopt:box3", title: "use colors" },
74  { opt: "glbox1", file: "glbox.root", item: "h31;1", title: "draw spheres" },
75  { opt: "glbox2", title: "draw spheres with color derived from bin content" },
76  { opt: "glcol", file: "histpainter6.root", item: "glvoxel", title: "draw semi-transparent boxes with color derived from bin content" }
77  ],
78  TTree : [
79  { name: "Draw", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px", title: "Histogram data of TBranch object" },
80  { name: "2d", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px:py", title: "Two-dimensional TTree::Draw" },
81  { name: "3d", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px:py:pz", title: "Three-dimensional TTree::Draw" },
82  { name: "dump", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px+py+pz>>dump;num:30", title: "Three-dimensional TTree::Draw" },
83  { name: "hist", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px:py>>hist(50,-5,5,50,-5,5)", title: "TTree::Draw into custom histogram" },
84  { name: "cut", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px:py::pz>5", title: "TTree::Draw with cut condition" },
85  { name: "player", asurl: true, file: "hsimple.root", item: "ntuple", opt: "px:py::pz>5;player", title: "Enable player to let change draw expression" },
86  { name: "lhcb2", asurl: true, file: "https://root.cern/files/lhcb2.root", item: "E;1//Event/Gen/Header/m_evtNumber", title: "Histogram data of sub-sub-branches from lhcb2.root file" },
87  { name: "atlas", asurl: true, file: "https://root.cern/files/atlas30new.root", item: "CollectionTree", opt: "TileMuContainer_p1_TileMuObj.vector.m_phi", title: "Histogram data of tree from atlas30new.root file" },
88  { name: "expr", asurl: true, file: "WJets.root", opt: "TMath::Abs(lep1_p4.M())", item: "t", title: "Use of expression and object methods" },
89  { name: "vect_expr", asurl: true, file: "WJets.root", item: "t", opt: "jets.M()", title: "Use of expression for objects, stored in the vector" }
90  ],
91  TProfile : [
92  { opt: "", file: "hsimple.root", item: "hprof;1" },
93  { opt: "E" },
94  { opt: "E1" },
95  { opt: "pE2" },
96  { opt: "hist" },
97  { name: "text", opt: "hist,text" },
98  { name: "texte", opt: "hist,texte" }
99  ],
100  THStack : [
101  { opt: "", file: "histpainter6.root", item: "draw_hstack;1", title: "several examples from THistPainter docu" },
102  { name: "nostackb", item: "draw_nostackb;1", title: "example of bar chart with stacked histograms" },
103  { name: "err", item: "draw_stacke;1", title: "error draw options for stacked histograms" },
104  { name: "lego", file: "tutorials_hist.root", item: 'multicolor', title: "Several histograms with different colors, tutorials/hist/multicolor.C" }
105  ],
106  TF1 : [
107  { name: "hist+func", opt: "", url: "?nobrowser&file=$$$fillrandom.root&item=h1f;1+sqroot;1" },
108  { name: "canv", opt: "", file: "danilo6.root", item: "canvas;1" },
109  { name: "sum", opt: "", file: "tf1new.root", item: "c1;1", title: "newest version of ROOT with new coding rules for the functions parameters" },
110  { name: "ff2", file: "ff2.root", item: "c1Dia;1" },
111  { name: "ff3", file: "ff3.root", item: "c1Dia;1" }
112  ],
113  TF2 : [
114  { name: "tf2", json: "tf2.json.gz", opt: "nosave", title: "Example of TF2 drawing" },
115  { name: "3d", file: "tutorials_graphs.root", item: "annotation3d", title: "Output of tutorials/graphs/annotation3d.C" },
116  { name: "pnt", file: "tutorials_graphs.root", item: "graph2derrorsfit", title: "Combination of TF2 and TGraph2DErrors, output of tutorials/graphs/graph2derrorsfit.C" },
117  ],
118  TCanvas : [
119  { name:"roofit", file: "rf107.root", item: "rf107_plotstyles;1" },
120  { name:"subpad", url: "?nobrowser&file=$$$rf107.root&item=rf107_plotstyles;1/[0]", title: "Draw only selected sub-pad from list of TCanvas list of primitives" },
121  { name:"zdemo", file: "zdemo.root", item: "zdemo;1" },
122  { name:"legend", asurl: true, file: "legends.root", item: "legends;1", latex: "mathjax", title: "TCanvas with TLegend, use MathJax.js" },
123  { name:"time", file: "ct.root", item: "ct;1" },
124  { name:"2d+3d", file: "mix2d3d.root", item: "Canvas;1", title: "Mixture of 2D and 3D drawings on the same canvas (work properly in Firefox and Chrome)" },
125  { name: "big", file: "bigcanvas.root", item: "big", title: "100 histograms in subpads, for performance testing" }
126  ],
127  TGeo : [
128  { name:"logo", asurl: true, file: "geom/rootgeom.root", item: "simple1;1", title:"Geometry from rootgeom.C example" },
129  { name:"camera", asurl: true, file: "geom/rootgeom.root", item: "simple1;1", opt:"roty88,rotz357,zoom149", title:"Change camera position and zoom via URL parameters" },
130  { name:"prim", file: "geom/geodemo.root", layout: "vert333", items: ['box','para','arb8','trap','gtra','trd1','trd2','xtru'], opts: ['z','z','z','z','z','z','z','z','z'], title:"Basic TGeo primitives from tutorials/geom/geodemo.C" },
131  { name:"prim2", file: "geom/geodemo.root", layout: "vert333", items: ['cone','coneseg','tube','tubeseg','ctub','eltu','pcon','pgon'], opts: ['z','z','z','z','z','z','z','z'], title:"Basic TGeo primitives from tutorials/geom/geodemo.C" },
132  { name:"prim3", file: "geom/geodemo.root", layout: "grid3x2", items: ['sphere','torus','parab','hype','comp'], opts: ['z','z','z','z','z'], title:"Basic TGeo primitives from tutorials/geom/geodemo.C" },
133  { name:"comp", url: "?nobrowser&file=$$$geom/geodemo.root+&layout=grid2x2&items=[comp;1/Left,comp;1/Right,comp;1,comp;1]&opts=[az,az,comp_az,az]", title:"Components of composite shape" },
134  { name:"building", asurl: true, file: "geom/building.root", item: "geom;1", opt: "allz", title: "Geometry from tutorials/geom/building.C" },
135  { name:"alice", asurl: true, file: "https://root.cern/files/alice2.root", item: "Geometry;1", opt: "macro:https://root.cern/js/files/geomAlice.C;black;vislvl2", title: "ALICE geometry" },
136  { name:"atlas", asurl: true, file: "https://root.cern/files/atlas.root", item: "atlas;1", opt: "dflt;black", title:"ATLAS geometry" },
137  { name:"cms", asurl: true, file: "https://root.cern/files/cms.root", item: "cms;1", opt: "macro:https://root.cern/files/cms_cmse.C;clipxyz;black", title: "CMS geomtery" },
138  { name:"animate", asurl: true, file: "https://root.cern/files/cms.root", item: "cms;1/OCMS/CMSE_1", opt: "vislvl4;dflt;trr300;trz300;rotate;zoom90;black;ctrl", title: "Animated and transformed CMS geomtery", notest:true },
139  { name:"lhcb", asurl: true, file: "https://root.cern/files/lhcbfull.root", item: "Geometry;1", opt: "all;dflt;black", title: "LHCb geometry" },
140  { name:"eve", asurl: true, json: "geom/evegeoshape.json.gz", title: "Example of drawing snapshot of volumes from EVE" },
141  { name:"tracks", url: "?nobrowser&json=$$$geom/evegeoshape.json.gz&file=$$$geom/eve_tracks.root&item=evegeoshape.json.gz+eve_tracks.root/tracks;1", title:"Overlap of geometry with tracks, read from separate file" },
142  { name:"tracks+hits", url: "?nobrowser&json=$$$geom/simple_alice.json.gz&file=$$$geom/tracks_hits.root&item=simple_alice.json.gz+tracks_hits.root/tracks;1+tracks_hits.root/hits;1&opt=black", title:"Overlap of simple ALICE geometry with tracks and hits, read from separate file" },
143  { name: "proj", url: "?nobrowser&layout=h12_21&files=[https://root.cern/files/alice_ESDgeometry.root,$$$geom/eve_tracks.root]&items=[[[0]/Gentle,[1]/tracks],[0]/Gentle,[0]/Gentle]&opts=[main;black,projz;black,projx;black]", title: "Simple ALICE geometry and two projections" },
144  { name: "overlap", asurl: true, file: "geom/overlap.root", item: "default/Overlaps/ov00010", itemfield: "Overlaps/ov00010", title: "example of TGeoOverlap" },
145  { name: "half", json: "geom/comp_half.json.gz", title: "Use of TGeoHalfSpace for building composites" }
146  ],
147  TGraph : [
148  { opt: "", file: "graph.root", item: "Graph;1" },
149  { opt: "L" },
150  { opt: "P" },
151  { name: "star", opt:"*" },
152  { opt: "LP" },
153  { opt: "B" },
154  { opt: "B1" },
155  { opt: "AX+Y+L", title: "move X/Y labels on other side" },
156  { opt: "IA", title: "hide (Invisible) axes drawing " },
157  { name: "RX", opt: "ARXL", title: "reverse X axis" },
158  { name: "RY", opt: "ARYL", title: "reverse Y axis" },
159  { name: "docu", file: "graph.root", layout: "vert333", items: ['c1','c47','c4','c48','c41','c42','c43','c44','c45'], title: "several canvas from TGraph documentation page" },
160  { name: "excl", file: "tutorials_graphs.root", item: "exclusiongraph2", title: "Exclusion draw exampl, output of tutorials/graphs/exclusiongraph2.C" },
161  { name: "plc", file: "tutorials_graphs.root", item: "graphpalettecolor", title: "Automatic set of graph colors, output of tutorials/graphs/graphpalettecolor.C" },
162  { name: "shade", file: "tutorials_graphs.root", item: "graphShade", title: "output of tutorials/graphs/graphShade.C" }
163  ],
164  TGraphErrors : [
165  { opt:"", file: "graph.root", item: "GraphErrors;1" },
166  { opt:"l", title: 'just line with errors' },
167  { opt:"lx", title: 'suppress drawing of the errors' },
168  { opt:"z" , title: "do not draw ends"},
169  { opt:">" , title: "draw arrows at the ends"},
170  { opt:"|>" , title: "draw closed arrows at the ends"},
171  { opt:"||" , title: "do not draw main error lines, only ends"},
172  { opt:"[]" , title: "do not draw main error lines, only ends as brackets"},
173  { opt:"0", title: "do not draw errors for points outside range" },
174  { opt:"2", title: "filled rec" },
175  { opt:"3" },
176  { opt:"4" },
177  { opt:"5", title: "filled rec plus line contour" }
178  ],
179  TGraphAsymmErrors : [
180  { opt:"", file: "graph.root", item: "GraphAsymmErrors;1" },
181  { opt:"z" , title: "do not draw ends"},
182  { opt:">" , title: "draw arrows at the ends"},
183  { opt:"|>" , title: "draw closed arrows at the ends"},
184  { opt:"||" , title: "do not draw main error lines, only ends"},
185  { opt:"[]" , title: "do not draw main error lines, only ends as brackets"},
186  { opt:"2", title: "filled rec" }
187  ],
188  TGraphPolar : [
189  { opt: "", file: "tutorials_graphs.root", item: "graphpolar", title: "Polar coordinates, output of tutorials/graphs/graphpolar.C" },
190  { name: "tut2", item: "graphpolar2", title: "Polar coordinates, output of tutorials/graphs/graphpolar2.C" },
191  { name: "tut3", item: "graphpolar3", title: "Polar coordinates, output of tutorials/graphs/graphpolar3.C" }
192  ],
193  TMultiGraph : [
194  { name: "exclusion", file: "graph.root", item: "exclusion;1" },
195  { name: "c1", file: "multigraph.root", item: "c1;1" },
196  { name: "c2", item: "c2;1" },
197  { name: "c3", item: "c3;1" },
198  { name: "c4", item: "c4;1" },
199  { name: "c5", item: "c5;1" },
200  { name: "all", url: "?nobrowser&file=$$$multigraph.root&layout=grid3x2&items=[c1,c2,c3,c4,c5]" }
201  ],
202  TGraph2D : [
203  { opt: "", file: "graph2d.root", item: "Graph2D", title: "example of TGraph2D" },
204  { name: "pcol", item: "pcol", title: "example of TGraph2D, color options" },
205  { opt: "err", item: "cerr", title: "example of TGraph2DErrors, errors drawing" },
206  { opt: "line", item: "line", title: "line drawing with TGraph2D" }
207  ],
208  TLatex : [
209  { name: "latex", file: "latex.root", layout: "grid2x2", items: ['lva','ex1','ex2','ex3'], title: "Internal TLatex processor" },
210  { name: "mathjax", file: "latex.root", layout: "grid2x2", latex: "mathjax", items: ['lva','ex1','ex2','ex3'], title: "Render TLatex with MathJax.js" },
211  { name: "math", file: "latex.root", item: "math", title: "TMathText drawn always with MathJax.js rendering" }
212  ],
213  Misc : [
214  { name: "ellipse", file: "ellipse.root", item: "c1;1", title: "TEllipse class" },
215  { name: "axis", file: "gaxis.root", item: "c1;1", title: "TGaxis class" },
216  { name: "arrow", file: "arrow.root", item: "c1;1", title: "TArrow class" },
217  { name: "sinfo", url: "?nobrowser&file=$$$hsimple.root&item=StreamerInfo", title: "List of streamer infos" },
218  { name: "3dmark", url: "?nobrowser&file=$$$mix2d3d.root&item=Canvas;1/pad4&opt=white", title: "TPloyMarker3D class" },
219  { name: "profile2d", file: "profile2d.root", item: "c1;1", title: "TProfile2D class" },
220  { name: "spline", file: "tutorials_graphs.root", item: 'splines_test', title: "TSpline3 and TSpline5 classes, tutorials/graphs/splines_test.C" },
221  { name: "polyline", file: "polyline.root", item: "can;1", title: "TPolyLine class (produced with graphics/triangles.C)" },
222  { name: "class", json: "draw_class.json.gz", title: "Canvas, produced with DrawClass() call" },
223  { name: "archi", file: "tutorials_graphics.root", item: 'archi', title: "Usage of TPavesText, tutorials/graphics/archi.C" },
224  { name: "feynman", file: "tutorials_graphics.root", item: 'feynman', title: "Usage of TCulyLine/Arc, tutorials/graphics/feynman.C" },
225  { name: "pie", file: "tutorials_graphics.root", item: 'piechart', title: "TPie, tutorials/graphics/piechart.C" },
226  { name: "fill", file: "fillpatterns.root", item: 'patterns', title: "Different fill patterns" }
227  ]
228  };