Renames and new scripts
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / scripts / TestRunMakeELossFit.C
similarity index 74%
rename from PWG2/FORWARD/analysis2/scripts/RunMakeELossFit.C
rename to PWG2/FORWARD/analysis2/scripts/TestRunMakeELossFit.C
index 8054c2d3d7245ba6ef14f3095780227120f6e528..d32dce32d23fa16a37770dac5af3c133e2f17954 100644 (file)
  *
  */
 void
-RunMakeELossFit(UShort_t    sys, 
-               UShort_t    cms, 
-               Short_t     field, 
-               Bool_t      mc=false,
-               const char* filename="AnalysisResults.root")
+TestRunMakeELossFit(UShort_t    sys, 
+                   UShort_t    cms, 
+                   Short_t     field, 
+                   Bool_t      mc=false,
+                   const char* filename="forward_eloss.root")
 {
   std::cout << "Loading libraries ..." << std::endl;
   gROOT->Macro("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/LoadLibs.C");
@@ -28,14 +28,14 @@ RunMakeELossFit(UShort_t    sys,
   gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/Compile.C");
  
   std::cout << "Compiling MakeELossFit.C script ..." << std::endl;
-  Compile("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/MakeELossFit.C"); 
+  Compile("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/TestMakeELossFit.C"); 
 
   std::cout << "Making MakeELossFit object (sys=" << sys 
            << ", cms=" << cms << ", field=" << field << ", mc=" << mc 
            << ")" << std::endl;
-  MakeELossFit mef(sys, cms, field, mc, "AnalysisResults.root"); 
+  MakeELossFit mef(sys, cms, field, mc, filename); 
 
-  std::cout << "Runing maker ..." << std::endl;
+  std::cout << "Running maker ..." << std::endl;
   mef.Run();
 }
 //