User Tools

Site Tools


root:rootlogonscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
root:rootlogonscript [2008/12/01 16:33] – created decianmroot:rootlogonscript [2008/12/01 16:41] (current) decianm
Line 1: Line 1:
 ====== Logon Script for ROOT ====== ====== Logon Script for ROOT ======
-When you start ROOT from commandline, it will execute the script ''rootlogon.C'' in the same directory. This may be usefulwhen you want to load your own classes into ROOT or want to set some styles.+When you start ROOT from commandline, it will execute the script ''rootlogon.C'' in the same directory. This may be useful when you want to [[root::addclasstoroot|load your own classes into ROOT]] or want to set some styles.
  
 ===== Example ===== ===== Example =====
-Create a file named **rootlogon.C** (note the capital C), open it an write+Create a file named **rootlogon.C** (note the capital C), open it and write
 <code> <code>
 { {
 gSystem->Load("libAnaClasses.so"); gSystem->Load("libAnaClasses.so");
 +gROOT->SetStyle("Plain");
 } }
 </code> </code>
-which will automatically load your ana class into ROOT.+which will automatically load your library **libAnaClasses.so** into ROOT and set the color of your canvas to white.
root/rootlogonscript.txt · Last modified: 2008/12/01 16:41 by decianm