Locked History Actions

Diff for "ANAROOT/Manual/StartupGuide"

Differences between revisions 8 and 9
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from ANAROOT/Documents/StartupGuide

Startup guide

Setup for ANAROOT

$ anarootlogin username
...
 New user! Do you create new directory for this user? [y/n]: y
...

Edit AnaFile

Using AnaFile, you can easily create 1D or 2D histograms and simple gate by ID (not by name).

$ emacs ana/user.ana

Grammer and Examples are shown in here.

Start ROOT

$ acd (if you are not in base directory)
$ root -l

Analysis

root[0] book(new TArtAnaLoopSAMURAI, "ana/user.ana") (Ask collaborator which TArtAnaLoop derived class to use.)
root[1] push("ridf/data0001.ridf") // offline
root[1] push() // online
root[2] start()
root[3] ls()
root[4] hn()
...

For further commands, see commands reference.

Use your own TArtAnaLoop class

$ cp src/sources/AnaLoop/src/TArtAnaLoopExample.cc macros/analoop/TArtAnaLoopMine.C
$ cp src/sources/AnaLoop/src/TArtAnaLoopExample.hh macros/analoop/TArtAnaLoopMine.hh
$ emacs TArtAnaLoopMine.C TArtAnaLoopMine.hh
$ root -l
root[0] .L macros/analoop/TArtAnaLoopMine.C+
root[1] book(new TArtAnaLoopMine, "ana/mine.ana")
root[2] ...

Not using AnaFile

See macros/analoop/TArtAnaLoopUser.C, TArtAnaLoopUser.hh, and macros/example/example_root.C.