]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/AliEveTOFSectorEditor.cxx
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveTOFSectorEditor.cxx
similarity index 64%
rename from EVE/Alieve/TOFSectorEditor.cxx
rename to EVE/Alieve/AliEveTOFSectorEditor.cxx
index 9a129346e619623b6ee6596c4ec73e0cd2ca8a91..2ced8639d6ff1d9e4406c342ff7986ee1c93bf52 100644 (file)
@@ -1,7 +1,14 @@
-// $Header$
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
-#include "TOFSectorEditor.h"
-#include <Alieve/TOFSector.h>
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 * 
+ **************************************************************************/
+
+#include "AliEveTOFSectorEditor.h"
+#include <Alieve/AliEveTOFSector.h>
 
 #include <TVirtualPad.h>
 #include <TColor.h>
 #include <TGColorSelect.h>
 #include <TGSlider.h>
 #include <TGDoubleSlider.h>
-using namespace Alieve;
+
 
 //______________________________________________________________________
-// TOFSectorEditor
+// AliEveTOFSectorEditor
 //
 
-ClassImp(TOFSectorEditor)
+ClassImp(AliEveTOFSectorEditor)
   
-  TOFSectorEditor::TOFSectorEditor(const TGWindow *p, Int_t width, Int_t height,
+  AliEveTOFSectorEditor::AliEveTOFSectorEditor(const TGWindow *p, Int_t width, Int_t height,
                                   UInt_t options, Pixel_t back) :
     TGedFrame(p, width, height, options | kVerticalFrame, back),
     fM(0) ,
@@ -35,18 +42,18 @@ ClassImp(TOFSectorEditor)
     
     /*
       fHMTrans = new TEveTransSubEditor(this);
-      fHMTrans->Connect("UseTrans()",     "Alieve::TPCSectorVizEditor", this, "Update()");
-      fHMTrans->Connect("TransChanged()", "Alieve::TPCSectorVizEditor", this, "Update()");
+      fHMTrans->Connect("UseTrans()",     "AliEveTPCSectorVizEditor", this, "Update()");
+      fHMTrans->Connect("TransChanged()", "AliEveTPCSectorVizEditor", this, "Update()");
       AddFrame(fHMTrans, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0));
       
-      MakeTitle("TPCSectorViz");*/
+      MakeTitle("AliEveTPCSectorViz");*/
 {
   
   fPlate = new TGCheckButton*[5];
   for (Int_t ii=0; ii<5; ii++) fPlate[ii] = new TGCheckButton;
   
   //fPriority = 40;
-  MakeTitle("TOFSector");  
+  MakeTitle("AliEveTOFSector");  
 
   fSectorID = new TEveGValuator(this, "SectorID", 110, 0);
   fSectorID->SetLabelWidth(60);
@@ -56,49 +63,49 @@ ClassImp(TOFSectorEditor)
   fSectorID->SetLimits(0, 17);
   fSectorID->SetToolTip("The 18 Tof Sector's");
   fSectorID->Connect("ValueSet(Double_t)",
-                    "Alieve::TOFSectorEditor", this, "DoSectorID()");
+                    "AliEveTOFSectorEditor", this, "DoSectorID()");
   // Reuse sectorID for auto-transformation button
   fAutoTrans = new TGCheckButton(fSectorID, "AutoTrans");
   fAutoTrans->SetToolTipText("Automatically set transformation to true position");
   fSectorID->AddFrame(fAutoTrans, new TGLayoutHints(kLHintsLeft, 12, 0, 1, 0));
-  fAutoTrans->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoAutoTrans()");
+  fAutoTrans->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoAutoTrans()");
   AddFrame(fSectorID, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
   
   // Create widgets
   // fXYZZ = new TGSomeWidget(this, ...);
   // AddFrame(fXYZZ, new TGLayoutHints(...));
-  // fXYZZ->Connect("SignalName()", "Alieve::TOFSectorEditor", this, "DoXYZZ()"); {
+  // fXYZZ->Connect("SignalName()", "AliEveTOFSectorEditor", this, "DoXYZZ()"); {
     TGHorizontalFrame* f = new TGHorizontalFrame(this);
 
     Int_t nPlate = 0;
     fPlate0 = new TGCheckButton(f, "Plate0");
     f->AddFrame(fPlate0, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPlate0->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate0()");
-    //fPlate0->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate(Int_t)");
+    fPlate0->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate0()");
+    //fPlate0->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
 
     nPlate = 1;
     fPlate1 = new TGCheckButton(f, "Plate 1");
     f->AddFrame(fPlate1, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPlate1->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate1()");
-    //fPlate1->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate(Int_t)");
+    fPlate1->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate1()");
+    //fPlate1->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
 
     nPlate = 2;
     fPlate2 = new TGCheckButton(f, "Plate 2");
     f->AddFrame(fPlate2, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPlate2->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate2()");
-    //fPlate2->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate(Int_t)");
+    fPlate2->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate2()");
+    //fPlate2->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
 
     nPlate = 3;
     fPlate3 = new TGCheckButton(f, "Plate 3");
     f->AddFrame(fPlate3, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPlate3->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate3()");
-    //fPlate3->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate(Int_t)");
+    fPlate3->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate3()");
+    //fPlate3->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
 
     nPlate = 4;
     fPlate4 = new TGCheckButton(f, "Plate 4");
     f->AddFrame(fPlate4, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPlate4->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate4()");
-    //fPlate4->Connect("Toggled(Bool_t)","Alieve::TOFSectorEditor", this, "DoPlate(Int_t)");
+    fPlate4->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate4()");
+    //fPlate4->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
 
 
     fPlate[0] = fPlate0;
@@ -116,7 +123,7 @@ ClassImp(TOFSectorEditor)
     fThreshold->GetSlider()->SetWidth(120);
     fThreshold->SetLimits(0,250);
     fThreshold->Connect("ValueSet(Double_t)",
-                       "Alieve::TOFSectorEditor", this, "DoThreshold()");
+                       "AliEveTOFSectorEditor", this, "DoThreshold()");
     AddFrame(fThreshold, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
     
     fMaxVal = new TEveGValuator(this,"MaxVal", 200, 0);
@@ -126,7 +133,7 @@ ClassImp(TOFSectorEditor)
     fMaxVal->GetSlider()->SetWidth(60);
     fMaxVal->SetLimits(0, 500);
     fMaxVal->Connect("ValueSet(Double_t)",
-                    "Alieve::TOFSectorEditor", this, "DoMaxVal()");
+                    "AliEveTOFSectorEditor", this, "DoMaxVal()");
     AddFrame(fMaxVal, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
     
 }
@@ -134,14 +141,14 @@ ClassImp(TOFSectorEditor)
 
 
 
-TOFSectorEditor::~TOFSectorEditor()
+AliEveTOFSectorEditor::~AliEveTOFSectorEditor()
 {}
 
 /**************************************************************************/
 
-void TOFSectorEditor::SetModel(TObject* obj)
+void AliEveTOFSectorEditor::SetModel(TObject* obj)
 {
-  fM = dynamic_cast<TOFSector*>(obj);
+  fM = dynamic_cast<AliEveTOFSector*>(obj);
 
   fSectorID->SetValue(fM->GetSectorID());
   fAutoTrans->SetState(fM->GetAutoTrans()  ? kButtonDown : kButtonUp);
@@ -157,13 +164,13 @@ void TOFSectorEditor::SetModel(TObject* obj)
 }
 
 /**************************************************************************/
-void TOFSectorEditor::DoSectorID()
+void AliEveTOFSectorEditor::DoSectorID()
 {
   fM->SetSectorID((Int_t) fSectorID->GetValue());
   Update();
 }
 
-void TOFSectorEditor::DoAutoTrans()
+void AliEveTOFSectorEditor::DoAutoTrans()
 {
   fM->SetAutoTrans(fAutoTrans->IsOn());
   Update();
@@ -171,50 +178,50 @@ void TOFSectorEditor::DoAutoTrans()
 
 /**************************************************************************/
 
-void TOFSectorEditor::DoPlate(Int_t nPlate)
+void AliEveTOFSectorEditor::DoPlate(Int_t nPlate)
 {
   fM->SetPlate(nPlate, fPlate[nPlate]->IsOn());
   Update();
 }
 
-void TOFSectorEditor::DoPlate0()
+void AliEveTOFSectorEditor::DoPlate0()
 {
   fM->SetPlate(0, fPlate0->IsOn());
   Update();
 }
 
-void TOFSectorEditor::DoPlate1()
+void AliEveTOFSectorEditor::DoPlate1()
 {
   fM->SetPlate(1, fPlate1->IsOn());
   Update();
 }
 
-void TOFSectorEditor::DoPlate2()
+void AliEveTOFSectorEditor::DoPlate2()
 {
   fM->SetPlate(2, fPlate2->IsOn());
   Update();
 }
-void TOFSectorEditor::DoPlate3()
+void AliEveTOFSectorEditor::DoPlate3()
 {
   fM->SetPlate(3, fPlate3->IsOn());
   Update();
 }
 
-void TOFSectorEditor::DoPlate4()
+void AliEveTOFSectorEditor::DoPlate4()
 {
   fM->SetPlate(4, fPlate4->IsOn());
   Update();
 }
 
 
-void TOFSectorEditor::DoThreshold()
+void AliEveTOFSectorEditor::DoThreshold()
 {
   fM->SetThreshold((Short_t) fThreshold->GetValue());
   fThreshold->SetValue(fM->GetThreshold());
   Update();
 }
 
-void TOFSectorEditor::DoMaxVal()
+void AliEveTOFSectorEditor::DoMaxVal()
 {
   fM->SetMaxVal((Int_t) fMaxVal->GetValue());
   fMaxVal->SetValue(fM->GetMaxVal());
@@ -223,7 +230,7 @@ void TOFSectorEditor::DoMaxVal()
 
 /**************************************************************************/
 /*
-void TOFSectorEditor::DoTime()
+void AliEveTOFSectorEditor::DoTime()
 { 
   fM->SetMinTime((Int_t) fTime->GetMin());
   fM->SetMaxTime((Int_t) fTime->GetMax());
@@ -251,7 +258,7 @@ void TOFSectorEditor::DoTime()
 
 // Implements callback/slot methods
 
-// void TOFSectorEditor::DoXYZZ()
+// void AliEveTOFSectorEditor::DoXYZZ()
 // {
 //   fM->SetXYZZ(fXYZZ->GetValue());
 //   Update();