]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/READMECDB
Compilation with Root v5-15-3
[u/mrichter/AliRoot.git] / MUON / READMECDB
CommitLineData
e661d480 1The Offline Condition DataBase is described extensively on ALICE Offline pages.
2
3Here you'll find only information relevant to the MUONCDB.C macro, which defines
4 a set of functions to read/write MUON information to this CDB. Those functions are
5 not meant to be used as black boxes. Please have a closer look before using
6 (especially the ones writing to the CDB...)
7
8-------
9Calibration data objects
10-------
11
12We've designed generic data containers to store calibration information,
13tailored to the way we usually access MUON tracker data, that is, indexed by the pair (detElemId,manuId).
14This container is called AliMUONV2DStore. You can attach a TObject to every and each pair (detElemId,manuId).
15 For the moment, that TObject is generally of AliMUONVCalibParam type,
16 which handles a given number of channels (64 typically) as a group.
17 As the class names suggest, both classes are only interfaces. Concrete ones are AliMUON2DMap (used instead of a vector
18as detElemId are not contiguous) for the V2DStore, CalibParam1I (VCalibParam storing one integer per channel), and
19 CalibParam2F (VCalibParam storing 2 floats per channel).
20
21One exception are the HV values from DCS, which are stored "as they come" from the shuttle-dcs interface, as a TMap, where
22 the key is the aliasname (TString), and the value a TObjArray of AliDCSValue.
23
24For trigger, the same virtual container idea applies, except we're using 1D container (AliMUONV1DStore).
25
26--------
27CDB location
28--------
29
30One very important notion is that of the DefaultStorage (which you set with
31 AliCDBManager::Instance()->SetDefaultStorage(path)), which tells the CDB library where
32 the CDB is sitting (either locally on disk, or on the grid).
33
34For local tests, path will be most likely = local://$ALICE_ROOT/MUON (i.e. there is, in CVS a slim version of the calibration objects needed
35 for running the MUON code), or local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB for Shuttle testing.
36
37-------
38Writing to CDB
39-------
40
41 In write mode, this macro was/is used to populate the CDB with fake calibration objects for testing purposes.
42Real calibration data will normally be handled by the Shuttle (see READMEshuttle).
43
44writeGains() and writePedestals() functions may be used to populate MUON tracker information,
45 and generateTrigger() for trigger parts.
46
47------
48Reading the CDB
49------
50
51The actual reading is encapsulated into AliMUONCalibrationData class.
52e.g. to read pedestals for run 4567, one would do :
53
54AliCDBManager::Instance()->SetDefaultStorage(cdbPath);
55AliMUONCalibrationData cd(4567);
56AliMUONV2DStore* ped = cd.Pedestals();
57
58If you want to plot calibration data (not terribly usefull as it's a really global view), use the plot() function
59 in MUONCDB.C, e.g. :
60
61plot(*ped,"pedestal")
62
63which will create 2 histograms : pedestal_0 (mean) and pedestal_1 (sigma).
64
65You might also be interested in the diff() method which generates an AliMUONV2DStore
66 containing the difference (either absolute or relative) of two AliMUONV2DStore.
67
68