]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed the specific reference to Christian's source
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 13:37:32 +0000 (13:37 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2013 13:37:32 +0000 (13:37 +0000)
directory for script loading.  Sorry about that.

Also, one can now override the read run,sys,sNN,field settings
when extracting the corrections - to be used with the greatest
possible care.

PWGLF/FORWARD/analysis2/corrs/CorrExtractor.C
PWGLF/FORWARD/analysis2/corrs/DrawCorrAcc.C
PWGLF/FORWARD/analysis2/corrs/DrawCorrELoss.C
PWGLF/FORWARD/analysis2/corrs/DrawCorrSecMap.C
PWGLF/FORWARD/analysis2/corrs/ExtractAcceptance.C
PWGLF/FORWARD/analysis2/corrs/ExtractELoss.C
PWGLF/FORWARD/analysis2/corrs/ExtractMCCorr.C
PWGLF/FORWARD/analysis2/corrs/ForwardOADBGui.C
PWGLF/FORWARD/analysis2/scripts/Compile.C

index 288a680324bdf18fdbf9cc6d68505240efa8ba33..4510fac8bc5ee4463c1eed1d5d665c7bbc9e6980 100644 (file)
@@ -4,8 +4,17 @@
 #include <TError.h>
 #include "AliCorrectionManagerBase.h"
 
+/**
+ * Extract corrections from result file 
+ * 
+ */
 struct CorrExtractor 
 {
+  /** 
+   * Constructor 
+   * 
+   * @param manager Correction manager
+   */
   CorrExtractor(AliCorrectionManagerBase* manager)
     : fFile(0), 
       fTop(0), 
@@ -13,7 +22,7 @@ struct CorrExtractor
       fRunNo(0), 
       fSys(0), 
       fSNN(0), 
-      fField(0), 
+      fField(999), 
       fMC(false), 
       fSatellite(false),
       fManager(manager)
@@ -44,6 +53,13 @@ struct CorrExtractor
     }
     return static_cast<TCollection*>(o);
   }
+  /** 
+   * Find a collection in a file 
+   * 
+   * @param path Path to collection
+   * 
+   * @return Found collection or null
+   */
   TCollection* FindCollection(const TString& path)
   {
     if (path.IsNull()) return 0;
@@ -61,7 +77,14 @@ struct CorrExtractor
     return p;
     
   }
-  
+  /** 
+   * Find an object 
+   * 
+   * @param path Path to object 
+   * @param name Name of object
+   * 
+   * @return Found object or null
+   */  
   TObject* FindObject(const TString& path, 
                      const TString& name) 
   {
@@ -81,7 +104,15 @@ struct CorrExtractor
     }
     return p->FindObject(name);
   }
-
+  /** 
+   * Initialize this extactor
+   * 
+   * @param fileName  File to extract from 
+   * @param sumFolder The summed folder 
+   * @param out       The result folder
+   * 
+   * @return true on success
+   */
   Bool_t Init(const TString&        fileName, 
              const TString&        sumFolder, 
              const TString&        out)
@@ -108,26 +139,45 @@ struct CorrExtractor
     TObject* oFld        = c->FindObject("field");
     TObject* oRun        = c->FindObject("runNo");
     TObject* oSat        = c->FindObject("satellite");
-    if (oSys) fSys       = oSys->GetUniqueID();
-    if (oSNN) fSNN       = oSNN->GetUniqueID();
-    if (oFld) fField     = oFld->GetUniqueID();
-    if (oRun) fRunNo     = oRun->GetUniqueID();
-    if (oSat) fSatellite = oSat->GetUniqueID();
+    if (oSys && fSys   <= 0)   fSys       = oSys->GetUniqueID();
+    if (oSNN && fSNN   <= 0)   fSNN       = oSNN->GetUniqueID();
+    if (oFld && fField >= 999) fField     = oFld->GetUniqueID();
+    if (oRun && fRunNo <= 0)   fRunNo     = oRun->GetUniqueID();
+    if (oSat)                  fSatellite = oSat->GetUniqueID();
 
-    if (fSys   <= 0 || fSys > 3 ||
-       fSNN   <= 0 || 
-       fRunNo <= 0) {
+    if (fSys <= 0 || fSys > 3 || fSNN <= 0 || fField >= 999 || fRunNo <= 0 ){
       Error("CorrExtractor", "Failed to get settings");
       Clear();
       return false;
     } 
     return true;
   }
+  /** 
+   * Set whether this is MC or not
+   * 
+   * @param mc If true, consider this MC 
+   */
   void SetMC(Bool_t mc=true) { fMC = mc; }
