Locked History Actions

Diff for "ANAROOT/Manual/StartupGuide"

Differences between revisions 13 and 14
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:
root[0] book(new TAlEncExample, "ana/user.ana") (Ask collaborator which TArtAnaLoop derived class to use.) root[0] book(new TAlEncExample, "ana/user.ana") // for user familiar with ANAPAW
root[0] book(new TAlSAMURAIExample) // for user familiar with ROOT
Line 40: Line 41:
Ask collaborator which TArtAnaLoop derived class to use in book function.
Line 42: Line 44:
= Use your own TArtAnaLoop class = = Use your own TArtAnaLoop class (for user familiar with ROOT) =
Line 49: Line 51:
root[1] book(new TAlMine, "ana/mine.ana") root[1] book(new TAlMine)
Line 55: Line 57:
If you want to use TAlEncExample in manualy, see macros/example/alenc_root.C. If you want to use TAlEncExample manualy, see macros/example/alenc_root.C.

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 TAlEncExample, "ana/user.ana") // for user familiar with ANAPAW
root[0] book(new TAlSAMURAIExample) // for user familiar with ROOT
root[1] push("ridf/data0001.ridf") // offline
root[1] push() // online
root[2] start()
root[3] ls()
root[4] hn()
...

Ask collaborator which TArtAnaLoop derived class to use in book function. For further commands, see commands reference.

Use your own TArtAnaLoop class (for user familiar with ROOT)

$ cp src/sources/AnaLoop/src/TAlDALIExample.cc macros/analoop/TAlMine.C
$ cp src/sources/AnaLoop/include/TAlDALIExample.hh macros/analoop/TAlMine.hh
$ emacs TAlMine.C TAlMine.hh
$ root -l
root[0] .L macros/analoop/TAlMine.C+
root[1] book(new TAlMine)
root[2] ...

Not using AnaFile

See macros/analoop/TAlUser.C, TAlUser.hh, and macros/example/example_root.C. If you want to use TAlEncExample manualy, see macros/example/alenc_root.C.