Basic ROOT Tutorial Collaboration Meeting Jun2019: Difference between revisions

From Mu2eWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= Tutorial Session Goal ==
= Tutorial Session Goal =
In this Tutorial you will learn the basics of ROOT. The final aim being to learn how to analyze TTree data produced by the Mu2e Offline software.
In this Tutorial you will learn the basics of ROOT. The final aim being to learn how to analyze TTree data produced by the Mu2e Offline software.
== Session Prerequisites and  Advance Preparation ==
== Session Prerequisites and  Advance Preparation ==

Revision as of 20:41, 25 May 2019

Tutorial Session Goal

In this Tutorial you will learn the basics of ROOT. The final aim being to learn how to analyze TTree data produced by the Mu2e Offline software.

Session Prerequisites and Advance Preparation

As this is a basic introduction, few prerequisites are necessary, however, it would be beneficial if attendees:

  • Take a look at [1].
  • Download and install from this page to your machine.

ROOT: An introduction

ROOT is a modular scientific software toolkit used extensive in High Energy and Particle Physics. ROOT provides a platform for data processing, statistical analyses, visualisation and data storage.

ROOT is an object-orientated framework predominately written in c++.

For more information: https://root.cern.ch/

What is a TTree?

TTrees are used through out particle physics as data containers. They can be form both input and output files in a ROOT macro.

Exercises

The majority of the session time should be spent performing exercises, which you link or embed in the session page.

  • NOTE: A TTree is provided please down load it here --------
  • Exercise 1: Open the and look at content with a TBrowser
  • Exercise 2: Use TTree::Scan from command line
  • Exercise 3: TBrowser to project histograms
  • Exercise 4: Write a macro to project histograms
  • Exercise 5: Use compiled code to project histograms

You are Encourage to prefer macros or compiled code over projecting the using ROOT for analysis.

  • Exercise 6a: Saving the histograms to a file (.root)
  • Exercise 6b: Saving the histogram as .png, pdf ....
  • Exercise 7: Chaining multiple input files together
  • Extension Tasks - for those already familiar with the ROOT Basics please familiarise from above but once this is done you can skip to these tasks:

.....



Reference Materials

  • Use this place to add inks to reference materials.