Difference between revisions of "Basic ROOT Tutorial Collaboration Meeting Jun2019"

From Mu2eWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
* Download and install [https://root.cern.ch/downloading-root root] (v6.14 or later) on your machine
 
* Download and install [https://root.cern.ch/downloading-root root] (v6.14 or later) on your machine
 
* Run the [https://root.cern.ch/doc/master/combinedFit_8C.html root combined fit tutorial]
 
* Run the [https://root.cern.ch/doc/master/combinedFit_8C.html root combined fit tutorial]
 +
 +
== 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 ==
 
== Exercises ==
Line 30: Line 42:
  
  
 
====Notes for me:
 
  
  
* Each exercise should have a title; ie ''Create a histogram of the reconstructed Ce momentum''
 
* Exercises may be chained (ie the output of the first is used as input to the next), but in that case make sure the output is also part of the downloads, so people who failed at step 1 can continue with the subsequent steps.  Design this so that a failed step 1 does not overwrite the downloaded file that is the input to step 2.
 
* Some steps may take considerable processing time.  In that case, have your attendees perform a short version (ie process 10 events), and provide the full output (ie histograms from 10^5 events) as part of the session download for subsequent steps.
 
* Each exercise should take between 5 and 15 minutes to complete.  Count on your attendees taking twice as much time as would an experienced person.
 
* Start each exercise by bringing the exercise up on the main screen and going through its intro.
 
* Perform each step of the exercise on the screen, describing any decisions or issues involved as you do it.  Check with your audience to make sure most (preferably all) have finished each step before going on to the next.  If someone seems stuck, assign a session helper to help them individually and move on.
 
* It's OK to provide more exercises than most people will complete during the tutorial; they can be completed as homework.
 
  
 
== Reference Materials ==
 
== Reference Materials ==
 
* Use this place to add inks to reference materials.
 
* Use this place to add inks to reference materials.

Revision as of 20:38, 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:

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.