CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.

Getting Started with PI

This is not inteded to be a SCRAM, gmake, C++, Root tutorial. For those, please refer to the SPI documentation or directly to that of the various products.

The very first steps

If you are at CERN typing the following few lines should compile and link all PI C++ examples.
tcsh
source /afs/cern.ch/sw/lcg/app/spi/tools/latest/setup/lcgspi.csh
scram project PI PI_1_3_0
cd PI_1_3_0/src
mkdir Workspace
cd Workspace
cp /afs/cern.ch/sw/lcg/app/releases/PI/PI_1_3_0/src/AnalysisServices/AIDA_Proxy/examples/* .
scram b bin
eval `scram runtime -csh`

at this point you may execute exa4 that will produce a file named exa4.root ready to be inspected using root.

For instance, start root and type

TFile f("exa4.root")
f.Get("ProjXY_H3D").Draw()
to display the 2D histogram obtained as XY projection of the 3D.


Contact: Vincenzo Innocente