Basic ROOT Tutorial Collaboration Meeting Jun2019

From Mu2eWiki
Revision as of 14:58, 25 May 2019 by Sophie (talk | contribs)
Jump to navigation Jump to search

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:

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:

.....


====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

  • Use this place to add inks to reference materials.