]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/corrs/DrawCorrSecMap.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / DrawCorrSecMap.C
1 /**
2  * @file 
3  * 
4  * Scripts to draw energy loss fits from correction object file 
5  *
6  * @ingroup pwglf_forward_scripts_corr
7  */
8 /** 
9  * Draw secondary maps fits to a multi-page PDF. 
10  *
11  * @par Input: 
12  * The input is expected to be parameters to obtain a
13  * AliFMDCorrSecondaryMap object from the correction manager
14
15  * @par Output: 
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 runNo   Run number
21  * @param sys     Collision system 
22  * @param sNN     Collision energy in GeV
23  * @param field   L3 field strength
24  * @param fname   File name 
25  * @param details Drawing options 
26  *
27  * @ingroup pwglf_forward_scripts_corr
28  */
29 void
30 DrawCorrSecMap(ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field,
31             const char* fname=0, Bool_t details=true)
32 {
33   //__________________________________________________________________
34   // Load libraries and object 
35   // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
36   const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
37   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
38   gSystem->AddIncludePath(Form("-I%s/scripts -I%s", fwd, fwd));
39   gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
40   gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
41
42   CorrDrawer d;
43   d.Run(AliForwardCorrectionManager::kSecondaryMap, runNo, sys, sNN, field, 
44         false, false, "LANDSCAPE", fname);
45 }
46 //
47 // EOF
48 //