]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/corrs/DrawCorrAcc.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / DrawCorrAcc.C
CommitLineData
b0e36b4a 1/**
2 * @file
3 *
4 * Scripts to draw energy loss fits from correction object file
5 *
bd6f5206 6 * @ingroup pwglf_forward_scripts_corr
b0e36b4a 7 */
b0e36b4a 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.
b0e36b4a 14 *
970b1a8a 15 * @par Output:
b0e36b4a 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 *
c8b1a7db 20 * @param runNo Run number
21 * @param sys Collision system
22 * @param sNN Collision energy in GeV
b0e36b4a 23 * @param fname File name
c8b1a7db 24 * @param details Drawing options
b0e36b4a 25 *
bd6f5206 26 * @ingroup pwglf_forward_scripts_corr
b0e36b4a 27 */
28void
8449e3e0 29DrawCorrAcc(ULong_t runNo, UShort_t sys, UShort_t sNN,
30 const char* fname=0, Bool_t details=true)
b0e36b4a 31{
32 //__________________________________________________________________
33 // Load libraries and object
8449e3e0 34 // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
fe218435 35 const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
8449e3e0 36 gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
37 gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
38 gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
39
40 CorrDrawer d;
41 d.Run(AliForwardCorrectionManager::kAcceptance, runNo, sys, sNN, 0,
42 false, false, "", fname);
43
b0e36b4a 44}
45//
46// EOF
47//