This directory contains some very simple macros, just to show how to use the PamLevel2 class. The macros need as input the name of a Level2 .root file produced by DarthVader (example1 and example2) or a list of files (see example3). example1 - Example to integrate all detector info and solve the y-view tracks ambiguity example2 - Example to get pamela tracks and integrate the trajectory in the apparatus example3 - Example to loop over events, reading more than one file In order to run the scripts: 1) Copy the magnetic field maps into the magnetic-field/ directory. You can find them in the CVS repository, inside DarthVader/param/trk-param/field_param-0/ 2) Add the path of the directory containing the DarthVader libraries and the PamLevel2 library to the shell variable LD_LIBRARY_PATH 3) Open a root session and execute the following commands: [] .x load.C [] .L example1.C [] example1("level2-data-path/level2-file.root") Tracker : set branch address TrkLevel2 Calorimeter : set branch address CaloLevel2 ToF : set branch address ToFLevel2 Trigger : set branch address TrigLevel2 S4 : set branch address S4Level2 NeutronD : set branch address NDLevel2 Anticounter : set branch address AcLevel2 Start loop over events Done 4) Macros example1 and example2 produce some histograms. Example3 just loop over events and tracks and counts time. It is usefull to check processing time.