Download User Guide to Common Analysis Format

Transcript
2. Getting Started
2
3
Getting Started
In the following we assume that all examples are executed in a normal D0 work environment. However,
except for SAM related things, everything should also work in a stand-alone environment as long as a
ROOT installation is available. See the appendix for how to set up the software on a non-D0 system.
2.1
%
%
%
%
%
%
Setting up the Release [BEGINNER]
setup D0RunII t05.02.00
[1]
newrel -t t05.02.00 work
[2]
cd work
[3]
setenv LINK_SHARED yes
[4]
d0setwa
[5]
set path = ( ‘pwd‘/shbin/${SRT_SUBDIR} $path ) [6]
or, if you are using bash instead of tcsh:
% export LINK_SHARED=yes
[4]
% export PATH=‘pwd‘/shbin/${SRT_SUBDIR}:${PATH} [6]
The steps should be familiar if you are used to the D0 software environment.
1. Set up the correct release version.
2. Create a new work area.
3. Enter the work area.
4. Enable shared libraries and binaries.
5. Set the current working area.
6. Add the shared binaries to your path.
2.2
One-time Preparations [BEGINNER]
In your work area you should execute the following command once:
% autoroot.py tmb_tree cafe
This will create a .rootmap file in your current directory. This is only needed when you run root interactively,
to make your life easier. If root finds this file it will know which libraries to load for which classes, and you
won’t get any funny warnings when you open a CAF file.