]>
Commit | Line | Data |
---|---|---|
1c762251 | 1 | /** |
2 | * @file | |
3 | * | |
4 | * Scripts to draw energy loss fits from correction object file | |
5 | * | |
bd6f5206 | 6 | * @ingroup pwglf_forward_scripts_corr |
1c762251 | 7 | */ |
1c762251 | 8 | /** |
9 | * Draw energy loss fits to a multi-page PDF. | |
10 | * | |
11 | * @par Input: | |
12 | * The input file is expected to contain a AliFMDCorrELossFit object | |
970b1a8a | 13 | * named @c elossfits in the top level directory. |
1c762251 | 14 | * |
970b1a8a | 15 | * @par Output: |
1c762251 | 16 | * A multi-page PDF. Note, that the PDF generated by ROOT in this way |
17 | * is broken (cannot be read by Acrobat Reader on Windows and MacOSX) | |
18 | * and one should pass it through a filter to correct these problems. | |
19 | * | |
20 | * @param fname File name | |
21 | * @param option Drawing options | |
22 | * | |
bd6f5206 | 23 | * @ingroup pwglf_forward_scripts_corr |
1c762251 | 24 | */ |
cbd6464b | 25 | void |
8449e3e0 | 26 | DrawCorrELoss(ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field, |
27 | Bool_t mc=false, Bool_t sat=false, | |
28 | const char* fname=0, Bool_t details=true) | |
cbd6464b | 29 | { |
1c762251 | 30 | //__________________________________________________________________ |
31 | // Load libraries and object | |
8449e3e0 | 32 | // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2"; |
33 | const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2"; | |
34 | gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd)); | |
35 | gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd)); | |
36 | gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd)); | |
37 | ||
38 | CorrDrawer d; | |
39 | d.Summarize(AliForwardCorrectionManager::kELossFits, runNo, sys, sNN, field, | |
40 | mc, sat, "", fname); | |
cbd6464b | 41 | } |
1c762251 | 42 | // |
43 | // EOF | |
44 | // |