]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FORWARD/analysis2/scripts/RunMakeELossFit.C
Various improvements
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / scripts / RunMakeELossFit.C
CommitLineData
ab0f914c 1/**
2 * Run the energy loss fit finder and generate corrections output file
3 *
4 * @param sys Collision system
5 * @param cms Center of mass energy per nucleon in GeV
6 * @param field Magnetic field
7 * @param mc Whether this is for Monte-Carlo data
8 * @param filename Input file name
9 *
10 * @ingroup pwg2_forward_analysis_scripts
1c762251 11 *
12 * @depcrecated
13 * The class AliFMDELossFitter automatically generates the
14 * AliFMDCorrELossFit object.
15 *
ab0f914c 16 */
17void
18RunMakeELossFit(UShort_t sys,
19 UShort_t cms,
20 Short_t field,
21 Bool_t mc=false,
22 const char* filename="AnalysisResults.root")
23{
24 std::cout << "Loading libraries ..." << std::endl;
25 gROOT->Macro("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/LoadLibs.C");
26
27 std::cout << "Loading compile script ..." << std::endl;
28 gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/Compile.C");
29
30 std::cout << "Compiling MakeELossFit.C script ..." << std::endl;
31 Compile("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/MakeELossFit.C");
32
33 std::cout << "Making MakeELossFit object (sys=" << sys
34 << ", cms=" << cms << ", field=" << field << ", mc=" << mc
35 << ")" << std::endl;
36 MakeELossFit mef(sys, cms, field, mc, "AnalysisResults.root");
37
38 std::cout << "Runing maker ..." << std::endl;
39 mef.Run();
40}
41//
42// EOF
43//