]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing obsolete/dead code
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Jan 2011 11:36:54 +0000 (11:36 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Jan 2011 11:36:54 +0000 (11:36 +0000)
25 files changed:
ANALYSIS/Aliengui/AliAlienBrowser.cxx [deleted file]
ANALYSIS/Aliengui/AliAlienBrowser.h [deleted file]
ANALYSIS/Aliengui/AliAnalysisGUI.cxx [deleted file]
ANALYSIS/Aliengui/AliAnalysisGUI.h [deleted file]
ANALYSIS/Aliengui/AliAnalysisGUIdummy.cxx [deleted file]
ANALYSIS/Aliengui/AliAnalysisGUIdummy.h [deleted file]
ANALYSIS/Aliengui/AliFileListFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliFileListFrame.h [deleted file]
ANALYSIS/Aliengui/AliLoginFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliLoginFrame.h [deleted file]
ANALYSIS/Aliengui/AliPackageFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliPackageFrame.h [deleted file]
ANALYSIS/Aliengui/AliSelectorFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliSelectorFrame.h [deleted file]
ANALYSIS/Aliengui/AliTagAnalysisFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliTagAnalysisFrame.h [deleted file]
ANALYSIS/Aliengui/AliTagFrame.cxx [deleted file]
ANALYSIS/Aliengui/AliTagFrame.h [deleted file]
ANALYSIS/Aliengui/AlienguiLinkDef.h [deleted file]
ANALYSIS/Aliengui/aliengui_main/aliengui_main.cxx [deleted file]
ANALYSIS/CMakebinaliengui.pkg [deleted file]
ANALYSIS/CMakelibAliengui.pkg [deleted file]
ANALYSIS/binaliengui.pkg [deleted file]
ANALYSIS/libAliengui.pkg [deleted file]
build/module.dep

diff --git a/ANALYSIS/Aliengui/AliAlienBrowser.cxx b/ANALYSIS/Aliengui/AliAlienBrowser.cxx
deleted file mode 100644 (file)
index 9399d90..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//                 AliAlienBrowser class
-//   The class that deals with the AliEn browser of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-
-//ROOT
-#include <TApplication.h>
-#include <TGFrame.h>
-#include <TGListTree.h>
-#include <TGrid.h>
-#include <TGridResult.h>
-#include <TObjArray.h>
-#include <TObjString.h>
-#include <TSystem.h>
-#include <TSystemDirectory.h>
-#include <TSystemFile.h>
-class TG3DLine;
-class TGButton;
-class TGDockableFrame;
-class TGFileDialog;
-class TGIcon;
-class TGListTree;
-class TGMenu;
-class TGStatusBar;
-class TGTab;
-class TGToolBar;
-
-#include "AliAlienBrowser.h"
-
-ClassImp(AliAlienBrowser)
-
-//___________________________________________________________________________
-AliAlienBrowser::AliAlienBrowser(const TGWindow* p, UInt_t w, UInt_t h, TGFrame* frame, const char* classToConnect, EBrowseType type) : TGCanvas(p, w, h), fFrame(frame),   fListTree(new TGListTree(this, kHorizontalFrame)), fBrowseType(type) {
-  // Constructor.
-  
-
-  //   fListTree->Associate(this);
-  fListTree->Connect("DoubleClicked(TGListTreeItem*,Int_t)", classToConnect,frame, "OnDoubleClick(TGListTreeItem*,Int_t)");
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-AliAlienBrowser::~AliAlienBrowser() {
-  // Dtcor.
-  
-  DeleteWindow();
-  SetCleanup(kDeepCleanup);
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::OnDoubleClick(TGListTreeItem* item, Int_t btn) {
-  // OnDoubleClick at the ListTree, depending on Local or Grid Browsing
-  
-  if(fBrowseType == kLocalBrowse)
-    OnDoubleClickLocal(item,btn);
-  else if(fBrowseType == kGridBrowse)
-    OnDoubleClickGrid(item,btn);
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::OnDoubleClickGrid(TGListTreeItem* item, Int_t btn) {
-  // OnDoubleClick at the ListTree
-  
-  if(!gGrid)
-    return;
-  
-  if ((btn!=kButton1) || !item) 
-    return;
-  
-  if((Bool_t)item->GetUserData()) 
-    return;
-  
-  // use UserData to indicate that item was already browsed
-  item->SetUserData((void*)1);
-  
-  TString filename;
-  
-  TGridResult * result = gGrid->Ls(GetPath(item), "-F");
-  
-  int i = 0;
-  while(result->GetFileName(i)){
-    filename = result->GetFileName(i++);
-    
-    // if the file is a directory
-    if(filename.EndsWith("/")){
-      if(filename.CompareTo("..") != 0 && filename.CompareTo(".") != 0){
-       fListTree->AddItem(item, filename.Remove(filename.Length()-1)); 
-      }
-    }
-  }    
-  
-  Refresh();
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::OnDoubleClickLocal(TGListTreeItem* item, Int_t btn) {
-  // Show contents of directory.
-  
-  if ((btn!=kButton1) || !item || (Bool_t)item->GetUserData()) return;
-  
-  // use UserData to indicate that item was already browsed
-  item->SetUserData((void*)1);
-  
-  TSystemDirectory dir(item->GetText(),DirName(item));
-  
-  TList *files = dir.GetListOfFiles();
-  
-  if (files) {
-    TIter next(files);
-    TSystemFile *file;
-    TString fname;
-    
-    while ((file=(TSystemFile*)next())) {
-      fname = file->GetName();
-      if (file->IsDirectory()) {
-       if ((fname!="..") && (fname!=".")) { // skip it
-         fListTree->AddItem(item,fname);
-       }
-      } 
-    }
-    fListTree->SortChildren(item);
-    delete files;
-  }
-  Refresh();
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::GotoDir(const char* dirToGo) {
-  // Goto the given destination dir
-  
-  fListTree->ClearHighlighted();
-  
-  TString destDir(dirToGo);
-  
-  TObjArray * destDirSplit = destDir.Tokenize("/");
-  TString dir;
-  TGListTreeItem * item = fListTree->GetFirstItem();
-  
-  if(strcmp(item->GetText(), "/") == 0){
-    OnDoubleClick(item, kButton1);
-    fListTree->OpenItem(item);
-    item = item->GetFirstChild();
-  }
-  Bool_t found = false;
-  
-  for(Int_t i=0;i != destDirSplit->GetEntries();i++){
-    found = false;
-    dir = ((TObjString*)destDirSplit->At(i))->GetString();
-    
-    do {
-      found = dir.CompareTo(item->GetText()) == 0 ? true : false;
-      
-      if(found){
-       
-       OnDoubleClick(item, kButton1); // add subdirectories
-       
-       fListTree->SetSelected(item);
-       fListTree->OpenItem(item);
-       fListTree->AdjustPosition(item);
-       Refresh();
-       
-      }else{
-       item = item->GetNextSibling();
-      }
-    }while(!found);
-    
-    item = item->GetFirstChild();  
-  }
-  
-  //   SetHsbPosition(50);
-  
-  Refresh();
-  
-  delete destDirSplit;
-}
-
-//___________________________________________________________________________
-TString AliAlienBrowser::DirName(TGListTreeItem* item) const {
-  // Returns an absolute path.
-  
-  TGListTreeItem* parent;
-  TString dirname = item->GetText();
-  
-  while ((parent=item->GetParent())) {
-    dirname = gSystem->ConcatFileName(parent->GetText(),dirname);
-    item = parent;
-  }
-  
-  return dirname;
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::AddItem(TGListTreeItem* parent, const char* txt) {
-  // Add item
-  fListTree->AddItem(parent, txt);
-  fListTree->SetSelected(fListTree->GetFirstItem());
-  Refresh();
-}
-
-//___________________________________________________________________________
-void AliAlienBrowser::Refresh() const {
-  // Refresh the windows
-  
-  gClient->NeedRedraw(fListTree);
-}
-
-//___________________________________________________________________________
-const char* AliAlienBrowser::GetPath(TGListTreeItem *item) const {
-  // Get the selected item's path. 
-  
-  //   TGListTreeItem *item = fListTree->GetSelected();
-  TString dirName = DirName(item);
-  TSystemDirectory dir(item->GetText(),dirName);   
-  
-  return dirName.Data();
-}
-
-//___________________________________________________________________________
-const char* AliAlienBrowser::GetPath() {
-  // Get the selected item's path. 
-  
-  return GetPath(fListTree->GetSelected());
-}
diff --git a/ANALYSIS/Aliengui/AliAlienBrowser.h b/ANALYSIS/Aliengui/AliAlienBrowser.h
deleted file mode 100644 (file)
index 44166cb..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef ALIALIENBROWSER_H
-#define ALIALIENBROWSER_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliAlienBrowser
-//   AliAlienBrowser class that describes the alien browser of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliAlienBrowser                               //
-//                                                                      //
-//                      AliEn browser of the GUI.                       //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-
-#include <TGCanvas.h>
-
-class TGFrame;
-class TGListTree;
-class TGListTreeItem;
-
-enum EBrowseType{
-   kGridBrowse,
-   kLocalBrowse
-};
-
-//___________________________________________________________________________
-class AliAlienBrowser : public TGCanvas {
- public:
-  AliAlienBrowser(const TGWindow* p, UInt_t w, UInt_t h, TGFrame* frame, const char* objectToConnect, EBrowseType type);
-  ~AliAlienBrowser();
-  
-  void        AddItem(TGListTreeItem* parent, const char* txt);
-  void        OnDoubleClick(TGListTreeItem* item, Int_t btn);
-  const char* GetPath();
-  void        GotoDir(const char* dir);
-
-  EBrowseType GetBrowseType() const {return fBrowseType;}
-
-  //___________________________________________________________________________
- private:   
-  AliAlienBrowser(const AliAlienBrowser&); // copy ctor
-  AliAlienBrowser& operator= (const AliAlienBrowser&); // assignment operator
-  
-  TString     DirName(TGListTreeItem* item) const;
-  const char* GetPath(TGListTreeItem *item) const;
-  void        Refresh() const;
-  
-  void        OnDoubleClickGrid(TGListTreeItem* item, Int_t btn);
-  void        OnDoubleClickLocal(TGListTreeItem* item, Int_t btn);
-  
-  
-  TGFrame     *fFrame; //main browser frame     
-  TGListTree  *fListTree; //tree structure
-  
-  EBrowseType  fBrowseType; // whether is for Local or Grid browsing
-  
-  ClassDef(AliAlienBrowser, 0) // AliAlienBrowser
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliAnalysisGUI.cxx b/ANALYSIS/Aliengui/AliAnalysisGUI.cxx
deleted file mode 100644 (file)
index 0b3962d..0000000
+++ /dev/null
@@ -1,409 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliAnalysisGUI class
-//   The class that deals with the analysis GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-//ROOT
-#include "TApplication.h"
-#include "TSystem.h"
-
-#include "TGTab.h"
-#include "TGDockableFrame.h"
-#include "TGFrame.h"
-#include "TGMenu.h"
-#include "TG3DLine.h"
-#include "TGToolBar.h"
-#include "TGStatusBar.h"
-#include "TGIcon.h"
-#include "TGFileDialog.h"
-
-class TGButton;
-
-#include "TGrid.h"
-
-#define GUIDEBUG 1
-
-#ifdef GUIDEBUG
-using namespace std;
-#endif
-
-
-enum EAliEnViewerCommands {
-   kAliEnConnect,
-   kAliEnHome,
-   kOpen,
-   kSave,
-   kExit
-};
-
-//GUI
-#include "AliAlienBrowser.h"
-#include "AliFileListFrame.h"
-#include "AliLoginFrame.h"
-#include "AliPackageFrame.h"
-
-#include "AliAnalysisGUI.h"
-
-ClassImp(AliAnalysisGUI)
-
-//___________________________________________________________________________
-AliAnalysisGUI::AliAnalysisGUI(const TGWindow *p, UInt_t w, UInt_t h) : 
-  TGMainFrame(p,w,h), 
-  fHFrame1(0), fVFrame1(0), fVFrame2(0),
-  fMenuDock(0), fMenuFile(0), fMenuBar(0),
-  fToolBar(0), fTab(0),
-  fMenuBarLayout(0), fMenuBarItemLayout(0),
-  fH3DLine(0), fCanvas2(0), fStatusBar(0),
-  fAliEnBrowser(0), fFileListFrame(0),
-  fLogInFrame(0), fTagFrame(0),
-  fTagAnalysisFrame(0), fPackageFrame(0),
-  fSelectorFrame(0), fIcon(0),
-  fRightIconPicture(0), fRightIcon(0),
-  fIsConnected(kFALSE), fAlien(0) {
-  // AliAnalysisGUI Constructor
-  
-  SetWindowName("AliEn");
-  
-  // Create all the Frames, MenuBar and ToolBar
-  fVFrame1 = new TGVerticalFrame(this, 600, 600);
-  
-  AddMenuBar();
-  AddToolBar();
-  
-  AddFrame(fVFrame1, new TGLayoutHints(kLHintsTop));
-  
-  fTab = new TGTab(this, 900, 300);
-  //   fTab->Connect("Selected(Int_t)", "TestDialog", this, "DoTab(Int_t)");
-  
-  AddFrame(fTab);
-  
-  //_____________________________________//
-  //_________File Catalogue TAB__________//
-  //_____________________________________//
-  TGCompositeFrame *tf = fTab->AddTab("File Catalogue");   
-  TGCompositeFrame *fF1 = new TGCompositeFrame(tf, 60, 20, kVerticalFrame);
-  
-  fHFrame1 = new TGHorizontalFrame(fF1, 500, 500);
-  fHFrame1->SetCleanup(kDeepCleanup);
-  
-  fAliEnBrowser = new AliAlienBrowser(fHFrame1, 200, 250, this, "AliAnalysisGUI", kGridBrowse);
-  fHFrame1->AddFrame(fAliEnBrowser, new TGLayoutHints(kLHintsLeft | kLHintsExpandY));         
-  
-  fVFrame2 = new TGVerticalFrame(fHFrame1, 500, 500);
-  fVFrame2->SetCleanup(kDeepCleanup);
-  fHFrame1->AddFrame(fVFrame2, new TGLayoutHints(kLHintsRight | kLHintsExpandY));                 
-  
-  fFileListFrame = new AliFileListFrame(fVFrame2, 250, 200);   
-  
-  fVFrame2->AddFrame(fFileListFrame,new TGLayoutHints(kLHintsExpandY));
-  
-  fF1->AddFrame(fHFrame1,new TGLayoutHints(kLHintsNormal));      
-  tf->AddFrame(fF1, new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 5));
-  
-  
-  //_____________________________________//
-  //_________Packages TAB__________//
-  //_____________________________________//
-  tf = fTab->AddTab("Packages");
-  
-  fPackageFrame = new AliPackageFrame(tf, 250, 300, this);
-  tf->AddFrame(fPackageFrame, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 5, 5, 5, 5));
-  
-  //_____________________________________//
-  //______________TAG TAB________________//
-  //_____________________________________//
-  tf = fTab->AddTab("Event Tags");
-  
-  //TGCompositeFrame *fF2 = new TGCompositeFrame(tf, 60, 20, kVerticalFrame);
-  
-  fTagAnalysisFrame = new AliTagAnalysisFrame(tf, 250, 200, this);
-  
-  tf->AddFrame(fTagAnalysisFrame,new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 5, 5, 5, 5));
-  
-  //_____________________________________//
-  //___________SELECTOR TAB______________//
-  //_____________________________________//
-  tf = fTab->AddTab("Analysis");
-  
-  fSelectorFrame = new AliSelectorFrame(tf, 250, 300, this, fTagAnalysisFrame);
-  
-  tf->AddFrame(fSelectorFrame, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 5, 5, 5, 5));
-  
-  
-  // Status Bar
-  AddStatusBar();
-
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-AliAnalysisGUI::~AliAnalysisGUI() {
-  // AliAnalysisGUI Destructor
-  
-  Cleanup();
-  
-  delete fMenuDock;
-  delete fMenuFile;
-  delete fMenuBar;
-  delete fToolBar;
-  delete fH3DLine;
-  delete fHFrame1;
-  delete fCanvas2;
-  delete fFileListFrame;
-  delete fIcon;
-  delete fMenuBarLayout;
-  delete fMenuBarItemLayout;
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::CloseWindow() {
-  // Got close message for this MainFrame. Terminates the application.
-  
-  gApplication->Terminate();
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::AddMenuBar() {
-  // Create the MenuBar
-  
-  fMenuDock = new TGDockableFrame(this);
-  AddFrame(fMenuDock, new TGLayoutHints(kLHintsExpandX, 0, 0, 1, 0));
-  fMenuDock->SetWindowName("Menu");
-  
-  fMenuFile = new TGPopupMenu(gClient->GetRoot());
-  fMenuFile->AddEntry("&Log In...", kMFILELOGIN);
-  fMenuFile->AddEntry("&Open...", kMFILEOPEN);
-  fMenuFile->AddEntry("S&ave as...", kMFILESAVEAS);
-  fMenuFile->AddSeparator();
-  fMenuFile->AddEntry("Tag...", kMFILETAG);
-  fMenuFile->AddSeparator();
-  fMenuFile->AddEntry("E&xit", kMFILEEXIT);
-  
-  fMenuBar = new TGMenuBar(fMenuDock, 1, 1, kHorizontalFrame);
-  fMenuBar->AddPopup("&File", fMenuFile, fMenuBarItemLayout);
-  
-  fMenuDock->AddFrame(fMenuBar, fMenuBarLayout);
-  
-  //   AddFrame(fMenuDock, fMenuBarLayout);
-  fVFrame1->AddFrame(fMenuDock, fMenuBarLayout);
-  
-  
-  
-  //   fMenuDock->Connect("Undocked()", "AliAnalysisGUI", this, "HandleMenu(=M_VIEW_UNDOCK)");
-  
-  fMenuFile->Connect("Activated(Int_t)", "AliAnalysisGUI", this, "HandleMenu(Int_t)");
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::AddToolBar() {
-  // Create the ToolBar
-  
-  // toolbar icon files
-  const char *xpmtoolbar[] = {
-    "connect.xpm",
-    "",
-    "home_t.xpm",
-    "",
-    "fileopen.xpm",
-    "filesaveas.xpm",
-    "",
-    "ed_quit.png",
-    "",
-  };
-  
-  ToolBarData_t tbdata[] = {
-    { "", "Quick Connect",        kFALSE, kAliEnConnect,    0 },
-    { "", 0,                      kFALSE, -1,               0 },
-    { "", "Home Directory",       kFALSE, kAliEnHome,       0 },
-    { "", 0,                      kFALSE, -1,               0 },
-    { "", "Open",                 kFALSE, kOpen,            0 },
-    { "", "Save",                 kFALSE, kSave,            0 },
-    { "", 0,                      kFALSE, -1,               0 },
-    { "", "Exit",                 kFALSE, kExit,            0 },
-    { 0,  0,                      0,      0,                0 }
-  };
-  
-  // toolbar button separator
-  int separator = 5;
-  
-  // number of icons
-  const int knumIcons= 8;
-  
-  // creation of a toolbar object as a child of main frame
-  fToolBar = new TGToolBar(this, 640, 80);
-  for (int i = 0; i < knumIcons; i++) {
-    // filling the ToolBarData_t with information
-    tbdata[i].fPixmap = xpmtoolbar[i];
-    
-    if (strlen(xpmtoolbar[i]) == 0) {
-      separator = 5;
-      continue;
-    }
-    fToolBar->AddButton(this, &tbdata[i], separator);
-    separator = 0;
-  }
-  
-  // adding the tool bar to the main frame
-  //   AddFrame(fToolBar, new TGLayoutHints(kLHintsTop | kLHintsExpandX));
-  fVFrame1->AddFrame(fToolBar, new TGLayoutHints(kLHintsTop | kLHintsExpandX));
-  // adding a horizontal line as a separator
-  fH3DLine = new TGHorizontal3DLine(this);
-  //   AddFrame(fH3DLine, new TGLayoutHints(kLHintsTop | kLHintsExpandX));
-  
-  fVFrame1->AddFrame(fH3DLine, new TGLayoutHints(kLHintsTop | kLHintsExpandX));
-  
-  fToolBar->Connect("Clicked(Int_t)", "AliAnalysisGUI", this, "HandleToolBar(Int_t)");
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::AddStatusBar() {
-  // Status Bar
-  Int_t parts[] = {40, 30, 30};
-  fStatusBar = new TGStatusBar(this, 50, 10, kHorizontalFrame);
-  fStatusBar->SetParts(parts, 3);
-  
-  AddFrame(fStatusBar, new TGLayoutHints(kLHintsBottom|kLHintsExpandX, 0,0,0,0));
-   
-  UserGroup_t * fUserGroup = gSystem->GetUserInfo();
-  char line [100];
-  
-  sprintf(line,"User : %s - %s", fUserGroup->fRealName.Data(), fUserGroup->fGroup.Data());
-  fStatusBar->SetText(line, 1);
-  
-  TGCompositeFrame *leftpart = fStatusBar->GetBarPart(2);
-  
-  if(!fIsConnected){
-    fStatusBar->SetText("      Disconnected", 2);
-    fRightIconPicture = (TGPicture *)fClient->GetPicture("proof_disconnected.xpm");
-  }
-  else{
-    fStatusBar->SetText("      Connected", 2);
-    fRightIconPicture = (TGPicture *)fClient->GetPicture("monitor01.xpm");
-  }
-  
-  fRightIcon = new TGIcon(leftpart, fRightIconPicture,fRightIconPicture->GetWidth(),fRightIconPicture->GetHeight());
-  leftpart->AddFrame(fRightIcon, new TGLayoutHints(kLHintsLeft, 2, 0, 0, 0)); 
-}
-
-//___________________________________________________________________________
-Bool_t AliAnalysisGUI::LogIn(const char * server, const char */*username*/) {
-  // Log in to AliEn
-  
-  //   fAlien = TGrid::Connect(server, username); 
-  fAlien = TGrid::Connect(server); 
-  
-  fIsConnected = gGrid;
-  if(fIsConnected){
-    fAliEnBrowser->AddItem(0, "/");
-    fStatusBar->SetText("      Connected", 2);
-    ChangeRightLogo("proof_connected.xpm");
-  }
-  
-  return fIsConnected;
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::ChangeRightLogo(const char *name) {
-  // Change the right logo (used for animation).
-  
-  fClient->FreePicture(fRightIconPicture);
-  fRightIconPicture = (TGPicture *)fClient->GetPicture(name);
-  fRightIcon->SetPicture(fRightIconPicture);
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::OnDoubleClick(TGListTreeItem* item, Int_t btn) {
-  // OnDoubleClick at the ListTree
-  
-  fAliEnBrowser->OnDoubleClick(item, btn);   
-  fFileListFrame->SetQueryPath(fAliEnBrowser->GetPath());
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::HandleMenu(Int_t id) {
-  // Handle menu items.
-  
-  const char *gAlifiletypes[] = { 
-    "ROOT files",    "*.root",
-    "ROOT macros",   "*.C",
-    "Text files",    "*.[tT][xX][tT]",
-    "All files",     "*",
-    0,               0 
-  };
-
-  switch (id) {
-  case kMFILELOGIN:
-    fLogInFrame = new AliLoginFrame(gClient->GetRoot(), this, 400, 200);
-    break;
-  case kMFILEOPEN: {
-    static TString dir(".");
-    TGFileInfo fi;
-    fi.fFileTypes = gAlifiletypes;
-    fi.fIniDir    = StrDup(dir);
-    new TGFileDialog(gClient->GetRoot(), this, kFDOpen, &fi);
-    printf("Open file: %s (dir: %s)\n", fi.fFilename, fi.fIniDir);
-    dir = fi.fIniDir;   
-  }
-    break;
-    
-  case kMFILESAVEAS:
-    
-    break;
-  case kMFILETAG:
-    // new TagFrame(gClient->GetRoot(), this, 400, 200, kHorizontalFrame, -1);
-    
-    break;     
-  case kMFILEEXIT:
-    CloseWindow();
-    break;
-  }
-}
-
-//___________________________________________________________________________
-void AliAnalysisGUI::HandleToolBar(Int_t id) {
-  // Handle menu items.
-  
-  switch (id) {
-  case kAliEnConnect:
-    
-    LogIn("alien://", "");
-    break;
-  case kAliEnHome:
-    if(gGrid){
-      fAliEnBrowser->GotoDir(gGrid->GetHomeDirectory());       
-      fFileListFrame->SetQueryPath(fAliEnBrowser->GetPath()); 
-    }
-    break;
-  case kExit:
-    CloseWindow();
-    break;
-  }
-}
diff --git a/ANALYSIS/Aliengui/AliAnalysisGUI.h b/ANALYSIS/Aliengui/AliAnalysisGUI.h
deleted file mode 100644 (file)
index 96734c6..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-#ifndef ALIANALYSISGUI_H
-#define ALIANALYSISGUI_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliAnalysisGUIFrame
-//   AliAnalysisGUI class that describes the overall analysis GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliAnalysisGUI                                //
-//                                                                      //
-//              Implementation fo the analysis GUI.                     //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGDockableFrame.h>
-#include <TGrid.h>
-
-class TGToolBar;
-class TGTab;
-class TGCanvas;
-class TGStatusBar;
-class TGPicture;
-class TGIcon;
-class TGListTreeItem;
-class TGPopupMenu;
-class TGMenuBar;
-class TGHorizontal3DLine;
-
-//GUI
-class AliFileListFrame;
-class AliLoginFrame;
-class AliAlienBrowser;
-class AliTagFrame;
-class AliPackageFrame;
-
-#include "AliTagAnalysisFrame.h"
-#include "AliSelectorFrame.h"
-
-enum ECommandIdentifiers {
-   kMFILELOGIN,
-   kMFILEOPEN,
-   kMFILESAVEAS,
-   kMFILETAG,
-   kMFILEEXIT
-};
-
-//___________________________________________________________________________
-class AliAnalysisGUI : public TGMainFrame {
-  
- public:
-  AliAnalysisGUI(const TGWindow *p, UInt_t w, UInt_t h);
-  ~AliAnalysisGUI();
-  
-  //___________________________________________________________________________
-  void   CloseWindow();
-  Bool_t LogIn(const char * server, const char* username="");
-  Bool_t IsConnected() const {return fIsConnected;}
-  
-  // slot
-  void   HandleMenu(Int_t id);
-  void   HandleToolBar(Int_t id);
-  void   OnDoubleClick(TGListTreeItem* item, Int_t btn);
-  
-  //___________________________________________________________________________
- private:
-  AliAnalysisGUI(const AliAnalysisGUI&);
-  AliAnalysisGUI& operator= (const AliAnalysisGUI&);
-  
-  // private methods
-  void AddMenuBar();
-  void AddToolBar();
-  void AddStatusBar();
-  void ChangeRightLogo(const char *name);
-  
-  TGHorizontalFrame   *fHFrame1; //horizontal frame
-  TGVerticalFrame     *fVFrame1, *fVFrame2; //verticla frames
-  TGDockableFrame     *fMenuDock; //main menu
-  TGPopupMenu         *fMenuFile; //main popup menu
-  TGMenuBar           *fMenuBar; //menu bar
-  TGToolBar           *fToolBar; //the button tool bar
-  TGTab               *fTab; //tab objects
-  TGLayoutHints       *fMenuBarLayout, *fMenuBarItemLayout; //layout
-  TGHorizontal3DLine  *fH3DLine; //3d line
-  TGCanvas            *fCanvas2; //canvas
-  TGStatusBar         *fStatusBar; //status bar
-  
-  AliAlienBrowser     *fAliEnBrowser; //the catalog browser
-  AliFileListFrame    *fFileListFrame; //the file list tab
-  AliLoginFrame       *fLogInFrame; //the login frame
-  AliTagFrame         *fTagFrame; //the tag frame
-  AliTagAnalysisFrame *fTagAnalysisFrame; //the event tag tab
-  AliPackageFrame     *fPackageFrame; //the package tab
-  AliSelectorFrame    *fSelectorFrame; //the selector tab
-  
-  const TGPicture     *fIcon; //picture
-  TGPicture           *fRightIconPicture; //picture
-  TGIcon              *fRightIcon; //icon
-  Bool_t               fIsConnected; //alien connected
-  TGrid               *fAlien; //api pointer
-   
-  ClassDef(AliAnalysisGUI, 0); // AliAnalysisGUI
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliAnalysisGUIdummy.cxx b/ANALYSIS/Aliengui/AliAnalysisGUIdummy.cxx
deleted file mode 100644 (file)
index 20a6c11..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "AliAnalysisGUIdummy.h"
-ClassImp(AliAnalysisGUI)
diff --git a/ANALYSIS/Aliengui/AliAnalysisGUIdummy.h b/ANALYSIS/Aliengui/AliAnalysisGUIdummy.h
deleted file mode 100644 (file)
index 4dcbe0d..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef ALIANALYSISGUIDUMMY_H
-#define ALIANALYSISGUIDUMMY_H
-
-#include <cstdlib>
-#include <TGFrame.h>
-#include <AliLog.h>
-
-class TGWindow;
-
-//___________________________________________________________________________
-class AliAnalysisGUI : public TGMainFrame {
-  
- public:
-  AliAnalysisGUI(const TGWindow *, UInt_t , UInt_t ) {
-    AliError("No XML support in Root! Exit...");
-    exit(1);
-  }
-  ~AliAnalysisGUI(){}
-
-  ClassDef(AliAnalysisGUI, 0); // AliAnalysisGUI
-};
-
-#endif
-
-
diff --git a/ANALYSIS/Aliengui/AliFileListFrame.cxx b/ANALYSIS/Aliengui/AliFileListFrame.cxx
deleted file mode 100644 (file)
index 7f65873..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliFileListFrame class
-//   The class that deals with the file list frame of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-#include <TFile.h>
-#include <TGLabel.h>
-#include <TGListView.h>
-#include <TGMsgBox.h>
-#include <TGNumberEntry.h>
-#include <TGTableLayout.h>
-#include <TGTextEntry.h>
-#include <TGrid.h>
-#include <TGridResult.h>
-#include <TObjArray.h>
-#include <TObjString.h>
-
-#include "AliFileListFrame.h"
-
-ClassImp(AliFileListFrame)
-
-//___________________________________________________________________________
-AliFileListFrame::AliFileListFrame(const TGWindow *main, UInt_t w, UInt_t h): 
-  TGCompositeFrame(main, w, h), 
-  fHFrame1(0), fVFrame1(0), fVFrame2(0),
-  fHFrame2(0), fLabel1(0), fLabel2(0), fLabel3(0),
-  fTextQueryPath(0), fNumMaxResults(0), fTextQueryPattern(0),
-  fButtonRun(0), fContents(0), fCanvas(0),
-  fTableLayout(0), fTags(0) {
-  // Creates a composite frame containing a filelist widget.
-   
-  // use hierarchical cleaning
-  SetCleanup(kDeepCleanup);
-  
-  fHFrame1 = new TGHorizontalFrame(this, 300, 100, kFixedWidth);
-  AddFrame(fHFrame1, new TGLayoutHints(kLHintsTop|kLHintsExpandX));
-  
-  
-  BuildQueryPathFrame();
-  
-  // creates the Tags for Query display
-  
-  fTags = new TObjArray();
-  
-  fTags->Add(new TObjString("type"));
-  fTags->Add(new TObjString("owner"));
-  fTags->Add(new TObjString("gowner"));
-  fTags->Add(new TObjString("perm"));
-  fTags->Add(new TObjString("size"));
-  fTags->Add(new TObjString("ctime"));
-  fTags->Add(new TObjString("lfn"));
-  
-  Pixel_t white;
-  gClient->GetColorByName("white", white);
-  
-  fCanvas = new TGCanvas(this, 300, 300, kFixedWidth);
-  fContents = new TGCompositeFrame(fCanvas->GetViewPort(), 300, 300, 
-                                  kSunkenFrame | kFixedWidth, white);
-  
-  fCanvas->SetContainer(fContents);
-  AddFrame(fCanvas, new TGLayoutHints(kLHintsBottom|kLHintsExpandX, 5,5,5,0));
-  
-  MapSubwindows();
-  MapWindow();
-  Resize();
-}
-
-//___________________________________________________________________________
-AliFileListFrame::~AliFileListFrame() {
-  // AliFileListFrame Destructor
-  // Cleanup.
-  
-  delete fContents;
-  DeleteWindow();  // deletes fMain
-}
-
-//___________________________________________________________________________
-void AliFileListFrame::SetQueryPath(const char* path) {
-  // Set the Query Path
-  fTextQueryPath->SetText(path);
-}
-
-//___________________________________________________________________________
-const char* AliFileListFrame::GetQueryPath() {
-  // Get the Query Path
-  return fTextQueryPath->GetText();
-}
-
-//___________________________________________________________________________
-const char* AliFileListFrame::GetQueryPattern() {
-  // Get the Query Patttern
-  return fTextQueryPattern->GetText();
-}
-
-//___________________________________________________________________________
-void AliFileListFrame::BuildQueryPathFrame() {
-  // Build the Query Path Frame
-  
-  fHFrame1 = new TGHorizontalFrame(this, 100, 100, kRaisedFrame);
-  AddFrame(fHFrame1, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fVFrame1 = new TGVerticalFrame(fHFrame1, 100, 50);
-  fHFrame1->AddFrame(fVFrame1, new TGLayoutHints(kLHintsLeft, 5,5,5,5));  
-  
-  fVFrame2 = new TGVerticalFrame(fHFrame1, 100, 50);
-  fHFrame1->AddFrame(fVFrame2, new TGLayoutHints(kLHintsRight, 5,5,5,5));
-  
-  // fVFrame1, for the labels   
-  
-  fLabel1 = new TGLabel(fVFrame1, new TGString("Query Path"));
-  fVFrame1->AddFrame(fLabel1, new TGLayoutHints(kLHintsTop, 5,5,10,5));
-  
-  fLabel2 = new TGLabel(fVFrame1, new TGString("Query Pattern"));
-  fVFrame1->AddFrame(fLabel2, new TGLayoutHints(kLHintsCenterY, 5,5,10,5));
-  
-  fLabel3 = new TGLabel(fVFrame1, new TGString("Max. Results"));
-  fVFrame1->AddFrame(fLabel3, new TGLayoutHints(kLHintsCenterY, 5,5,10,5));
-   
-  // fVFrame2 for the text boxes
-  
-  fTextQueryPath = new TGTextEntry(fVFrame2, new TGTextBuffer(50));
-  fTextQueryPath->SetEnabled(false);
-  fVFrame2->AddFrame(fTextQueryPath, 
-                    new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fTextQueryPattern = new TGTextEntry(fVFrame2, new TGTextBuffer(20), 0);
-  fVFrame2->AddFrame(fTextQueryPattern, 
-                    new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  fTextQueryPattern->SetText("*.root");
-  
-  fNumMaxResults = new TGNumberEntry(fVFrame2, 100);
-  fNumMaxResults->SetLimits(TGNumberFormat::kNELLimitMin, 0);
-  fVFrame2->AddFrame(fNumMaxResults, 
-                    new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fButtonRun =  new TGTextButton(fVFrame2, "          Run         ", 0);
-  fVFrame2->AddFrame(fButtonRun, 
-                    new TGLayoutHints(kLHintsRight, 0,5,0,0));
-  
-  fButtonRun->Connect("Clicked()", "AliFileListFrame", this, "RunQuery()");
-}
-
-//___________________________________________________________________________
-void AliFileListFrame::RunQuery() {
-  // Run Query
-  
-  if(!gGrid)
-    return;
-  
-  SetCleanup(kDeepCleanup);   
-  
-  fContents->Cleanup();
-  
-  TGridResult *result = gGrid->Query(GetQueryPath(), GetQueryPattern());
-  
-  if(!result)
-    return;
-
-  int nrows = result->GetEntries();
-  int ncols = fTags->GetEntries();
-  
-  if(nrows == 0){ // there is nothing to show
-    TString msg = TString("The query of \"");
-    (msg+=GetQueryPattern())+="\" pattern is empty ";
-    new TGMsgBox(gClient->GetRoot(), this, "Empty query", msg.Data(), 0, kMBOk);
-    return;
-  }
-  
-  //if(fTableLayout != NULL) delete fTableLayout;
-  fTableLayout = new TGTableLayout(fContents, nrows+1, ncols);
-  fContents->SetLayoutManager(fTableLayout);
-  
-  Pixel_t white;
-  gClient->GetColorByName("white", white);
-  
-  TObjString * tag;
-  
-  for (int i=0; i < ncols; i++) {
-    for (int j=0; j < nrows; j++) {
-      tag = (TObjString*) (fTags->At(i));
-      TGLabel * label = 
-       new TGLabel(fContents, new TGString(result->GetKey(j,tag->GetName())));        
-      label->SetBackgroundColor(white);
-      TGTableLayoutHints *thint = 
-       new TGTableLayoutHints(i,i+1,j+1,j+2, kLHintsExpandX | kLHintsLeft, 5,30,5,5);
-      fContents->AddFrame(label,thint);        
-    }//for_j
-  }//for_i
-  
-  for (int j=0; j < ncols; j++) {
-    tag = (TObjString*) (fTags->At(j));
-    TGTextButton * button = new TGTextButton(fContents, tag->GetName(), 0);
-    TGTableLayoutHints *thint = 
-      new TGTableLayoutHints(j,j+1,0,1, kLHintsFillX, 0,0,0,0);
-    fContents->AddFrame(button,thint);
-  }
-  
-  MapSubwindows();
-  MapWindow();
-  
-  Resize();
-}
-
-//___________________________________________________________________________
-void AliFileListFrame::DisplayObject(const TString& fname,const TString& name) const {
-  // Browse object located in file.
-  
-  TDirectory *sav = gDirectory;
-  
-  static TFile *file = 0;
-  if (file) delete file;     // close
-  file = new TFile(fname);   // reopen
-  
-  TObject* obj = file->Get(name);
-  if (obj) {
-    if (!obj->IsFolder()) {
-      obj->Browse(0);
-    } else obj->Print();
-  }
-  gDirectory = sav;
-}
-
-//___________________________________________________________________________
-void AliFileListFrame::OnDoubleClick(TGLVEntry *f, Int_t btn) {
-  // Handle double click.
-  
-  if (btn != kButton1) return;
-  
-  // set kWatch cursor
-  ULong_t cur = gVirtualX->CreateCursor(kWatch);
-  gVirtualX->SetCursor(fContents->GetId(), cur);
-  
-  TString name(f->GetTitle());
-  const char* fname = (const char*)f->GetUserData();
-  
-  if (fname) {
-    DisplayObject(fname, name);
-  } else if (name.EndsWith(".root")) {
-    //      DisplayFile(name);
-  } else {
-    // DisplayDirectory(name);
-  }
-  
-  // set kPointer cursor
-  cur = gVirtualX->CreateCursor(kPointer);
-  gVirtualX->SetCursor(fContents->GetId(), cur);
-}
-
diff --git a/ANALYSIS/Aliengui/AliFileListFrame.h b/ANALYSIS/Aliengui/AliFileListFrame.h
deleted file mode 100644 (file)
index a9f6136..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#ifndef ALIFILELISTFRAME_H
-#define ALIFILELISTFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliFileListFrame
-//   AliFileListFrame class that describes the file list frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliFileListFrame                              //
-//                                                                      //
-//                      File list frame of the GUI.                     //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGFrame.h>
-class TGCanvas;
-
-class TGHorizontalFrame;
-class TGVerticalFrame;
-class TGHorizontalFrame;
-class TGLabel;
-class TGTextEntry;
-class TGNumberEntry;
-class TGTextEntry;
-class TGButton;
-class TGCompositeFrame;
-class TGCanvas;
-class TGTableLayout;
-class TGLVEntry;
-  
-class TObjArray;
-
-//___________________________________________________________________________
-class AliFileListFrame : public TGCompositeFrame {
- public:
-  AliFileListFrame(const TGWindow *main, UInt_t w, UInt_t h);
-  ~AliFileListFrame();
-  
-  void        SetQueryPath(const char* path);
-  const char* GetQueryPath();
-  const char* GetQueryPattern();
-  
-  // slots
-  void OnDoubleClick(TGLVEntry* entry, Int_t btn);
-  void RunQuery();
-  
-  //___________________________________________________________________________
- private:
-  AliFileListFrame(const AliFileListFrame&); // cp ctor
-  AliFileListFrame& operator= (AliFileListFrame&); // op= 
-
-  // private methods
-  TGHorizontalFrame   *fHFrame1; //horiz. frame 
-  TGVerticalFrame     *fVFrame1, *fVFrame2; //vertical frames
-  
-  // VFrame1's widgets
-  TGHorizontalFrame   *fHFrame2;  //vertical frame
-  TGLabel             *fLabel1, *fLabel2, *fLabel3; //labels
-  TGTextEntry         *fTextQueryPath; //text box
-  TGNumberEntry       *fNumMaxResults; //results
-  TGTextEntry         *fTextQueryPattern; //query pattern
-  TGButton            *fButtonRun; //run button
-  TGCompositeFrame    *fContents; //frame
-  TGCanvas            *fCanvas; //canvas
-  TGTableLayout       *fTableLayout; //layout
-  
-  TObjArray           *fTags; // File "detail" mode tags 
-  
-  void DisplayObject(const TString& fname,const TString& name) const;
-  void BuildQueryPathFrame();
-
-  AliFileListFrame & operator=(const AliFileListFrame & ) {return *this;}
-
-  ClassDef(AliFileListFrame, 0) // AliFileListFrame  
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliLoginFrame.cxx b/ANALYSIS/Aliengui/AliLoginFrame.cxx
deleted file mode 100644 (file)
index 34df8e0..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliLoginFrame class
-//   The class that deals with the login frame of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-#include "TGLabel.h"
-#include "TGTextBuffer.h"
-#include "TGTextEntry.h"
-#include "TGridResult.h"
-#include "TTimer.h"
-#include "TGMsgBox.h"
-
-#include "TGrid.h"
-
-#include "AliAnalysisGUI.h"
-#include "AliLoginFrame.h"
-
-ClassImp(AliLoginFrame)
-
-//___________________________________________________________________________
-AliLoginFrame::AliLoginFrame(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options) : 
-  TGTransientFrame(p, main, w, h, options),
-  fLabel1(0), fLabel2(0),
-  fTextServer(0), fTextUsername(0),
-  fButtonLogIn(0), fButtonCancel(0),
-  fVFrame1(0),
-  fHFrame1(0), fHFrame2(0), fHFrame3(0) {
-  // Constructor.
-
-  SetWindowName("Login");
-
-  // create the Vertical Frame for the text fields and buttons
-  fVFrame1 = new TGVerticalFrame(this, 400, 150, kFixedWidth);
-
-  // create the Horizontal Frame 1 
-  fHFrame1 = new TGHorizontalFrame(this, 400, 50, kFixedWidth);
-
-  fLabel1 = new TGLabel(fHFrame1, new TGString("Server"));
-  fTextServer = new TGTextEntry(fHFrame1, new TGTextBuffer(35));
-  fTextServer->SetText("alien://");
-  
-  fHFrame1->AddFrame(fLabel1, 
-                    new TGLayoutHints(kLHintsLeft | kLHintsTop, 5, 5, 5, 5));
-  fHFrame1->AddFrame(fTextServer, 
-                    new TGLayoutHints(kLHintsRight | kLHintsTop, 5, 5, 5, 5));
-  
-  fVFrame1->AddFrame(fHFrame1,new TGLayoutHints(kLHintsTop));
-  
-  // Create the Horizontal for the buttons
-  fHFrame3 = new TGHorizontalFrame(this, 400, 50, kFixedWidth);
-  
-  fButtonLogIn = new TGTextButton(fHFrame3, "Log In", 1);
-  fButtonLogIn->Connect("Clicked()", "AliLoginFrame", this, "DoLogIn()");
-  
-  fButtonCancel = new TGTextButton(fHFrame3, "Cancel", 2);
-  fButtonCancel->Connect("Clicked()", "AliLoginFrame", this, "DoCancel()");
-  
-  fHFrame3->AddFrame(fButtonLogIn,new TGLayoutHints
-                    (kLHintsCenterY | kLHintsLeft | kLHintsExpandX, 2, 2, 2, 2));
-  fHFrame3->AddFrame(fButtonCancel,new TGLayoutHints
-                    (kLHintsCenterY | kLHintsRight | kLHintsExpandX, 2, 2, 2, 2));
-  
-  fHFrame3->Resize();
-  
-  fVFrame1->AddFrame(fHFrame3, new TGLayoutHints(kLHintsBottom)); 
-  
-  AddFrame(fVFrame1, new TGLayoutHints(kLHintsTop)); 
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-AliLoginFrame::~AliLoginFrame() {
-  // Destructor.
-  
-  DeleteWindow();
-  SetCleanup(kDeepCleanup);
-}
-
-//___________________________________________________________________________
-void AliLoginFrame::DoLogIn() {
-  // When LogIn Button is pressed.
-  
-  AliAnalysisGUI * fAnalysisGUI = dynamic_cast<AliAnalysisGUI*> (const_cast<TGWindow*> (GetMain()));
-  
-  fAnalysisGUI->LogIn(fTextServer->GetText());
-  
-  if(gGrid) {
-    TGridResult* result = gGrid->Command("motd",kFALSE,0);
-    int i=0;
-    const char* line="";
-    TString * msg = new TString();
-    while ((line=result->GetKey(i++,""))) {      
-      msg->Append(line);
-      msg->Append("\n");
-    }
-    new TGMsgBox(gClient->GetRoot(), this, "Welcome", msg->Data(), 0, kMBOk);
-    TTimer::SingleShot(1, "AliLoginFrame", this, "CloseWindow()");
-  }
-}
-
-//___________________________________________________________________________
-void AliLoginFrame::DoCancel() {
-  // When Cancel button is pressed.
-
-  TTimer::SingleShot(150, "AliLoginFrame", this, "CloseWindow()");
-}
diff --git a/ANALYSIS/Aliengui/AliLoginFrame.h b/ANALYSIS/Aliengui/AliLoginFrame.h
deleted file mode 100644 (file)
index 70e78b2..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef ALILOGINFRAME_H
-#define ALILOGINFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliLoginFrame
-//   AliPackageFrame class that describes the login frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliLoginFrame                                 //
-//                                                                      //
-//                      Login frame of the GUI.                         //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGFrame.h>
-
-class TGLabel;
-class TGButton;
-class TGTextEntry;
-class TGVerticalFrame;
-class TGHorizontalFrame;
-
-//___________________________________________________________________________
-class AliLoginFrame : public TGTransientFrame {
-  
- public:
-  AliLoginFrame(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options = kVerticalFrame);
-  ~AliLoginFrame();
-  
-  void DoLogIn();
-  void DoCancel();
-  
-  //___________________________________________________________________________
- private:
-  AliLoginFrame(const AliLoginFrame&); // cp ctor
-  AliLoginFrame& operator= (const AliLoginFrame&); // op=
-  
-  TGLabel            *fLabel1, *fLabel2; //labels
-  TGTextEntry        *fTextServer, *fTextUsername; //server - username text box
-  TGButton           *fButtonLogIn, *fButtonCancel; //login & cancel buttons
-  TGVerticalFrame    *fVFrame1; //vertical frame
-  TGHorizontalFrame  *fHFrame1, *fHFrame2, *fHFrame3; //horizontal frames
-  
-  ClassDef(AliLoginFrame, 0); // LogIn Frame
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliPackageFrame.cxx b/ANALYSIS/Aliengui/AliPackageFrame.cxx
deleted file mode 100644 (file)
index 35d45a8..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliPackageFrame class
-//   The class that deals with the package tab of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-
-#include <TGButton.h>
-#include <TGFileDialog.h>
-#include <TGLabel.h>
-#include <TGTextEntry.h>
-#include <TObjArray.h>
-#include <TObjString.h>
-#include <TROOT.h>
-#include <TSystem.h>
-
-#include "AliAnalysisGUI.h"
-#include "AliPackageFrame.h"
-
-ClassImp(AliPackageFrame)
-
-//___________________________________________________________________________
-  AliPackageFrame::AliPackageFrame (const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI * v): 
-    TGHorizontalFrame(main, w, h), 
-    fVFrame1(0), fVFrame2(0),
-    fLabel1(0), fTextPackage(0), fButtonSelect(0), fButtonBuild(0),
-    fAliAnalysisGUI(v) {
-   // ctor.
-  
-   fVFrame1 = new TGVerticalFrame(this, 100, 100);
-   AddFrame(fVFrame1, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-
-   fLabel1 = new TGLabel(fVFrame1, new TGString("PAR file"));
-   fVFrame1->AddFrame(fLabel1, new TGLayoutHints(kLHintsTop, 5,5,10,5));
-   
-   fTextPackage = new TGTextEntry(fVFrame1, new TGTextBuffer(50));
-   fVFrame1->AddFrame(fTextPackage, new TGLayoutHints(kLHintsBottom, 5,5,5,5));
-   fTextPackage->SetEnabled(false);
-
-   fVFrame2 = new TGVerticalFrame(this, 100, 200);
-   AddFrame(fVFrame2, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-
-   fButtonSelect = new TGTextButton(fVFrame2, "Select...", 1);
-   fVFrame2->AddFrame(fButtonSelect,  new TGLayoutHints(kLHintsExpandX | kLHintsTop, 5,5,5,5));
-   fButtonSelect->Connect("Clicked()", "AliPackageFrame", this, "OnSelect()");
-
-   fButtonBuild = new TGTextButton(fVFrame2, "Build...", 2);
-   fVFrame2->AddFrame(fButtonBuild,  new TGLayoutHints(kLHintsExpandX | kLHintsBottom, 5,5,5,5));
-
-   fButtonBuild->Connect("Clicked()", "AliPackageFrame", this, "OnBuild()");
-
-   MapWindow();
-   Resize();
-   MapSubwindows();
-}
-
-//___________________________________________________________________________
-void AliPackageFrame::OnSelect() {
-   // When Select button is pressed.
-   const char *filetypes[] = { 
-     "PAR files",    "*.par",
-     0,               0 
-   };
-
-
-   static TString dir(".");
-   TGFileInfo fi;
-   fi.fFileTypes = filetypes;
-   fi.fIniDir    = StrDup(dir);
-
-   new TGFileDialog(gClient->GetRoot(), fAliAnalysisGUI, kFDOpen, &fi);
-
-   fTextPackage->SetText(fi.fFilename);
-
-}
-
-//___________________________________________________________________________
-void AliPackageFrame::OnBuild() {
-
-   // When Build button is pressed.  
-
-   TString fname (fTextPackage->GetText());
-
-   TObjArray *a = fname.Tokenize("/");
-   TObjString * ostr = (TObjString*)a->At(a->GetEntries()-1);
-
-   CreatePARFile(ostr->GetString().Data());
-
-}
-
-//___________________________________________________________________________
-void AliPackageFrame::CreatePARFile(const char* pararchivename) {
-   // Create PAR file
-
-   if (pararchivename) {
-     char processline[1024];
-     //     sprintf(processline,".! tar xvzf ../tags/%s.par",pararchivename);
-     sprintf(processline,".! tar xvzf %s",pararchivename);
-     gROOT->ProcessLine(processline);
-
-     //    const char* ocwd = gSystem->WorkingDirectory();
-     gSystem->ChangeDirectory("ESD");
-
-     // check for BUILD.sh and execute
-     if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
-       printf("*******************************\n");
-       printf("*** Building PAR archive    ***\n");
-       printf("*******************************\n");
-       if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
-        Error("batchSelector","Cannot Build the PAR Archive! - Abort!");
-        return;
-       }           
-
-       if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
-
-        printf("*******************************\n");
-        printf("*** Setup PAR archive       ***\n");
-        printf("*******************************\n");
-
-        gROOT->Macro("PROOF-INF/SETUP.C");
-       }
-
-       gSystem->ChangeDirectory("../");
-
-     }
-
-   }
-}
diff --git a/ANALYSIS/Aliengui/AliPackageFrame.h b/ANALYSIS/Aliengui/AliPackageFrame.h
deleted file mode 100644 (file)
index bc1da24..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef ALIPACKAGEFRAME_H
-#define ALIPACKAGEFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliPackageFrame
-//   AliPackageFrame class that describes the package frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliPackageFrame                               //
-//                                                                      //
-//                      Package tab of the GUI.                         //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGFrame.h>
-
-class TGLabel;
-class TGVerticalFrame;
-class TGTextEntry;
-class TGButton;
-
-class AliAnalysisGUI;
-
-//___________________________________________________________________________
-class AliPackageFrame : public TGHorizontalFrame {
-
- public:
-  AliPackageFrame(const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI*);
-   
-  //___________________________________________________________________________
-  //slots
-  void OnBuild();
-  void OnSelect();
-
-  //___________________________________________________________________________
- private:
-  AliPackageFrame(const AliPackageFrame&);
-  AliPackageFrame& operator= (const AliPackageFrame&);
-  
-  void CreatePARFile(const char* parfile);
-  
-  TGVerticalFrame     *fVFrame1, *fVFrame2; //vertical frames 
-  TGLabel             *fLabel1;  //package label  
-  TGTextEntry         *fTextPackage; //package text box
-  TGButton            *fButtonSelect; //select button
-  TGButton            *fButtonBuild; //run button
-  
-  AliAnalysisGUI      *fAliAnalysisGUI; //analysis gui pointer
-  
-  ClassDef(AliPackageFrame, 0); // AliPackageFrame
-};
-
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliSelectorFrame.cxx b/ANALYSIS/Aliengui/AliSelectorFrame.cxx
deleted file mode 100644 (file)
index dec1eca..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliSelectorFrame class
-//   The class that deals with the selector tab of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-
-#include <TGFileDialog.h>
-#include <TGLabel.h>
-#include <TGTextEntry.h>
-#include <TObjArray.h>
-#include <TObjString.h>
-
-#include "AliTagAnalysisFrame.h"
-#include "AliAnalysisGUI.h"
-
-#include "AliSelectorFrame.h"
-
-ClassImp(AliSelectorFrame)
-
-//___________________________________________________________________________
-AliSelectorFrame::AliSelectorFrame(const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI *v, AliTagAnalysisFrame* t): 
-  TGHorizontalFrame(main, w, h), 
-  fVFrame1(0), fVFrame2(0),
-  fLabel1(0), fTextSelector(0), fButtonSelect(0), fButtonRun(0),
-  fAliAnalysisGUI(v), fTagAnalysisFrame(t) {
-  // ctor.
-  
-  fVFrame1 = new TGVerticalFrame(this, 100, 100);
-  AddFrame(fVFrame1, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-  
-  fLabel1 = new TGLabel(fVFrame1, new TGString("Selector macro"));
-  fVFrame1->AddFrame(fLabel1, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fTextSelector = new TGTextEntry(fVFrame1, new TGTextBuffer(50));
-  fVFrame1->AddFrame(fTextSelector, new TGLayoutHints(kLHintsBottom, 5,5,10,5));
-  fTextSelector->SetEnabled(false);
-  
-  fVFrame2 = new TGVerticalFrame(this, 100, 100);
-  AddFrame(fVFrame2, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-  
-  fButtonSelect = new TGTextButton(fVFrame2, "Select...", 1);
-  fVFrame2->AddFrame(fButtonSelect,  new TGLayoutHints(kLHintsExpandX | kLHintsTop, 5,5,5,5));
-  fButtonSelect->Connect("Clicked()", "AliSelectorFrame", this, "OnSelect()");
-  
-  fButtonRun = new TGTextButton(fVFrame2, "Run", 2);
-  fVFrame2->AddFrame(fButtonRun,  new TGLayoutHints(kLHintsExpandX | kLHintsBottom, 5,5,5,5));
-  
-  fButtonRun->Connect("Clicked()", "AliSelectorFrame", this, "OnRun()");
-  
-  MapWindow();
-  Resize();
-  MapSubwindows();
-}
-
-//___________________________________________________________________________
-AliSelectorFrame::AliSelectorFrame(const AliSelectorFrame& /*frame*/):
-  TGHorizontalFrame(), 
-  fVFrame1(0),
-  fVFrame2(0),
-  fLabel1(0),
-  fTextSelector(0),
-  fButtonSelect(0),
-  fButtonRun(0),
-  fAliAnalysisGUI(0),
-  fTagAnalysisFrame(0)
-{
-  //copy constructor
-}
-
-//___________________________________________________________________________
-void AliSelectorFrame::OnSelect() {
-  // When Select button is pressed.
-
-  const char *filetypes[] = { 
-    "macro files",    "*.C",
-    0,               0 
-  };
-  
-  static TString dir(".");
-  TGFileInfo fi;
-  fi.fFileTypes = filetypes;
-  fi.fIniDir    = StrDup(dir);
-  
-  new TGFileDialog(gClient->GetRoot(), fAliAnalysisGUI, kFDOpen, &fi);
-  
-  fTextSelector->SetText(fi.fFilename);
-}
-
-//___________________________________________________________________________
-void AliSelectorFrame::OnRun() {
-  // Run the Analysis Selector
-  
-  TString fname (fTextSelector->GetText());
-
-  TObjArray *a = fname.Tokenize("/");
-  TObjString * ostr = (TObjString*)a->At(a->GetEntries()-1);
-  
-  fTagAnalysisFrame->ProcessSelector(ostr->GetString().Data());
-  
-  delete a;
-}
diff --git a/ANALYSIS/Aliengui/AliSelectorFrame.h b/ANALYSIS/Aliengui/AliSelectorFrame.h
deleted file mode 100644 (file)
index 5284a94..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef ALISELECTORFRAME_H
-#define ALISELECTORFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliSelectorFrame
-//   AliSelectorFrame class that describes the selector frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliSelectorFrame                              //
-//                                                                      //
-//                      Selector tab of the GUI.                        //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGFrame.h>
-
-class TGCanvas;
-class TGVerticalFrame;
-class TGTextEntry;
-class TGButton;
-class TGLabel;
-
-class AliAnalysisGUI;
-
-//___________________________________________________________________________
-class AliSelectorFrame : public TGHorizontalFrame {
-
- public:
-  AliSelectorFrame(const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI*, AliTagAnalysisFrame*);
-  AliSelectorFrame(const AliSelectorFrame& fSelectorFrame);
-
-  //___________________________________________________________________________
-  //slots
-  void OnSelect();
-  void OnRun();
-
-  //___________________________________________________________________________
- private:
-  TGVerticalFrame     *fVFrame1, *fVFrame2; //vertical frames
-  TGLabel             *fLabel1; //macro label
-  TGTextEntry         *fTextSelector; //selector text box
-  TGButton            *fButtonSelect; //select button
-  TGButton            *fButtonRun; //run button
-  
-  AliAnalysisGUI      *fAliAnalysisGUI; //analysis gui pointer
-  AliTagAnalysisFrame *fTagAnalysisFrame; //tag frame pointer
-  
-  AliSelectorFrame & operator=(const AliSelectorFrame & ) {return *this;}
-
-  ClassDef(AliSelectorFrame, 0); // SelectorFrame
-};
-
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliTagAnalysisFrame.cxx b/ANALYSIS/Aliengui/AliTagAnalysisFrame.cxx
deleted file mode 100644 (file)
index dde4b7b..0000000
+++ /dev/null
@@ -1,458 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliTagAnalysisFrame class
-//   The class that deals with the event tag tab of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-#include "TGTextEntry.h"
-#include "TGLabel.h"
-#include "TGMsgBox.h"
-#include "TGListBox.h"
-#include "TGComboBox.h"
-
-#include "TSystem.h"
-#include "TChain.h"
-#include "TGrid.h"
-#include "TGridResult.h"
-#include "TEventList.h"
-
-#include "AliRunTagCuts.h"
-#include "AliLHCTagCuts.h"
-#include "AliDetectorTagCuts.h"
-#include "AliEventTagCuts.h"
-#include "AliTagAnalysis.h"
-
-#include "AliAnalysisGUI.h"
-#include "AliAlienBrowser.h"
-#include "AliTagFrame.h"
-#include "AliTagAnalysisFrame.h"
-
-ClassImp(AliTagAnalysisFrame)
-
-//___________________________________________________________________________
-AliTagAnalysisFrame::AliTagAnalysisFrame(const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI* aliAnalysisGUI): 
-  TGMainFrame(main, w, h, kHorizontalFrame), 
-  fkNumberOfTags(3), 
-  fVFrame1(0), fVFrame2(0),
-  fGroup1(0), fGroup2(0), fGroup3(0),
-  fAliAnalysisGUI(aliAnalysisGUI),
-  fTagFrame(0), fAliEnBrowser(0),
-  fLocalLabel1(0), fLocalPath(0),
-  fLocalButton(0), fButtonInsert(0), fButtonRun(0),
-  fComboEventTagCut(0), fGridLabel1(0),
-  fGridPath(0), fGridButton(0), fButtonInsert2(0), fButtonRun2(0),
-  fComboEventTagCut2(0), fTagResult(0),
-  fAnalysisChain(0), fListBox(0),
-  fBrowser(NULL), fBrowserButton(NULL),
-  fAliTagAnalysis(0), fAliRunCuts(0), fAliLHCCuts(0), 
-  fAliDetectorCuts(0), fAliEventCuts(0), fEventTagCutsName(0) {
-   // Constructor.
-
-/*
-   // lazy initialization to fEventTagCutsName
-   const char *tmp[] ={ "Vx", "Vy", "Vz", "Participants", "Impact parameter", "Primary vertex",
-                      "ZDC - neutron 1", "ZDC - proton 1", "ZDC - neutron 2", "ZDC - proton 2",
-                      "ZDC EM", "TO VertexZ",
-                      "Multiplicity", "Positive Multiplicity", "Negative Multiplicity", 
-                      "Neutral Multiplicity", "VO", "Cascades", "Kinks", 
-                      "Jet Energy", "Hard Photons Candidates", "Neutral Energy", 
-                      "Charged above 1 GeV", "Charged above 3 GeV", "Charged above 10 GeV",
-                      "Muons above 1 GeV", "Muons above 3 GeV", "Muons above 10 GeV", 
-                      "Electron above 1 GeV", "Electron above 3 GeV", "Electron above 10 GeV",
-                      "Electrons range", "Muons range", "Pions range", "Kaons range", 
-                      "Protons range", "Lambda range", "Photons range", "PiOs range", 
-                      "Neutrons range", "KaonOs range"
-   };
- */
-
-  const char *tmp[] = {"MultiplicityRange","VOsRange", "NPionRange" };
-  fEventTagCutsName = tmp;
-  
-  //   fEventTagCutsName = new TList();
-  
-  // fEventTagCutsName[0] = "NegMultiplicityRange";
-  //    fEventTagCutsName[1] = "VOsRange";
-  //   fEventTagCutsName[2] = "NPionRange";
-
-  fVFrame1 = new TGVerticalFrame(this, 200, 150);
-  this->AddFrame(fVFrame1, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-  
-  //  Local Group
-  fGroup1 = new TGGroupFrame(fVFrame1, "Local", kVerticalFrame);
-  fGroup1->SetTitlePos(TGGroupFrame::kLeft); // left aligned
-  fVFrame1->AddFrame(fGroup1, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  BuildLocalGroup(fGroup1);
-  
-  //  Grid Group
-  fGroup2 = new TGGroupFrame(fVFrame1, "Grid", kVerticalFrame);
-  fGroup2->SetTitlePos(TGGroupFrame::kLeft); // left aligned
-  fVFrame1->AddFrame(fGroup2, new TGLayoutHints(kLHintsBottom, 5,5,5,5));
-  
-  BuildGridGroup(fGroup2);
-  
-  // Vertical Frame 2
-  
-  fVFrame2 = new TGVerticalFrame(this, 200, 200);
-  AddFrame(fVFrame2, new TGLayoutHints(kLHintsRight| kLHintsExpandX 
-                                      | kLHintsExpandY, 5,5,5,5));
-  
-  fGroup3 = new TGGroupFrame(fVFrame2, "Results", 
-                            kVerticalFrame | kFitWidth | kFitHeight);
-  fGroup3->SetTitlePos(TGGroupFrame::kLeft); // left aligned
-  fVFrame2->AddFrame(fGroup3, 
-                    new TGLayoutHints(kLHintsTop | kLHintsExpandX 
-                                      | kLHintsExpandY, 5,5,5,5));      
-  
-  fListBox = new TGListBox(fGroup3); 
-  fGroup3->AddFrame(fListBox, 
-                   new TGLayoutHints(kLHintsTop | kLHintsExpandX |
-                                     kLHintsExpandY, 5,5,5,5));  
-  
-  fAliTagAnalysis = new AliTagAnalysis(); 
-  fAliRunCuts = new AliRunTagCuts();
-  fAliLHCCuts = new AliLHCTagCuts();
-  fAliDetectorCuts = new AliDetectorTagCuts();
-  fAliEventCuts = new AliEventTagCuts();
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();
-}
-
-//___________________________________________________________________________
-AliTagAnalysisFrame::~AliTagAnalysisFrame() {
-  // AliTagAnalysisFrame dctor.
-  
-  delete fGroup1;
-  delete fLocalLabel1;
-  delete fLocalPath;
-  delete fLocalButton;
-  delete fGroup2;
-  delete fGridLabel1;
-  delete fGridPath;
-  delete fGridButton;
-  
-  delete fAliTagAnalysis;
-  delete fAliRunCuts;
-  delete fAliLHCCuts;
-  delete fAliDetectorCuts;
-  delete fAliEventCuts;
-  delete fTagResult;
-  delete fAnalysisChain;
-  
-  delete fTagFrame;
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::AddResult (const char* line) {
-  // Add a new line in the result group box.
-  
-  //    fGroup3->AddFrame(new TGLabel(fGroup3, new TGString(line)), 
-  //                new TGLayoutHints(kLHintsTop, 5,5,5,5));  
-  
-  fListBox->AddEntry(line, fListBox->GetNumberOfEntries()); 
-  
-  MapSubwindows();
-  Resize();
-  MapWindow();   
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::BuildLocalGroup (TGCompositeFrame* frame) {
-  // The Local Group Frame
-  fLocalLabel1 = new TGLabel(frame, new TGString("Chain Local Tag Path"));
-  frame->AddFrame(fLocalLabel1, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fLocalPath = new TGTextEntry(frame, new TGTextBuffer(40));
-  fLocalPath->SetEnabled(false);
-  frame->AddFrame(fLocalPath, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fLocalButton = new TGTextButton(frame, "Browse...", 0);
-  frame->AddFrame(fLocalButton, new TGLayoutHints(kLHintsLeft, 5,5,5,5));  
-  fLocalButton->Connect("Clicked()", "AliTagAnalysisFrame", this, "LocalBrowse()");
-  fComboEventTagCut = new TGComboBox(frame, "Select Tag Cuts...", 1);
-  frame->AddFrame(fComboEventTagCut,
-                 new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 5,5,5,5));
-  
-  for(int i=0; i!=fkNumberOfTags; i++)
-    fComboEventTagCut->AddEntry(fEventTagCutsName[i],i);
-  
-  fComboEventTagCut->Resize(150, 20);
-  
-  fButtonInsert = new TGTextButton(frame, "Insert Tag Cuts Range", 2);
-  frame->AddFrame(fButtonInsert,
-                 new TGLayoutHints(kLHintsLeft | kLHintsTop, 5,5,5,5));
-  
-  fButtonInsert->Connect("Clicked()", "AliTagAnalysisFrame", this,
-                        "InsertTagCutsRangeLocal()");
-  
-  fButtonRun = new TGTextButton(frame,     "         Run        ", 3);
-  frame->AddFrame(fButtonRun,
-                 new TGLayoutHints(kLHintsTop | kLHintsRight, 5,5,5,5));
-  
-  fButtonRun->Connect("Clicked()", "AliTagAnalysisFrame", this, "RunLocal()"); 
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::BuildGridGroup (TGCompositeFrame* frame) {
-  // The Grid Group Frame
-  
-  fGridLabel1 = new TGLabel(frame, new TGString("Chain Grid Tag Path"));
-  frame->AddFrame(fGridLabel1, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fGridPath = new TGTextEntry(frame, new TGTextBuffer(40));
-  fGridPath->SetEnabled(false);
-  //   fGridPath->SetText("/alice/cern.ch/user/p/pchrista/PDC06/Tags/pp/1");
-  frame->AddFrame(fGridPath, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fGridButton = new TGTextButton(frame, "Browse...", 0);
-  frame->AddFrame(fGridButton, new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-  
-  fGridButton->Connect("Clicked()", "AliTagAnalysisFrame", this, "GridBrowse()");
-  
-  fComboEventTagCut2 = new TGComboBox(frame, "Select Tag Cuts...", 1);
-  frame->AddFrame(fComboEventTagCut2, 
-                     new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 5,5,5,5));
-  
-  for(int i=0; i!=fkNumberOfTags; i++)
-    fComboEventTagCut2->AddEntry(fEventTagCutsName[i],i);
-  
-  fComboEventTagCut2->Resize(150, 20);
-  
-  fButtonInsert2 = new TGTextButton(frame, "Insert Tag Cuts Range", 2);
-  frame->AddFrame(fButtonInsert2, 
-                 new TGLayoutHints(kLHintsLeft, 5,5,5,5));
-  
-  fButtonInsert2->Connect("Clicked()", "AliTagAnalysisFrame", this, 
-                         "InsertTagCutsRangeGrid()");
-  
-  fButtonRun2 = new TGTextButton(frame,"         Run        " , 2);
-  frame->AddFrame(fButtonRun2, 
-                 new TGLayoutHints(kLHintsRight, 5,5,5,5));
-  
-  fButtonRun2->Connect("Clicked()", "AliTagAnalysisFrame", this, "RunGrid()");
-  
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::LocalBrowse() {
-  // Browse local directories.
-  
-  fBrowser = new TGTransientFrame(gClient->GetRoot(), fAliAnalysisGUI, 450, 200);
-  fAliEnBrowser = new AliAlienBrowser(fBrowser, 300, 200, this, 
-                                     "AliTagAnalysisFrame", kLocalBrowse);
-  fBrowser->AddFrame(fAliEnBrowser, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  fBrowserButton = new TGTextButton(fBrowser, "  OK  ", 0);
-  fBrowser->AddFrame(fBrowserButton, new TGLayoutHints(kLHintsRight, 5,5,5,5));
-  fBrowserButton->Connect("Clicked()", "AliTagAnalysisFrame", this, "OnOKButton()");
-  
-  fAliEnBrowser->AddItem(0, "/");
-  
-  fAliEnBrowser->GotoDir(gSystem->pwd());
-  
-  fBrowser->MapSubwindows();
-  fBrowser->Resize();
-  fBrowser->MapWindow();
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::GridBrowse() {
-  // Opens a browser for grid directories.
-  
-  if (!fAliAnalysisGUI->IsConnected()){
-    new TGMsgBox(gClient->GetRoot(), this, "Connect", 
-                "Please connect to AliEn", 0, kMBOk);
-    return;
-  }
-  
-  fBrowser = new TGTransientFrame(gClient->GetRoot(), fAliAnalysisGUI, 450, 200);
-  
-  fAliEnBrowser = new AliAlienBrowser(fBrowser, 300, 200, this, 
-                                     "AliTagAnalysisFrame", kGridBrowse);
-  fBrowser->AddFrame(fAliEnBrowser, new TGLayoutHints(kLHintsTop, 5,5,5,5));
-  
-  fBrowserButton = new TGTextButton(fBrowser, "  OK  ", 0);
-  fBrowser->AddFrame(fBrowserButton, new TGLayoutHints(kLHintsRight, 5,5,5,5));
-  
-  fBrowserButton->Connect("Clicked()", "AliTagAnalysisFrame", this, "OnOKButton()");
-  
-  fAliEnBrowser->AddItem(0, "/");
-  
-  fAliEnBrowser->GotoDir(gGrid->GetHomeDirectory());
-  
-  fBrowser->MapSubwindows();
-  fBrowser->Resize();
-  fBrowser->MapWindow();
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::InsertTagCutsRangeLocal() {
-  // slot
-  InsertTagCutsRange(fComboEventTagCut->GetSelected());
-}
-
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::InsertTagCutsRangeGrid() {
-  // slot
-  InsertTagCutsRange(fComboEventTagCut2->GetSelected());
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::InsertTagCutsRange(Int_t id) {
-   // insert the event tag range
-
-   // if nth is selected
-  if(id == -1)
-    return;
-  
-  
-  switch(id){
-  case 0: // SetMultiplicity Range
-    
-    fTagFrame = new AliTagFrame(gClient->GetRoot(), this, 400, 200, kHorizontalFrame, fComboEventTagCut->GetTextEntry()->GetText(), fComboEventTagCut->GetSelected(), kRangeMinMax);
-    
-    Int_t min = fTagFrame->GetRangeMin();
-    Int_t max = fTagFrame->GetRangeMax();
-    
-    fAliEventCuts->SetMultiplicityRange(min, max);
-    
-    TString res = TString("Multiplicity Range Min: ");
-    res += min;
-    res += " Max: ";
-    res += max;
-    
-    AddResult(res.Data());
-    
-    break;
-  }
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::RunLocal() {
-  // Run local query
-#ifdef GUIDEBUG     
-  printf("*******************************\n");
-  printf("*** Querying the tags       ***\n");
-  printf("*******************************\n");
-#endif
-  
-  //local tags
-  fAliTagAnalysis->ChainLocalTags(fLocalPath->GetText());
-  
-#ifdef GUIDEBUG     
-  printf("*******************************\n");
-  printf("*** Getting the Chain       ***\n");
-  printf("*******************************\n");
-#endif   
-  
-  fAnalysisChain = new TChain("esdTree");
-  fAnalysisChain = fAliTagAnalysis->QueryTags(fAliRunCuts,fAliLHCCuts,fAliDetectorCuts,fAliEventCuts);
-  
-  TString res = TString("Number of Accepted Events: ");
-  res += fAnalysisChain->GetEventList()->GetN();
-  
-  AddResult(res.Data()); 
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::RunGrid() {
-  // Run Grid query
-  
-  
-  //   fGroup3->SetCleanup(kDeepCleanup);
-  
-  if (!fAliAnalysisGUI->IsConnected()){
-    new TGMsgBox(gClient->GetRoot(), this, "Connect", 
-                "Please connect to AliEn", 0, kMBOk);
-    return;
-  }
-  
-  
-#ifdef GUIDEBUG 
-  printf("*******************************\n");
-  printf("*** Querying the tags       ***\n");
-  printf("*******************************\n");
-#endif
-  
-  
-  //   TGridResult* TagResult = gGrid->Query("/alice/cern.ch/user/p/pchrista/PDC06/Tags/pp/1","*tag.root","","");
-  fTagResult = gGrid->Query(fGridPath->GetText(), "*tag.root", "", "");
-  
-  //   fAliTagAnalysis->ChainLocalTags("../tags");
-  
-  fAliTagAnalysis->ChainGridTags(fTagResult);
-  
-  //////////////////////////////////////////////////////////////////
-  //Get the chain
-#ifdef GUIDEBUG 
-  printf("*******************************\n");
-  printf("*** Getting the Chain       ***\n");
-  printf("*******************************\n");
-#endif
-  
-  fAnalysisChain = new TChain("esdTree");
-  fAnalysisChain = fAliTagAnalysis->QueryTags(fAliRunCuts,fAliLHCCuts,fAliDetectorCuts,fAliEventCuts);
-  
-  TString res = TString("Number of Accepted Events: ");
-  res += fAnalysisChain->GetEventList()->GetN();
-  
-  AddResult(res.Data());
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::ProcessSelector(const char* selectorfile) {
-  // Process selector
-  
-#ifdef GUIDEBUG      
-  printf("*******************************\n");
-  printf("*** Run Analysis Selector %s\n",selectorfile);
-  printf("*******************************\n");
-  
-#endif
-  
-  fAnalysisChain->Process(selectorfile);
-}
-
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::OnDoubleClick(TGListTreeItem* item, Int_t btn) {
-  // Slot for double clicking.
-  
-  fAliEnBrowser->OnDoubleClick(item, btn);
-  
-  //"/alice/cern.ch/user/p/pchrista/PDC06/Tags/pp/1");
-  
-}
-
-//___________________________________________________________________________
-void AliTagAnalysisFrame::OnOKButton() {
-  // Slot for OK button in the Transient Frame.
-  
-  if(fAliEnBrowser->GetBrowseType() == kLocalBrowse)
-    fLocalPath->SetText(fAliEnBrowser->GetPath());  
-  else if(fAliEnBrowser->GetBrowseType() == kGridBrowse)
-    fGridPath->SetText(fAliEnBrowser->GetPath());  
-  
-  TTimer::SingleShot(150, "AliTagAnalysisFrame", fBrowser, "CloseWindow()");
-}
diff --git a/ANALYSIS/Aliengui/AliTagAnalysisFrame.h b/ANALYSIS/Aliengui/AliTagAnalysisFrame.h
deleted file mode 100644 (file)
index edc43aa..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-#ifndef ALITAGANALYSISFRAME_H
-#define ALITAGANALYSISFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliTagAnalysisFrame
-//   AliTagAnalysisFrame class that describes the event tag frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                        AliTagAnalysisFrame                           //
-//                                                                      //
-//                      Event tag tab of the GUI.                       //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-#include <TGFrame.h>
-
-class TGListTreeItem;
-class TGLabel;
-class TGTextEntry;
-class TGVerticalFrame;
-class TGButton;
-class TGGroupFrame;
-class TGComboBox;
-class TGListBox;
-class TGTransientFrame;
-
-class TGridResult;
-class TChain;
-
-class AliRunTagCuts;
-class AliLHCTagCuts;
-class AliDetectorTagCuts;
-class AliEventTagCuts;
-class AliTagAnalysis;
-
-class AliAlienBrowser;
-class AliTagFrame;
-class AliAnalysisGUI;
-
-//___________________________________________________________________________
-class AliTagAnalysisFrame : public TGMainFrame {
-public:
-  AliTagAnalysisFrame(const TGWindow *main, UInt_t w, UInt_t h, AliAnalysisGUI* a=0);
-  ~AliTagAnalysisFrame();
-  
-  //___________________________________________________________________________
-  // slots
-  void LocalBrowse();
-  void GridBrowse();
-  void OnDoubleClick(TGListTreeItem* item, Int_t btn);
-  void OnOKButton();
-  void InsertTagCutsRangeLocal();
-  void InsertTagCutsRangeGrid();
-  void RunLocal();
-  void RunGrid();
-  void ProcessSelector(const char* selectorfile);
-
-  //___________________________________________________________________________
- private:
-  AliTagAnalysisFrame(const AliTagAnalysisFrame&); // cp ctor
-  AliTagAnalysisFrame& operator= (const AliTagAnalysisFrame&); // op=
-   
-  // private methods
-  void BuildLocalGroup (TGCompositeFrame* frame);
-  void BuildGridGroup  (TGCompositeFrame* frame);
-  void InsertTagCutsRange(Int_t id);
-  void AddResult (const char* line);
-
-  const Int_t fkNumberOfTags; //event tags
-
-  TGVerticalFrame     *fVFrame1, *fVFrame2; //vertical frames
-  TGGroupFrame        *fGroup1, *fGroup2, *fGroup3; //group of frames
-   
-  AliAnalysisGUI      *fAliAnalysisGUI; //analysis gui pointer
-  AliTagFrame         *fTagFrame; //tag frame pointer
-  AliAlienBrowser     *fAliEnBrowser; //alien browser pointer
-
-  // local 
-  TGLabel             *fLocalLabel1; //label - local tags
-  TGTextEntry         *fLocalPath; //text box - local tags
-  TGButton            *fLocalButton, *fButtonInsert, *fButtonRun; //buttons
-  TGComboBox          *fComboEventTagCut; //combo box
-     
-  // Grid
-  TGLabel             *fGridLabel1; //label - grid tags
-  TGTextEntry         *fGridPath; //text box - grid tags
-  TGButton            *fGridButton, *fButtonInsert2, *fButtonRun2; //buttons
-  TGComboBox          *fComboEventTagCut2; //combo box
-
-  TGridResult         *fTagResult; //grid result
-  TChain              *fAnalysisChain; //tchain object
-
-  TGListBox           *fListBox; //list box
-  TGTransientFrame    *fBrowser; //frame
-  TGButton            *fBrowserButton; //browse button
-
-  // AliRoot Tag cut analysis 
-  AliTagAnalysis      *fAliTagAnalysis; //alitaganalysis object
-  AliRunTagCuts       *fAliRunCuts; //run cuts object
-  AliLHCTagCuts       *fAliLHCCuts; //lhc cuts object
-  AliDetectorTagCuts  *fAliDetectorCuts; //detector cuts object
-  AliEventTagCuts     *fAliEventCuts; //event cuts object
-  
-  const char          **fEventTagCutsName; //event tag names
-
-  ClassDef(AliTagAnalysisFrame, 0); // Tag Analysis Frame
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AliTagFrame.cxx b/ANALYSIS/Aliengui/AliTagFrame.cxx
deleted file mode 100644 (file)
index f1a351c..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//-----------------------------------------------------------------
-//           AliTagFrame class
-//   The class that deals with the event tag tab of the GUI
-//   Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-----------------------------------------------------------------
-
-#include "TGButton.h"
-#include "TGLabel.h"
-#include "TGNumberEntry.h"
-#include "TTimer.h"
-
-#include "AliTagFrame.h"
-
-ClassImp(AliTagFrame)
-
-//___________________________________________________________________________
-    AliTagFrame::AliTagFrame(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options, const char* tagName, Int_t /*tagId*/, ETagRangeType range)
-  : TGTransientFrame(p, main, w, h, options), 
-    fMin(0), fMax(0), fRange(range),
-    fEntry1(0), fEntry2(0),
-    fButton(0), fVFrame1(0), fVFrame2(0) {
-  //constructor
-  SetCleanup(kDeepCleanup);
-
-  SetWindowName(tagName);
-/*
-   AliTagFrameFunctions tagFunctions [6] = {
-     &AliTagFrame::Vx, &AliTagFrame::Vy, &AliTagFrame::Vz,
-     &AliTagFrame::Participants, &AliTagFrame::ImpactParameter, &AliTagFrame::PrimaryVertex
-   };
-
-   AliTagFrameFunctions tagFunctions [3] = {
-     &AliTagFrame::NegMultiplicityRange, &AliTagFrame::VOsRange, &AliTagFrame::NPionRange
-   };
-*/
-
-  CreateTagName(tagName);
-  //   CREATE_TAG_FRAME(this, tagFunctions[tagId])();
-  if(fRange == kRangeMinMax){
-    CreateTagRange(fVFrame1, fEntry1, "Min");
-    CreateTagRange(fVFrame2, fEntry2, "Max");
-  }
-  else if(fRange == kRangeMin){
-    CreateTagRange(fVFrame1, fEntry1, "Min");
-  }
-  else if(fRange == kRangeMax){
-    CreateTagRange(fVFrame1, fEntry1, "Max");
-  }
-   
-  CreateTagButton();
-
-  fButton->Connect("Clicked()", "AliTagFrame", this, "OnClicked()");
-
-  MapSubwindows();
-  Resize();
-  MapWindow();
-  
-  gClient->WaitFor(this); 
-}
-
-//___________________________________________________________________________
-AliTagFrame::~AliTagFrame() {
-  // destructor
-
-  //   DeleteWindow();
-}
-
-//___________________________________________________________________________
-void AliTagFrame::CreateTagName(const char* name) {
-  // Creates the Tag Name and insert it at Result Group Frame     
-
-   AddFrame(new TGLabel(this, new TGString(name)), new TGLayoutHints(kLHintsLeft, 5,5,40,5));
-}
-
-//___________________________________________________________________________
-void AliTagFrame::CreateTagRange(TGVerticalFrame * vFrame, TGNumberEntryField *& entry, const char* name) {
-  // Creates the label and entries.
-  
-  vFrame = new TGVerticalFrame(this);
-  AddFrame(vFrame, new TGLayoutHints(kLHintsCenterX, 5,5,5,5));
-  
-  TGLabel * label2 = new TGLabel(vFrame, new TGString(name));
-  vFrame->AddFrame(label2, new TGLayoutHints(kLHintsTop | kLHintsCenterX, 5,5,5,5));
-  entry = new TGNumberEntryField(vFrame);
-  vFrame->AddFrame(entry, new TGLayoutHints(kLHintsBottom, 5,5,5,5));
-}
-
-//___________________________________________________________________________
-void AliTagFrame::CreateTagButton() {
-  // Creates the OK button.
-  
-  fButton = new TGTextButton(this, "OK", 1);
-  AddFrame(fButton, new TGLayoutHints(kLHintsRight, 5,5,35,5));
-}
-
-//___________________________________________________________________________
-void AliTagFrame::OnClicked() {
-  // OnClicked slot.
-  
-  if(fRange == kRangeMinMax){
-    fMin = static_cast<int>(fEntry1->GetNumber());
-    fMax = static_cast<int>(fEntry2->GetNumber());
-  }
-  else if(fRange == kRangeMin){
-    fMin = static_cast<int>(fEntry1->GetNumber());
-  }
-  else if(fRange == kRangeMax){
-    fMax = static_cast<int>(fEntry1->GetNumber());
-  }
-  
-  TTimer::SingleShot(1, "AliTagFrame", this, "CloseWindow()");
-}
-
diff --git a/ANALYSIS/Aliengui/AliTagFrame.h b/ANALYSIS/Aliengui/AliTagFrame.h
deleted file mode 100644 (file)
index 8833e6d..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#ifndef ALITAGFRAME_H
-#define ALITAGFRAME_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//-------------------------------------------------------------------------
-//                          Class AliTagFrame
-//   AliTagFrame class that describes the event tag frame of the GUI
-//
-//    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
-//-------------------------------------------------------------------------
-
-
-
-//////////////////////////////////////////////////////////////////////////
-//                                                                      //
-//                           AliTagFrame                                //
-//                                                                      //
-//                      Event tag tab of the GUI.                       //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
-
-
-#include <TGFrame.h>
-
-class TGCanvas;
-class TGVerticalFrame;
-class TGButton;
-class TGNumberEntryField;
-
-enum ETagRangeType {
-   kRangeMin,
-   kRangeMax,
-   kRangeMinMax
-};
-
-//___________________________________________________________________________
-class AliTagFrame : public TGTransientFrame {
-public:
-  AliTagFrame(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options, const char* text, Int_t tagId, ETagRangeType range);
-  ~AliTagFrame();
-
-  Int_t GetRangeMin() const {return fMin;}
-  Int_t GetRangeMax() const {return fMax;}
-
-  void  OnClicked();
-   
-//___________________________________________________________________________
-private:
-  AliTagFrame(const AliTagFrame&); // copy ctor
-  AliTagFrame& operator= (const AliTagFrame&); // assignment op
-
-  // methods to build the GUI
-   void  CreateTagName(const char* name);
-   void  CreateTagRange(TGVerticalFrame* frame, TGNumberEntryField*& entry, const char *name);
-   void  CreateTagButton();
-
-   void (AliTagFrame::*fTagCutMethods [3]) (void); //tag fields
-   
-   Int_t              fMin;   // min range
-   Int_t              fMax;   // max range
-   ETagRangeType      fRange; // range type
-
-   TGNumberEntryField *fEntry1, *fEntry2; //range entry fields
-
-   TGButton           *fButton; //button
-   TGVerticalFrame    *fVFrame1, *fVFrame2; //vertical frames
-
-   ClassDef(AliTagFrame, 0) // Tag Frame
-};
-
-#endif
diff --git a/ANALYSIS/Aliengui/AlienguiLinkDef.h b/ANALYSIS/Aliengui/AlienguiLinkDef.h
deleted file mode 100644 (file)
index 115d0a6..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifdef __CINT__
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id: AlienGUILinkDef.h 17141 2007-02-28 12:57:06Z hristov $ */
-
-#pragma link off all globals;
-#pragma link off all classes;
-#pragma link off all functions;
-
-#pragma link C++ class AliAnalysisGUI+;
-#ifdef WITHXML
-#pragma link C++ class AliAlienBrowser+;
-#pragma link C++ class AliLoginFrame+;
-#pragma link C++ class AliFileListFrame+;
-#pragma link C++ class AliPackageFrame+;
-#pragma link C++ class AliSelectorFrame+;
-#pragma link C++ class AliTagFrame+;
-#pragma link C++ class AliTagAnalysisFrame+;
-#endif
-
-#endif
diff --git a/ANALYSIS/Aliengui/aliengui_main/aliengui_main.cxx b/ANALYSIS/Aliengui/aliengui_main/aliengui_main.cxx
deleted file mode 100644 (file)
index 115362b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <TSystem.h>
-#include <TApplication.h>
-#ifdef WITHXML
-#include <Aliengui/AliAnalysisGUI.h>
-#else
-#include <Aliengui/AliAnalysisGUIdummy.h>
-#endif
-int main(int argc, char **argv) {
-  // main
-  
-  TApplication theApp("App",&argc,argv);
-  new AliAnalysisGUI(gClient->GetRoot(),600,600);
-  
-  theApp.Run();
-  
-  return 0;
-}
diff --git a/ANALYSIS/CMakebinaliengui.pkg b/ANALYSIS/CMakebinaliengui.pkg
deleted file mode 100644 (file)
index 7f4659e..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#--------------------------------------------------------------------------------#
-# Package File for aliengui                                                      #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  Aliengui/aliengui_main/aliengui_main.cxx)
-set ( CSRCS )
-
-set ( EINCLUDE )
-set ( ELIBSDIR )
-set ( ELIBS  Aliengui ANALYSISalice ANALYSIS MUONmapping MUONevaluation MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw MUONtrigger MUONcore TPCbase TPCsim TPCrec TPCfast ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase TRDsim TRDrec FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec ACORDEbase ACORDEsim ACORDErec HMPIDbase HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec EMCALbase EMCALsim EMCALrec EMCALUtils STRUCT T0base T0sim T0rec EVGEN STEERBase ESD AOD CDB STEER THijing hijing THbtp TEPEMGEN FASTSIM microcern RAWDatasim RAWDatarec RAWDatabase HLTbase STAT)
-
-if( CHECKXML STREQUAL "YES")
-       
-       set ( PACKCXXFLAGS ${PACKCXXFLAGS}  ${CXXFLAGS} -DWITHXML)
-
-endif( CHECKXML STREQUAL "YES")
-
-if( ALICE_TARGET STREQUAL "macosx")
-               
-  string(REPLACE "microcern" "" ELIBSCPP "${ELIBS}")
-  string(REPLACE "lhapdf" "" ELIBSCPP "${ELIBSCPP}")
-  string(REPLACE "herwig" "" ELIBSCPP "${ELIBSCPP}")
-
-  set ( PACKLDFLAGS "${LDFLAGS}" )
-  foreach (elibs ${ELIBSCPP})
-      set(PACKLDFLAGS "${PACKLDFLAGS} -Wl,-u,_G__cpp_setupG__${elibs}")
-       endforeach (elibs)
-
-  set ( ELIBSDIR ${ELIBSDIR} $ENV{FINK_ROOT}/lib)
-
-endif( ALICE_TARGET STREQUAL "macosx")
-
-set ( PACKBLIBS  ${ROOTCLIBS} ${ROOTPLIBS} ${SYSLIBS})
diff --git a/ANALYSIS/CMakelibAliengui.pkg b/ANALYSIS/CMakelibAliengui.pkg
deleted file mode 100644 (file)
index 40d418a..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#--------------------------------------------------------------------------------#
-# Package File for Aliengui                                                      #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-if( ROOTHASXML STREQUAL "yes")
-       
-       set ( PACKCXXFLAGS "${PACKCXXFLAGS}  ${CXXFLAGS} -DWITHXML")
-       set ( CINTFLAGS ${CINTFLAGS}  -DWITHXML)
-       set ( SRCS  Aliengui/AliAlienBrowser.cxx Aliengui/AliAnalysisGUI.cxx Aliengui/AliSelectorFrame.cxx Aliengui/AliFileListFrame.cxx Aliengui/AliLoginFrame.cxx Aliengui/AliPackageFrame.cxx Aliengui/AliTagAnalysisFrame.cxx Aliengui/AliTagFrame.cxx)
-else()
-       set ( SRCS  Aliengui/AliAnalysisGUIdummy.cxx)
-endif( ROOTHASXML STREQUAL "yes")
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR Aliengui/AlienguiLinkDef.h)
-
-set ( EINCLUDE  STEER)
-
-if( ALICE_TARGET STREQUAL "win32gcc")
-       
-                       set ( PACKSOFLAGS  ${SOFLAGS} -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lANALYSISalice -lSTEERBase -L${ROOTLIBDIR} -lGui)
-
-endif( ALICE_TARGET STREQUAL "win32gcc")
diff --git a/ANALYSIS/binaliengui.pkg b/ANALYSIS/binaliengui.pkg
deleted file mode 100644 (file)
index ee4f903..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- mode: makefile -*-
-SRCS  := Aliengui/aliengui_main/aliengui_main.cxx
-CSRCS :=
-
-EINCLUDE :=
-ELIBSDIR :=
-ELIBS    := Aliengui \
-           ANALYSISalice ANALYSIS \
-           MUONmapping \
-           MUONevaluation \
-           MUONsim \
-       MUONrec \
-       MUONgeometry \
-       MUONcalib \
-       MUONbase \
-       MUONraw \
-       MUONtrigger \
-       MUONcore \
-  TPCbase TPCsim TPCrec TPCfast \
-  ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase \
-  TRDsim TRDrec TRDfast \
-  FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec \
-  ACORDEbase ACORDEsim ACORDErec \
-  HMPIDbase HMPIDrec HMPIDsim \
-  ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec \
-  EMCALbase EMCALsim EMCALrec EMCALUtils \
-  STRUCT T0base T0sim T0rec EVGEN STEERBase ESD AOD CDB STEER \
-  THijing hijing THbtp TEPEMGEN \
-  FASTSIM microcern \
-  RAWDatasim RAWDatarec RAWDatabase\
-  HLTbase \
-  STAT 
-
-ifeq (yes,$(CHECKXML))
-PACKCXXFLAGS += $(CXXFLAGS) -DWITHXML
-endif
-
-ifeq (macosx,$(ALICE_TARGET))
-
-ELIBSCPP:=$(filter-out microcern,$(ELIBS))
-ELIBSCPP:=$(filter-out lhapdf,$(ELIBSCPP))
-ELIBSCPP:=$(filter-out herwig,$(ELIBSCPP))
-PACKLDFLAGS:=$(LDFLAGS) $(ELIBSCPP:%=-Wl,-u,_G__cpp_setupG__%)
-
-# On Mac OS X gcc we add the fink library
-ELIBSDIR+=$(FINK_ROOT)/lib
-endif
-
-PACKBLIBS := $(ROOTCLIBS) $(ROOTPLIBS) $(SYSLIBS)
-
-
-
diff --git a/ANALYSIS/libAliengui.pkg b/ANALYSIS/libAliengui.pkg
deleted file mode 100644 (file)
index 9e82d97..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#-*- Mode: Makefile -*-
-
-ifeq (yes,$(CHECKXML))
-PACKCXXFLAGS += $(CXXFLAGS) -DWITHXML
-CINTFLAGS += -DWITHXML
-SRCS := Aliengui/AliAlienBrowser.cxx \
-       Aliengui/AliAnalysisGUI.cxx \
-       Aliengui/AliSelectorFrame.cxx \
-       Aliengui/AliFileListFrame.cxx \
-       Aliengui/AliLoginFrame.cxx \
-       Aliengui/AliPackageFrame.cxx \
-       Aliengui/AliTagAnalysisFrame.cxx \
-       Aliengui/AliTagFrame.cxx
-else
-SRCS := Aliengui/AliAnalysisGUIdummy.cxx
-endif
-
-HDRS     := $(SRCS:.cxx=.h)
-
-DHDR:=Aliengui/AlienguiLinkDef.h
-
-EINCLUDE:= STEER
-
-ifeq (win32gcc,$(ALICE_TARGET))
-PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) \
-                         -lANALYSISalice -lSTEERBase \
-                         -L$(ROOTLIBDIR) -lGui
-endif
index b77e7d0d7cea2340d43b2e2c78743b0dda2342d1..a954eac49e92e7d6c7e89841410504939f906539 100644 (file)
@@ -1,7 +1,7 @@
 #-*- Mode: Makefile -*-
 
 ALIROOT/module.mk:     ALIROOT/binaliroot.pkg 
-ANALYSIS/module.mk:    ANALYSIS/libANALYSIS.pkg ANALYSIS/libANALYSISalice.pkg ANALYSIS/libANALYSIScalib.pkg  ANALYSIS/libAliengui.pkg ANALYSIS/binaliengui.pkg
+ANALYSIS/module.mk:    ANALYSIS/libANALYSIS.pkg ANALYSIS/libANALYSISalice.pkg ANALYSIS/libANALYSIScalib.pkg
 ACORDE/module.mk:      ACORDE/libACORDEbase.pkg ACORDE/libACORDErec.pkg ACORDE/libACORDEsim.pkg
 EMCAL/module.mk:       EMCAL/libEMCALbase.pkg EMCAL/libEMCALsim.pkg EMCAL/libEMCALrec.pkg  EMCAL/libEMCALUtils.pkg
 EPOS/module.mk:                EPOS/libEPOS.pkg