Updated macros for PHOS alignment calculation
[u/mrichter/AliRoot.git] / MUON / READMEbase.txt
CommitLineData
91509ec6 1// $Id$
2
631a1685 3/*! \page README_base MUON Data definition and access
91509ec6 4
5Both the simulation and reconstruction use containers (called stores in the MUON jargon)
6to hold the data we're dealing with: hits, (s)digits, trigger, clusters, tracks and
7trigger tracks. All those stores share some commonalities, in particular with respect
8to how they are read/written from/to TTree. @ref AliMUONVStore "More..."
9
10
11\section base_s1 How to dump the content of Root data files
12
13To check the content of Root data files, the AliMUON*DataInterface classes
14provides the functions to produce an ASCII output on the screen
15which can be redirected on the file:
16
17for MC information, use AliMUONMCDataInterface :
18
19<pre>
20> aliroot (or root with just the loading of MUON libs, see loadlibs.C)
162637e4 21root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
16e594c1 22root [1] AliMUONMCDataInterface mcdi("galice.root");
23root [2] mcdi.DumpKine(5); > dump.kine
24root [3] mcdi.DumpHits(5); > dump.hits
25root [4] mcdi.DumpTrackRefs(5); > dump.trackrefs
91509ec6 26</pre>
27
28for all other information, use AliMUONDataInterface :
29
30<pre>
31> aliroot
162637e4 32root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
16e594c1 33root [1] AliMUONDataInterface di("galice.root");
34root [2] di.DumpDigits(5); > dump.digits
35root [3] di.DumpSDigits(5); > dump.sdigits
36root [4] di.DumpRecPoints(5); > dump.recpoints
37root [5] di.DumpTrigger(5); > dump.rectrigger
91509ec6 38</pre>
39
40Remind that during simulation and reconstruction two
41differents galice.root are generated: one for the generation
42(simulation) and other during the reconstruction.
43
44If you open the wrong galice.root file you could get:
16e594c1 45<pre>
91509ec6 46root [0] AliMUONMCDataInterface mcdi("galice.root");
47root [1] mcdi.DumpKine(5);
48W-AliRunLoader::GetEvent: Stack not found in header
49E-TFile::TFile: file ./Kinematics.root does not exist
16e594c1 50</pre>
91509ec6 51
52\section basee_s2 Macro MUONCheckDI.C
53
54MUONCheckDI.C performs a consistency check on the methods of the
55AliMUONMCDataInterface and AliMUONDataInterface classes. There are several
56helper methods in these classes which make it easier to fetch data, which
57means there are at least two ways of fetching the data within the same class
58interface. The macro checks to see that the results given by these different
59methods are identical, as they should be.
60
61The macro also inherently exercises the AliMUONMCDataInterface and
62AliMUONDataInterface classes and should be run after any modifications to
63these classes to see if things still work. Putting it another way:
64MUONCheckDI.C is a testing facility for developers of these two classes.
65
66This chapter is defined in the READMEbase.txt file (although it describes
67also the code in the evaluation library.)
68
69*/