+  /** 
+   * Extract the stuff 
+   * 
+   * @param cls    Class of object
+   * @param parent Parent folder 
+   * 
+   * @return 
+   */
   Bool_t Extract(const TClass* cls, const TString& parent)
   {
     return Extract(cls->GetName(), parent);
   }
+  /** 
+   * Extract the stuff
+   * 
+   * @param objName  Object name 
+   * @param parent   Parent folder 
+   * 
+   * @return 
+   */
   Bool_t Extract(const TString& objName, 
                 const TString& parent="") 
   {
@@ -150,7 +200,10 @@ struct CorrExtractor
                           fSatellite, 
                           fOut.Data());
   }
-
+  /** 
+   * Clear this extractor 
+   * 
+   */
   void Clear()
   {
     if (fFile) fFile->Close();
@@ -163,16 +216,16 @@ struct CorrExtractor
     fMC        = false;
     fSatellite = false;
   }
-  TFile*                    fFile;
-  TList*                    fTop;
-  TString                   fOut;
-  ULong_t                   fRunNo;
-  UShort_t                  fSys; 
-  UShort_t                  fSNN;
-  Short_t                   fField;
-  Bool_t                    fMC;
-  Bool_t                    fSatellite;
-  AliCorrectionManagerBase* fManager;
+  TFile*                    fFile;          // Our file
+  TList*                    fTop;           // Top list
+  TString                   fOut;           // Output 
+  ULong_t                   fRunNo;         // Run number
+  UShort_t                  fSys;           // System
+  UShort_t                  fSNN;           // Collision energy in GeV
+  Short_t                   fField;         // L3 field in kG
+  Bool_t                    fMC;            // Simulation flag
+  Bool_t                    fSatellite;     // Satellite interaction flag
+  AliCorrectionManagerBase* fManager;       // Correction manager to use 
 };
 
 //
