TFile f("myrootfile.root");
   f.ls();

   h1.Draw();

      TFile *f1=new TFile("first.root");
      TFile *f2=new TFile("second.root");

      If you want to perform actions on the first file you opened, for those functions which do not directly use the file's reference name (in ROOT, "f1"), you will need to change ROOT's focus to that file:

      f1.cd();

   

running root with options:
-b: run in batch mode without graphics
-n: do not execute logon an logoff macros as specified in .rootrc
-q: exit after processing command line scripts files
-l: do not show the image logo (splash screen)

can build a multi-pad canvas

.? this command will list all the CINT commands

.l ls an example of a SHELL command

coding convention:
classese beging with T: TLine, TTree
Non-class types end with _t Int_t
Data memebers begin with f FTree
Member functions begin with capital Loop()
Constants begin with K: kInitialSize, kRed
Global variables begin with fs fsTokenClient
Enumeration types beging with a lowe case nbytes
Getters and Setters begin with Get and Set SetLast(0,GetFirst()

Last updated on 10/10/05, Amir rahimi@mps.ohio-state.edu