otsdaq_utilities  v2_05_02_indev
examples_more.js
1 examples_more = {
2  TH1: [
3  { name: "docu_zero", file: "histpainter6.root", layout: "vert21", style: "style_zero", items: ['draw_bar','draw_zero2','draw_zero1'], title: "show gStyle->SetHistMinimumZero(); functionality from THistPainter documentation page" },
4  { name: "varbins", file: "hbins.root", item: "SpectraPions;1", title: "variable bins" },
5  { name: "labels", opt: "hist", file: "hitmap.root", item: "EnergyMeanAsyLo;1", title: "custom text labels for hist bins" },
6  { name: "negfill", opt: "hist,fill_red", file: "hitmap.root", item: "EnergyMeanAsyLo;1", title: "fill attributes for histogram with negative bins" },
7  { name: "labels2", opt: "", file: "text_labels.root", item: "c1;1", title: "small labels, should be rotated by 20 grad" },
8  { name: "hbar", file: "hbars.root", item: "c1;1", title: "Horizontal bars" },
9  { name: "tut1", file: "tutorials_hist.root", layout: "grid2x1", items: ['h1draw','hksimple'], title: "Macro outputs from $ROOTSYS/tutorials/hist" },
10  { name: "tut2", file: "tutorials_hist.root", layout: "grid2x1", items: ['logscales', 'rebin'], title: "Macro outputs from $ROOTSYS/tutorials/hist" },
11  { name: "tut3", file: "tutorials_hist.root", layout: "grid2x2", items: ['histpalettecolor', 'hlabels1', 'twoscales', 'transpad'], title: "Macro outputs from $ROOTSYS/tutorials/hist" },
12  { name: "tut4", file: "tutorials_hist.root", layout: "grid2x2", items: ['thstackpalettecolor', 'statsEditing', 'testSmooth', 'xyplot'], opts: ['pfc nostack'], title: "Macro outputs from $ROOTSYS/tutorials/hist" }
13  ],
14  TH2: [
15  { name: "hitmap", file: "hitmap.root", item: "HitMap;1" },
16  { name: "atlas", opt: "col", file: "atlas.root", item: "LEDShapeHeightCorr_Gain0;1" },
17  { name: "logx", opt: "colz", file: "QAresults.root", item: "PIDqa/PIDqa1/ITS/hNsigmaP_ITS_electron;1" },
18  { name: "logz", url: "?nobrowser&file=$$$sparsehist.root&item=c;1&palette=7", title: "LogZ plus text on several canvas" },
19  { name: "userz", json: "th2ul.json.gz", opt: "colz", title: "TH2 with set user min/max, drawn with COLZ" },
20  { name: "candle", file: "candleplot.root", item: "c1;1" },
21  { name: "box_same", json: "hbox_same.json.gz", title: "several histograms, drawn with box same opitons" },
22  { name: "col_same", json: "hcol_same.json.gz", title: "several histograms, drawn with col same opitons" },
23  { name: "docu", file: "histpainter6.root", layout: "vert33", items: ['draw_th2e','draw_scat','draw_arr','draw_box','draw_box1','draw_boxsame'], title:"several TH2 examples from THistPainter documentation page" },
24  { name: "docu_col", file: "histpainter6.root", layout: "grid2x2", items: ['draw_col','draw_col1', 'draw_colr', 'draw_text2d'], title:"several TH2 COL examples from THistPainter documentation page" },
25  { name: "docu_cont", file: "histpainter6.root", layout: "vert33", items: ['draw_contz','draw_cont1z', 'draw_cont2', 'draw_cont3', 'draw_cont4z', 'draw_contlst1'], title:"several TH2 CONT examples from THistPainter documentation page" },
26  { name: "docu_lego", file: "histpainter6.root", layout: "grid2x2", items: ['draw_lego', 'draw_lego1', 'draw_lego3', 'draw_lego2'], title: "several TH2 LEGO examples from THistPainter documentation page" },
27  { name: "docu_surf", file: "histpainter6.root", layout: "grid4x2", items: ['draw_surf', 'draw_surf1', 'draw_surf2', 'draw_surf3', 'draw_surf4', 'draw_surf5', 'draw_surf7', 'draw_surf2_cont1'], title: "several TH2 SURF examples from THistPainter documentation page" },
28  { name: "lego_tf2", file: "https://root.cern/files/StressIOPluginsTestFiles/stress_5.root", item:"h2form", opt:"lego", title: "Combination of th2 an tf2 in 3D" },
29  { name: "tut1", file: "tutorials_hist.root", layout: "grid2x2", items: ['thstack2palettecolor', 'reverseaxis', 'hlabels2', 'labels3'], opts: ['0lego1_pfc'], title: "Macro outputs from $ROOTSYS/tutorials/hist" },
30  { name: "earth", file: "tutorials_graphics.root", item: 'earth', title: "Earth projections, tutorials/graphics/earth.C" }
31  ],
32  TH2Poly : [
33  { name: "germany", url: "?nobrowser&file=$$$th2poly.root&item=europe;1/[13]", title: "Draw single TH2PolyBin from europe map" },
34  { name: "docu", file: "histpainter6.root", layout: "vert22", items: ['draw_poly1', 'draw_poly2', 'draw_poly3'], title: "several TH2Poly examples from THistPainter documentation page" }
35  ],
36  TH3 : [
37  { name: "subpads", opt: "", file: "glc.root", item: "glc;1", title: "canvas with two subpads, both with 3D plotls" }
38  ],
39  TWebCanvas: [
40  { name: "greyscale", json: "web6canv/greyscale.json.gz", title: "40K TBox objects with different fill attributes" },
41  { name: "para", json: "web6canv/StandAloneaPara.json.gz", title: "TTree drawing into TParallelCoord object" },
42  { name: "pie", json: "web6canv/piechart.json.gz", title: "Testing native TPie painting" },
43  { name: "trans", json: "web6canv/transparency.json.gz", title: "Testing with TGraph without axes" }
44  ],
45 // v7 : [
46 // { name: "th1", opt: "", file: "v7.root", item: "th1", title: "v7 TH1 class" },
47 // { name: "th2", opt: "", file: "v7.root", item: "th2", title: "v7 TH2 class" },
48 // { name: "text", opt: "", file: "v7.root", item: "text", title: "v7 TText class" }
49 // ],
50  THStack : [
51  { opt: "orig", file: "stacks.root", item: "stacks;1", title: "original example used for JSROOT testing since a while" },
52  { name: "json", json: "thstack.json.gz", title: "some special stack from JSON file" }
53  ],
54  TTree : [
55  { name: "wjets", asurl: true, file: "WJets.root", item: "t;1/met", title: "Histogram data of branch with vectors" },
56  { name: "index", asurl: true, file: "tree99.root", item: "T;1", opt: "ex3.fInt[ex3.fSize-2]", title: "Use branch value as index in another branch draw" },
57  { name: "cms2", asurl: true, file: "https://root.cern/files/cms2.root", item: "Events", opt:"recoPhotons_photons__RECO.obj[].pt_", title: "cms2.root file, example of draw subelement of the branch" },
58  { name: "brobj", asurl: true, file: "https://root.cern/files/mods.root", item: "MODS/Particles", opt: "dump", title: "TObjectBranch, appears in older ROOT files" },
59  { name: "bits", asurl: true, large: true, file: "https://root.cern/files/Event100000.root", item: "T", opt: "event.fTracks.fBits>>bits(32);num:5000", title: "Special 1-D histogram kind with bits values" },
60  { name: "tbits", asurl: true, file: "https://root.cern/files/event/event_0.root", item: "EventTree;2", opt: "event.fTriggerBits", title: "Special handling for TBits object" },
61  { name: "tbits2", asurl: true, file: "https://root.cern/files/Event100000.root", item: "T", opt: "event.fTriggerBits", title: "TBits object splitted on the subbranches" },
62  { name: "tbits3", asurl: true, large: true, file: "https://root.cern/files/Event100000.root", item: "T", opt: "event.fTracks[].fTriggerBits;num:200", title: "TBits from tracks array, read complete track object (slower)" },
63  { name: "tbits4", asurl: true, large: true, file: "https://root.cern/files/Event100000.root", item: "T", opt: "event.fTracks.fTriggerBits;num:200", title: "TBits from tracks array, read only TBits sub-branches (faster)" },
64  { name: "vect_pair", asurl: true, file: "test_cmssw_10000.root", item:"Events", opt:"recoBeamHaloSummary_BeamHaloSummary__RECO.obj.problematicStrips.cellTowerIds.;dump;first:7900;num:100", title: "CMS-SW events, vector of pair<> objects, store pair version even for empty vector" },
65  { name: "SLT_kStream", asurl: true, file: "https://root.cern/files/atlas30new.root", item: "CollectionTree/Rec::TrackParticleContainer_tlp1_MooreTrackParticles/m_hepSymMatrices/m_matrix_val", opt: "dump", title: "Branch with vector<float> (kStreamer) inside of STL container" },
66  { name: "branch_base", asurl: true, file: "https://root.cern/files/cms2.root", item: "Events", opt: "GenEventInfoProduct_generator__HLT.>>dump;num:100", title: "Object with empty base class" },
67  { name: "branch_mvect", asurl: true, file: "https://root.cern/files/cms2.root", item: "Events", opt:"L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT.obj.>>dump", title: "Branch with object which has vector of vector of vector of int, requires special handling" },
68  { name: "files", asurl: true, file: "https://root.cern/files/alice_ESDs.root", item: "esdTree;1/ESDfriend./fTracks/fTPCindex", opt: "dump", title: "Data branch stored in different file (in same dir), counter data in main file" },
69  { name: "float16", asurl: true, file: "https://root.cern/files/Event100000.root", item: "T/event/fTracks/fMass2", opt: "dump", title: "Float16_t type as TClonesArray branch" },
70  { name: "markus", url: "?file=https://root.cern/files/markus.root&item=_Event/Refs&opt=dump&load=$$$gaudi.js", title: "custom streamer for pool::Token class from some branches" },
71  { name: "cmssw1", asurl: "browser", file: "test_cmssw_10000.root", item: "MetaData", opt:"testio", title: "CMS-SW metadata, complex std::map classes" },
72  { name: "reco103", asurl: "browser", file: "https://root.cern/files/reco_103.root", item: "Events", opt:"testio", title: "Older ROOT file with many branches, std::map classes", notest:true },
73  { name: "cmssw_io", asurl: "browser", file: "test_cmssw_10000.root", item: "Events", opt:"testio", title: "Test I/O with CMS-SW events data", notest:true },
74  { name: "lhcb2_io", asurl: true, file: "https://root.cern/files/lhcb2.root", item: "E", opt:"testio", title: "Test I/O with lhcb2.root file", notest:true },
75  { name: "atlas_io", asurl: true, file: "https://root.cern/files/atlas30new.root", item: "CollectionTree", opt:"testio", title: "Test I/O with atlas30new.root file", notest:true },
76  { name: "alice_esd", asurl: true, file: "https://root.cern/files/alice_ESDs.root", item: "esdTree", opt:"testio", title: "Test I/O with alice_ESDs.root file, include friedns files", notest:true }
77  ],
78  TF1 : [
79  { name: "ip0", file: "ip0.root", item: "c;1" },
80  { name: "root5", file: "danilo5.root", item: "canvas;1" },
81  { name: "gaus", file: "macro8.root", item: "c1;1" },
82  { name: "landau", file: "cdist.root", item: "cdist;1", title: "TF1 as TFormula with C function inside" }
83  ],
84  TF2 : [
85  { name: "xygaus", file: "https://root.cern/files/StressIOPluginsTestFiles/stress_5.root", item: "f2form", title: "TF2 with xygaus" }
86  ],
87  TCanvas : [
88  { name: "jpsi", file:"JPsi_evolution.root", item: "CutTrees/cut1/C_cut1 < 2.85714;1" },
89  { name: "noframe", file: "can4.root", item: "c1;1" },
90  { name: "higgs", file: "higgs_c.root", item: "c;1" },
91  { name: "amore", file: "VertexXY.root", item: "Amore Canvas;1" },
92  { name: "dual", file: "myDualCanvas.root", item: "DualCanvas;1", title: "Canvas with two subpads and double-log scale" },
93  { name: "rotate", file: "legends.root", item: "legends;1", opt: "rotate", title: "Rotation of drawings in the TFrame, for special purposes" },
94  { name: "hsum", file: "hsum.root", item: "c1;1", title: "Canvas with several histos and selected user range (from hsum.C macro)" },
95  { name: "sub-sub", file: "fitslicesy.root", item: "c1;1", title: "Canvas with sub-sub pads" },
96  { name: "wtmass", file: "WtMass.root", item: "WtMass;1", title: "Histogram with absolute axis font size" },
97  { name: "multi", file: "general.root", item: "canvas_0;1", title: "many superimposed histograms and graphs" },
98  { name: "greyscale", json: "greyscale.json.gz", title: "produced from tutorials/hist/greyscale.C macro" },
99  { name: "atlas", file: "AtlasExample.root", item: "c1", style: "style", title: "ATLAS style example, https://root-forum.cern.ch/t/27751" }
100  ],
101  TGeo : [
102  { name: "atlas_cryo", asurl: true, file: "https://root.cern/files/atlas.root", item: "atlas;1", opt: "macro:https://root.cern/files/atlas_cryo.C" },
103  { name: "atlas_simple", asurl: true, json: "geom/simple_atlas.json.gz", opt: "ac" },
104  { name: "star", asurl: true, json: "geom/star_svtt.json.gz" },
105  { name: "hades", asurl: true, json: "geom/hades.json.gz", opt: "vislvl10", title: "HADES geometry" },
106  { name: "transform", asurl: true, json: "geom/hades.json.gz", opt: "vislvl10;trr100;trz200;ctrl", title: "Transformed HADES geometry" },
107  { name: "babar", asurl: true, json: "geom/babar_emca.json.gz", opt: "vislvl10" },
108  { name: "alice_simple", asurl: true, json: "geom/simple_alice.json.gz", title: "simple alice geomtery" },
109  { name: "Dipole", url: "?nobrowser&file=https://root.cern/files/alice2.root&item=Geometry;1/ALIC/Dipole_1", title: "Part of volumes from geo manager" },
110  { name: "count", file: "https://root.cern/files/alice2.root", item: "Geometry;1", opt: "count", title: "Count volume in large geomtery" },
111  { name: "tank", asurl: true, file: "https://root.cern/files/tank.root", item: "geom;1", opt: "z;rotate", title: "Just for fun" },
112  { name: "lego", asurl: true, file: "https://root.cern/files/lego.root", item: "geom;1", opt: "z;rotate", title: "Just for fun" },
113  { name: "cheon", asurl: true, file: "https://root.cern/files/cheongwadae.root", item: "geom;1", opt: "", title: "One more building" },
114  { name: "proj2", url: "?nobrowser&layout=h21_12&files=[https://root.cern/files/alice_ESDgeometry.root,$$$geom/eve_tracks.root]&items=[[0]/Gentle,[0]/Gentle,[[0]/Gentle,[1]/tracks]]&opts=[projz,projx,main;black]", title: "Place main drawing not on the first place" },
115  { name: "canv", file: "geom/south_gate.root", item: "c1;1", opt: "", title: "geometry storead in the TCanvas" },
116  ],
117  TGraph : [
118  { name: "twopad", file:"graph_twopad.root", item: "c1;1", title: "two overlays pads with different axes" },
119  { name: "macro2", file:"macro2.root", item: "c1;1" },
120  { name: "split", file: "gr2.root", item: "c1equi;1", title: "split line in legend, ignored" },
121  { name: "approx", file: "tutorials_graphs.root", item: "approx;1", title: "Output of tutorials/graphs/approx.C" }
122  ],
123  TLatex : [
124  { name: "symbols", file: "latex.root", layout: "grid2x2", latex: "symbols", items: ['lva','ex1','ex2','ex3'], title: "Replace only known TLatex Disable TLatex symbols" },
125  { name: "plain", file: "latex.root", layout: "grid2x2", latex: "off", items: ['lva','ex1','ex2','ex3'], title: "Disable TLatex processor completely" }
126  ],
127  Misc : [
128  { name: "io", url: "?file=$$$iotest.root&layout=grid4x3&items=[ex1,ex2,ex3,ex4,ex5,ex6,ex7,ex8,ex9,ex10,clones,map]&opts=[inspect,inspect,inspect,inspect,inspect,inspect,inspect,inspect,inspect,inspect,inspect,inspect]", title: "Different I/O test classes" },
129  { name: "io56", file: "fitLinear56.root", item: "fitLinear6", title: "file with two version from ROOT 5/6 of same object" },
130  { name: "folder", url: "?file=$$$folders.root&expand=RsnMgr;1/input/0/2/10", title: "TFolder class" },
131  { name: "task", url: "?file=$$$tasks.root&expand=run;1", title: "TTask class" },
132  { name: "alitask", url: "?file=$$$alitasks.root&expand=RsnMgr;1/input/1/3/9", title: "AliRoot TTask classes" },
133  { name: "aliQA", asurl: "browser", file: "QAresults_barrel.root", item: "TPC_PerformanceQA/TPCQA;1/AliPerformanceTPC", opt: "inspect", title: "Objects from Alice QA file" },
134  { name: "roofit", file: "https://root.cern/files/stressRooFit_v534_ref.root", layout: "grid2x2", items: ['rf101_plot2','rf201_plot1','rf310_plot2','rf708_plot6'], title: "Several RooFit plots (still some classes not work)" },
135  { name: "ioperf", asurl: true, file: "https://root.cern/files/aod_orig.root", item: "ioperf;1/fGraphIO", itemfield: "fGraphIO", opt: "", title: "Reading TTreePerfStats object and draw graph, fails in normal ROOT I/O", notest: true },
136  { name: "taxis", file: "tutorials_graphs.root", item: "timeonaxis3", title: "Custom time format for TGaxis, output of tutorials/graphs/timeonaxis3.C" },
137  { name: "gtime", file: "tutorials_graphs.root", item: "gtime", opt: "repeat", title: "Example of TGraphTime, output of tutorials/graphs/gtime.C", testopt: "first" },
138  { name: "diamond", file: "tutorials_graphics.root", item: 'diamond', title: "TDiamond, tutorials/graphics/diamond.C" },
139  { name: "crown", file: "tutorials_graphics.root", item: 'crown', title: "TCrown, tutorials/graphics/crown.C" }
140  ]
141 };