index e87a35f200aa35b73a3a28d8b3e9dd40cf53aab2..a395891de1f9a9adde929cb9477b348cedd5a520 100644 (file)
@@ -29,7 +29,7 @@ DrawCorrAcc(ULong_t runNo, UShort_t sys, UShort_t sNN,
   //__________________________________________________________________
   // Load libraries and object 
   // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
index a0e3e905eb6f74c4efd0a7b257418f2c3e1e5633..d4316c16b983f7143328fa4c08e87d231546d404 100644 (file)
@@ -30,7 +30,7 @@ DrawCorrELoss(ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field,
   //__________________________________________________________________
   // Load libraries and object 
   // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
@@ -52,7 +52,7 @@ DrawCorrELoss(Bool_t      mc,
              const char* file="forward_eloss.root", 
              const char* local="fmd_corrections.root")
 {
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
index aa690f4c843b1a82dc716531acaaae69d1f3a509..accee5bce201a6c629ea60b325b42ae65d06760b 100644 (file)
@@ -29,7 +29,7 @@ DrawCorrSecMap(ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field,
   //__________________________________________________________________
   // Load libraries and object 
   // const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrDrawer.C", fwd));
index 7c1e6ff3e763b11bf495108e800d10a3fd640961..754b0bf0952bb4bcaf8766ed60cf782d7358d69e 100644 (file)
@@ -127,7 +127,7 @@ void ExtractAcceptance(Int_t   runNo=121526,
                       Float_t vtxLow=-10, 
                       Float_t vtxHigh=10)
 {  
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gSystem->AddIncludePath(Form("-I%s", fwd));
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
 
index fea4599dd26f73d13bd24e09f2d55905409176d5..c64492fa2d3fc1dc436c46ed2e0eb00f7abce0af 100644 (file)
  */
 void
 ExtractELoss(const char* fname = "forward_eloss.root",
-            Bool_t mc=false)
+            Bool_t   mc=false, 
+            ULong_t  runNo=0, 
+            UShort_t sys=0,
+            UShort_t sNN=0,
+            Short_t  fld=999,
+            Bool_t   sat=false)
 {
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gSystem->AddIncludePath(Form("-I%s", fwd));
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrExtractor.C++g", fwd));
@@ -29,6 +34,11 @@ ExtractELoss(const char* fname = "forward_eloss.root",
   CorrExtractor fmdEx(&AliForwardCorrectionManager::Instance());
   if (fmdEx.Init(fname, "Forward", "fmd_corrections.root")) {
     fmdEx.SetMC(mc);
+    if (runNo > 0)   fmdEx.fRunNo     = runNo;
+    if (sys   > 0)   fmdEx.fSys       = sys;
+    if (sNN   > 0)   fmdEx.fSNN       = sNN;
+    if (fld   < 999) fmdEx.fField     = fld;
+    if (sat)         fmdEx.fSatellite = sat;
     fmdEx.Extract(AliFMDCorrELossFit::Class(),
                  "ForwardResults/fmdEnergyFitter");
   }
index ad271ca68d5f845588c538033aeca080e0de72ba..72e729c98c5e8610fae15c7583450826b4123ee9 100644 (file)
  * @ingroup pwglf_forward_scripts_corr
  */
 void
-ExtractMCCorr(const char* fname)
+ExtractMCCorr(const char* fname,
+             ULong_t     runNo=0, 
+             UShort_t    sys=0,
+             UShort_t    sNN=0,
+             Short_t     fld=999,
+             Bool_t      sat=false)
 {
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   gSystem->AddIncludePath(Form("-I%s", fwd));
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   gROOT->LoadMacro(Form("%s/corrs/CorrExtractor.C++g", fwd));
   
   CorrExtractor fmdEx(&AliForwardCorrectionManager::Instance());
   if (fmdEx.Init(fname, "ForwardCorrSums", "fmd_corrections.root")) {
+    if (runNo > 0)   fmdEx.fRunNo     = runNo;
+    if (sys   > 0)   fmdEx.fSys       = sys;
+    if (sNN   > 0)   fmdEx.fSNN       = sNN;
+    if (fld   < 999) fmdEx.fField     = fld;
+    if (sat)         fmdEx.fSatellite = sat;
     fmdEx.Extract(AliFMDCorrSecondaryMap::Class(),
                  "ForwardCorrResults");
   }
 
   CorrExtractor spdEx(&AliCentralCorrectionManager::Instance());
   if (spdEx.Init(fname, "CentralCorrSums", "spd_corrections.root")) {
+    if (runNo > 0)   spdEx.fRunNo     = runNo;
+    if (sys   > 0)   spdEx.fSys       = sys;
+    if (sNN   > 0)   spdEx.fSNN       = sNN;
+    if (fld   < 999) spdEx.fField     = fld;
+    if (sat)         spdEx.fSatellite = sat;
     spdEx.Extract(AliCentralCorrSecondaryMap::Class(), "CentralCorrResults");
     spdEx.Extract(AliCentralCorrAcceptance::Class(), "CentralCorrResults");
   }
index 84f320dad4a19cbbf5bf4ee5128c01e7385ef48f..96982f683dfd9fa0a503f0f1c8bfa0c4f913890d 100644 (file)
@@ -43,7 +43,7 @@ namespace {
 class AliOADBForward;
 class AliOADBForward::Entry;
 class TGFrame;
-class TGLVEntry;
+class TGLVEtry;
 class TGHorizontalFrame;
 class TGTextButton;
 class TGTextEntry;
@@ -105,8 +105,8 @@ struct ForwardOADBGUI
     fPrintButton(&fCommandFrame, "Print entry"),
     fDrawButton(&fCommandFrame, "Draw entry"),
     fPDFButton(&fCommandFrame, "Summarize entry"),
-    fList(0), 
-    fListContainer(0),
+    fList(&fMain, 800, 400), 
+    fListContainer(&fList),
     fFrameHints(kLHintsExpandX, 0, 0, 2, 0),
     fLabelHints(kLHintsNoHints, 4, 2, 0, 0),
     fEntryHints(kLHintsExpandX|kLHintsExpandY, 2, 4, 0, 0),
@@ -116,6 +116,8 @@ struct ForwardOADBGUI
     fEntry(0)
   {
     fMain.Connect("CloseWindow()", "ForwardOADBGUI", this, "HandleKill()");
+    fMain.DontCallClose();
+
     fFileSelect.Connect("Clicked()", "ForwardOADBGUI", this, "HandleBrowse()");
     fOpenButton.Connect("Clicked()", "ForwardOADBGUI", this, "HandleOpen()");
     fCloseButton.Connect("Clicked()", "ForwardOADBGUI", this, "HandleClose()");
@@ -195,30 +197,30 @@ struct ForwardOADBGUI
     fSelectFrame.AddFrame(&fCommandFrame, &fFrameHints);
     fCommandFrame.SetLayoutHints(&fButtonHints);
     
-    fList          = new TGListView(&fMain, 800, 400);
-    fListContainer = new TGLVContainer(fList);
-    fListContainer->SetColHeaders("Entry", 
-                                 "Run", 
-                                 "System", 
-                                 "sqrt(sNN)", 
-                                 "L3 Field", 
-                                 "Type", 
-                                 "IP",
-                                 "Date",
-                                 "Author",
-                                 "AliROOT",
-                                 "Data");
-    fList->SetViewMode(kLVDetails);
-    fList->Connect("Clicked(TGLVEntry*,Int_t)", 
+    // fList          = new TGListView(&fMain, 800, 400);
+    // fListContainer = new TGLVContainer(fList);
+    fListContainer.SetColHeaders("Entry", 
+                                "Run", 
+                                "System", 
+                                "sqrt(sNN)", 
+                                "L3 Field", 
+                                "Type", 
+                                "IP",
+                                "Date",
+                                "Author",
+                                "AliROOT",
+                                "Data");
+    fList.SetViewMode(kLVDetails);
+    fList.Connect("Clicked(TGLVEntry*,Int_t)", 
                   "ForwardOADBGUI", this, "HandleItem(TGLVEntry*,Int_t)");
-    fList->Connect("DoubleClicked(TGLVEntry*,Int_t)", 
+    fList.Connect("DoubleClicked(TGLVEntry*,Int_t)", 
                   "ForwardOADBGUI", this, "HandleItem(TGLVEntry*,Int_t)");
-    fListContainer->Connect("Clicked(TGFrame*,Int_t)",
+    fListContainer.Connect("Clicked(TGFrame*,Int_t)",
                            "ForwardOADBGUI", this, 
                            "HandleItem(TGFrame*,Int_t)");
-    fList->SetMinWidth(400);
-    fList->SetMinHeight(200);
-    fMain.AddFrame(fList, &fListHints);
+    fList.SetMinWidth(400);
+    fList.SetMinHeight(200);
+    fMain.AddFrame(&fList, &fListHints);
     
 #ifndef __CINT__
     ::SetErrorHandler(ForwardOADBGUIErrorHandler);
@@ -237,7 +239,6 @@ struct ForwardOADBGUI
 #ifndef __CINT__
     ::SetErrorHandler(::DefaultErrorHandler);
 #endif
-    fMain.DontCallClose();
     Info("~ForwardOADBGUI", "Closing");
   }
   void UseDB(AliOADBForward* db)
@@ -263,10 +264,11 @@ struct ForwardOADBGUI
   }
   void HandleKill()
   {
-    fMain.DontCallClose();
+    // fMain.DontCallClose();
+    fMain.DeleteWindow();
     Printf("Starting timer");
-    TTimer* t = new TTimer(Form("delete (ForwardOADBGUI*)%p", this), 100);
-    t->Start(100, true);
+    // TTimer* t = new TTimer(Form("delete (ForwardOADBGUI*)%p", this), 100);
+    // t->Start(100, true);
   }
   void HandleDBEntry(AliOADBForward::Entry* e)
   {
@@ -275,7 +277,7 @@ struct ForwardOADBGUI
     fDrawButton.SetEnabled(en);
     fPrintButton.SetEnabled(en);
     fPDFButton.SetEnabled(en);
-
+    
     fEntry = e;
   }
   void HandleEnable()
@@ -334,7 +336,8 @@ struct ForwardOADBGUI
     fDB = new AliOADBForward();
     Info("HandleOpen", "Opening DB file %s for tables %s", 
         fFileText.GetText(), fTablesText.GetText());
-    if (!fDB->Open(fFileText.GetText(), fTablesText.GetText(), false, true)) { 
+    if (!fDB->Open(fFileText.GetText(), fTablesText.GetText(), 
+                  false, true, true)) { 
       Error("HandleOpen", "Failed to open database");
       delete fDB;
       fDB = 0;
@@ -346,6 +349,15 @@ struct ForwardOADBGUI
   void HandleBrowse()
   {
     TGFileInfo fi;
+    TString iniDir(gSystem->ExpandPathName("$(OADB_PATH)"));
+    if (iniDir.IsNull()) 
+      iniDir = gSystem->ExpandPathName("$(ALICE_ROOT)/OADB");
+    iniDir.Append("/PWGLF/FORWARD/CORRECTIONS/data");
+    char* ini = new char[iniDir.Length()+1];
+    for (int i = 0; i < iniDir.Length(); i++) ini[i] = iniDir[i];
+    ini[iniDir.Length()] = '\0';
+    Printf("Initial directory: %s (%s)", iniDir.Data(), ini);
+    fi.fIniDir = ini;
     new TGFileDialog(gClient->GetRoot(), &fMain, kFDOpen, &fi);
 
     TString nf = fi.fFilename; // 
@@ -355,7 +367,7 @@ struct ForwardOADBGUI
   }
   void HandleEntry(Int_t i, AliOADBForward::Entry* e) 
   {
-    TGLVEntry* lve = new TGLVEntry(fListContainer, Form("%d", i), "");
+    TGLVEntry* lve = new TGLVEntry(&fListContainer, Form("%d", i), "");
     if (i < 0) lve->SetUserData(e);
     lve->SetUniqueID(i);
     TDatime dt(e->fTimestamp);
@@ -369,7 +381,7 @@ struct ForwardOADBGUI
                     dt.AsSQLString(),
                     e->fAuthor, Form("%lu", e->fAliROOTRevision),
                     (e->fData ? e->fData->GetName() : "null"));
-    fListContainer->AddItem(lve);
+    fListContainer.AddItem(lve);
   }
   void HandleList()
   {
@@ -389,9 +401,9 @@ struct ForwardOADBGUI
     }
     // HandleQuery();
     t->Print(fOptionsText.GetText());
-    if (!fListContainer) return;
+    // if (!fListContainer) return;
     
-    fListContainer->RemoveAll();
+    fListContainer.RemoveAll();
     TTree* tree = t->fTree;
     Int_t  n    = tree->GetEntries();
     for (Int_t i = 0; i < n; i++) { 
@@ -399,7 +411,7 @@ struct ForwardOADBGUI
       AliOADBForward::Entry* e = t->fEntry;
       HandleEntry(i, e);
     }
-    fList->AdjustHeaders();
+    fList.AdjustHeaders();
     fMain.Layout();
   }
   void SelectedTable(TString& ret) const
@@ -505,7 +517,7 @@ struct ForwardOADBGUI
   void CorrDraw(const TObject* o, Bool_t summarize)
   {
     if (!gROOT->GetClass("CorrDrawer")) { 
-      const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+      const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
       gSystem->AddIncludePath(Form("-I$ALICE_ROOT/include -I%s -I%s/scripts",
                                   fwd, fwd));
       gROOT->LoadMacro(Form("%s/scripts/SummaryDrawer.C", fwd));
@@ -577,14 +589,14 @@ struct ForwardOADBGUI
     // if (drawNotPrint) e->Inspect();
     // else              e->Print(fOptionsText.GetText());
     e->Print();
-    if (fListContainer) { 
-      fListContainer->RemoveAll();
-      HandleEntry(-1, e);
-    }
+    // if (fListContainer) { 
+    fListContainer.RemoveAll();
+    HandleEntry(-1, e);
+    // }
     if (!e->fData) return 0;
     HandleDBEntry(e);
 
-    fList->AdjustHeaders();
+    fList.AdjustHeaders();
     fMain.Layout();
 
     return e->fData;
@@ -626,8 +638,8 @@ struct ForwardOADBGUI
   TGTextButton      fPrintButton;
   TGTextButton      fDrawButton;
   TGTextButton      fPDFButton;
-  TGListView*       fList;
-  TGLVContainer*    fListContainer;
+  TGListView        fList;
+  TGLVContainer     fListContainer;
   TGLayoutHints     fFrameHints;
   TGLayoutHints     fLabelHints;
   TGLayoutHints     fEntryHints; 
@@ -642,14 +654,16 @@ struct ForwardOADBGUI
 
 TGMainFrame* ForwardOADBGui(AliOADBForward* db=0)
 {
-  const char* fwd = "$ALICE_ROOT/../trunk/PWGLF/FORWARD/analysis2";
+  const char* fwd = "$ALICE_ROOT/PWGLF/FORWARD/analysis2";
   // if (!gROOT->GetClass("AliOADBForward")) 
-  gSystem->Load("libGui");
+  // gSystem->Load("libGui");
   gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
   
   // gSystem->AddIncludePath(Form("-I%s", fwd));
   // gROOT->LoadMacro(Form("%s/corrs/ForwardOADBGUI.C", fwd));
 
+  new TBrowser;
+  // new TGClient();
   ForwardOADBGUI* gui = new ForwardOADBGUI();
   if (db) gui->UseDB(db);
   return gui->GetMain();
index e4280fb2bbcd5a9389f11456c23f5b160788aff0..6c2eebb9749a876b9fb98778325c2718910be860 100644 (file)
@@ -33,7 +33,7 @@ Compile(const char* script, Option_t* option="g")
                          "-I${ALICE_ROOT} " 
                          "-I${ALICE_ROOT}/include " 
                          "-I${ALICE_ROOT}/PWGLF/FORWARD/analysis2 "
-                         "-I${ALICE_ROOT}/../trunk/PWGLF/FORWARD/analysis2 ");
+                         "-I${ALICE_ROOT}/PWGLF/FORWARD/analysis2 ");
   Long_t ret = gROOT->ProcessLine(Form(".L %s+%s", script, option));
   return ret == 0;
 }