Monday 26 March 2018 photo 5/15
|
Root ttree tutorial: >> http://lua.cloudz.pw/download?file=root+ttree+tutorial << (Download)
Root ttree tutorial: >> http://lua.cloudz.pw/read?file=root+ttree+tutorial << (Read Online)
Introduction. WHAT IS ROOT ? • ROOT is an object oriented framework. • It has a C/C++ interpreter (CINT) and C/C++ compiler (ACLIC). • ROOT is used extensively in High Energy Physics for “data analysis". - Reading and writing data files. - Calculations to produce plots, numbers and fits. WHY ROOT ? • It can handle large
ROOT. • What is ROOT ? – ROOT is an object-oriented C++ analysis package. – User-compiled code can be called to produce 1-d, 2-d, and 3-d graphics and histograms • ROOT uses a language called CINT (C/C++ Interpreter) which contains several extensions to C++. – CINT allows the use of a dot “." while an arrow
The goal of this tutorial session is to learn how to read a tree from a ROOT file, extract some data from it, display a histogram and then fit it. Information about the ROOT classes can be found on the ROOT reference guide, and there is also a web based documentation and the Root primer and other manuals available to
View in nbviewer Open in SWAN Create a plot of the data in cernstaff.root To create cernstaff.root , execute tutorial $ROOTSYS/tutorials/tree/cernbuild.C. file, tcl.C · View in nbviewer Open in SWAN How to write a TClonesArray to a TTree. file, tree.C · View in nbviewer Open in SWAN Display the Tree data structures.
11 Jan 2015
31 Jan 2015
15 Jun 2016 TTree-MakePlots - Example tutorial of how to make a TTree in ROOT and then read that TTree to make histograms quickly using the Project() method.
28 Jul 2011 Run some of the tutorials that come with ROOT. $ROOTSYS/tutorials ROOT Provides: 0 Several C++ Libraries. – To store data in histograms. – To store data in n-tuples, called “ROOT Trees". – To visualize histograms and n-tuples. – To perform fits . Eg. TTree::Draw() creates a histogram and a canvas
{ gROOT->Reset(); gStyle->SetPalette(1); // Set the "COLZ" palette to a nice one TFile myFile("tutorial.root"); // Open the file TTree* myTree = (TTree*) myFile.Get("Muon"); // Get the Muon tree from the file // Draw examples: TCanvas c1; // Open a new canvas myTree->Draw("muon_pt");
17 Jan 2015
Annons