]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/READMEmchview.txt
new functionality and new class added
[u/mrichter/AliRoot.git] / MUON / READMEmchview.txt
index a5b0a2105991149af8f70538776ff1353f99f201..922829052b092de5532a338c8c06e2c18eb31946 100644 (file)
@@ -61,8 +61,11 @@ From top to bottom, you'll see group of frames used to :
 
 - select from a list of recently used source
 
-- select a raw data source (either by typing in its full pathname, or opening a file dialog). The second text field in this group is to specify the
-location of the OCDB to be used (if any). If that field is not empty (and the corresponding entry is correct, of course), the raw data will be calibrated.
+- select a raw data source (either by typing in its full pathname, or opening a file dialog). 
+The second line in this group is to specify that you want to calibrate the data. Check one of the calibrate buttons, and specify the
+location of the OCDB to be used. If that field is not empty (and the corresponding entry is correct, of course), 
+the raw data will be calibrated.
+The last line in that group is a single check button, to instruct the program to produce histograms of the data (see \ref mchview_histogramming)
 
 - select an OCDB data source (pedestals, gains, capacitances)
 
@@ -70,6 +73,14 @@ In all the frames, once you've selected or entered the needed information, you'l
 and a new data source line will appear in the bottom of that tab (and in also in the first tab, that data source will now 
 be selectable for plotting). Each data source line indicates the short name of the data source, the full path, and a list of buttons to run, stop, rewind and
 remove. Run/Stop/Rewind is only selectable for data sources where the notion of event means something (e.g. for pedestals it won't).
+The short name of the data source is as follow :
+
+- RAW# : raw data for run #
+- RAW(#) : raw data for simulated run (where run number is always 0, so # here is the number of such data sources opened at the same time)
+- HRAW# (or HRAW(#)) : as above, but with histogramming turned on
+- (H)CALZ# (or (H)CALZ(#)): as above, but for data where pedestal subtraction has been done (and no gain correction whatsoever)
+- (H)CALG# : for data where pedestal subtraction and gain correction has been applied (but no channel-per-channel capacitance correction done)
+- (H)CALC# : for data where pedestal subtraction and full gain correction (including channel-dependent capacitance correction) applied
 
 Note that all the file paths can be local ones or alien ones, if you have a correctly installed alien, and you use a short wrapped to call the \em mchview program.
 For instance :
@@ -98,11 +109,42 @@ export alien_API_USER=youralienuserid # only needed if different from your local
 mchview $*
 </pre>
 
----------
+\section mchview_histogramming Histogramming
 
-IMPORTANT WARNINGS
+Starting at version 0.9 of the \em mchview program, you can now produce histograms of the raw adc values, while running over the
+data. For this you have to check the "histogram" button when creating the data source. Please note that turning on the histogram will slow down
+a bit the data reading. 
+Histograms produced by the program are as compact as possible in order to fit in memory (so they are *not* plain TH1 objects).
+Plain TH1 objects are produced later on (on request only), and should be deleted as soon as possible (you have to realize that
+1 million TH1 of 4096 channels has no chance to fit in memory...)
+Access to the histograms can be done through the GUI, using the right click on any painter.
+For extra flexibily, you can also use the root prompt (of the \em mchview program itself).
+First get the data object, and then ask the data object to create the histogram(s) you want. Remember to delete those histograms as soon
+as you no longer need them :
+
+<pre>
+AliMUONPainterRegistry* reg = AliMUONPainterRegistry::Instance();
+reg->Print();
+AliMUONVTrackerData* data = reg->FindDataSource("HRAW(1)");
+TH1* h = data->CreateChannelHisto(707,1025,63);
+h->Draw();
+delete h;
+h = data->CreateManuHisto(707,1025);
+etc...
+</pre>
 
-The remove button is currently not working...
+You can get histograms for all levels (except PCB) : channel, manu, bus patch, detection element, chamber. See AliMUONVTrackerData doc. for the methods.
+
+\section mchview_savingprinting Saving and printing
+
+From the File menu of the \em mchview application, you can use SaveAs and PrintAs popups to respectively save the current data sources (meaning you can quit
+the program and start again with the same filled data sources, without having to rerun on the source) and print the current display.
+Printing needs a little bit of polishing (e.g. getting a nice and descriptive title would help a lot), but it's better than nothing.
+Note that the \em mchview application now has a \em --use option to reload a previously saved .root file (same effect as using the File/Open menu).
+
+\section mchview_warnings Important warnings. Please read.
+
+IMPORTANT WARNINGS
 
 In principle, you could have several raw data sources running at the same time. This is NOT currently working. You can have several data sources opened
  at the same time, but not running at the same time. (this has to do with AliRawReader not being thread-safe for the moment).