Difference between revisions of "TF ErrAna InClassLab"

From New IAC Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
=Start ROOT and Draw Histogram=
 
=Start ROOT and Draw Histogram=
  
 +
==Step 1==
 
In this first lab your goal will be to start root and draw a histogram.
 
In this first lab your goal will be to start root and draw a histogram.
  
Line 12: Line 13:
 
  export ROOTSYS=~/src/ROOT/root
 
  export ROOTSYS=~/src/ROOT/root
  
 +
==Step 2==
  
 +
Define a variable to contain the desired histogram
 +
 +
TH
  
 
[http://wiki.iac.isu.edu/index.php/Forest_Error_Analysis_for_the_Physical_Sciences] [[Forest_Error_Analysis_for_the_Physical_Sciences]]
 
[http://wiki.iac.isu.edu/index.php/Forest_Error_Analysis_for_the_Physical_Sciences] [[Forest_Error_Analysis_for_the_Physical_Sciences]]

Revision as of 22:58, 14 January 2010

Start ROOT and Draw Histogram

Step 1

In this first lab your goal will be to start root and draw a histogram.

If you are on a Windows machine start the ROOT interpreter by double clicking on the Desctop icon which looks like a tree and says ROOT underneath it If you are on a Unix machine set the environmental variable ROOTSYS to point to the base subdirectory containing the ROOT files and start root with the command $ROOTSYS/bin/root. You can set the ROOTSYS environmental variable under the bash chell with the command

export ROOTSYS=path

where path identifies the location of the root base subdirectory. My ROOT base subdirectory is located at ~/src/ROOT/root so I would execture the following shell command

export ROOTSYS=~/src/ROOT/root

Step 2

Define a variable to contain the desired histogram

TH

[1] Forest_Error_Analysis_for_the_Physical_Sciences