]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/AliEveTPCSector3DEditor.cxx
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveTPCSector3DEditor.cxx
similarity index 67%
rename from EVE/Alieve/TPCSector3DEditor.cxx
rename to EVE/Alieve/AliEveTPCSector3DEditor.cxx
index 2f4979a18e7ccfba87d811e3898a199a17fdea79..587486df8b8aa78c64e89e71e12cff032fad73f3 100644 (file)
@@ -1,7 +1,14 @@
-// $Header$
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
-#include "TPCSector3DEditor.h"
-#include <Alieve/TPCSector3D.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 "AliEveTPCSector3DEditor.h"
+#include <Alieve/AliEveTPCSector3D.h>
 
 #include <TEveGValuators.h>
 
 #include <TGColorSelect.h>
 #include <TGSlider.h>
 #include <TGDoubleSlider.h>
-using namespace Alieve;
+
 
 //______________________________________________________________________
-// TPCSector3DEditor
+// AliEveTPCSector3DEditor
 //
 
-ClassImp(TPCSector3DEditor)
+ClassImp(AliEveTPCSector3DEditor)
 
-TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p,
+AliEveTPCSector3DEditor::AliEveTPCSector3DEditor(const TGWindow *p,
                                      Int_t width, Int_t height,
                                      UInt_t options, Pixel_t back) :
   TGedFrame(p, width, height, options | kVerticalFrame, back),
   fM(0),
   fRnrFrame(0), fDriftVel(0), fPointFrac(0), fPointSize(0)
 {
-  MakeTitle("TPCSector3D");
+  MakeTitle("AliEveTPCSector3D");
 
   Int_t labelW = 60;
 
   fRnrFrame = new TGCheckButton(this, "ShowFrame");
   AddFrame(fRnrFrame, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrFrame->Connect
-    ("Toggled(Bool_t)","Alieve::TPCSector3DEditor", this, "DoRnrFrame()");
+    ("Toggled(Bool_t)","AliEveTPCSector3DEditor", this, "DoRnrFrame()");
 
   fDriftVel = new TEveGValuator(this, "Vdrift fac", 110, 0);
   fDriftVel->SetLabelWidth(labelW);
@@ -46,7 +53,7 @@ TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p,
   fDriftVel->SetLimits(0.1, 10, 1, TGNumberFormat::kNESRealThree);
   fDriftVel->SetToolTip("Drift velocity factor");
   fDriftVel->Connect("ValueSet(Double_t)",
-                    "Alieve::TPCSector3DEditor", this, "DoDriftVel()");
+                    "AliEveTPCSector3DEditor", this, "DoDriftVel()");
   AddFrame(fDriftVel, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
 
   fPointFrac = new TEveGValuator(this,"Point frac", 200, 0);
@@ -57,7 +64,7 @@ TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p,
   fPointFrac->SetLimits(0.0, 1.0, 101);
   fPointFrac->SetToolTip("Fraction of signal range displayed as points");
   fPointFrac->Connect("ValueSet(Double_t)",
-                     "Alieve::TPCSector3DEditor", this, "DoPointFrac()");
+                     "AliEveTPCSector3DEditor", this, "DoPointFrac()");
   AddFrame(fPointFrac, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
 
   fPointSize = new TEveGValuator(this,"Point size", 200, 0);
@@ -69,18 +76,18 @@ TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p,
   fPointSize->SetLimits(0.1, 32.0, 1, TGNumberFormat::kNESRealOne);
   fPointSize->SetToolTip("Size of displayed points");
   fPointSize->Connect("ValueSet(Double_t)",
-                     "Alieve::TPCSector3DEditor", this, "DoPointSize()");
+                     "AliEveTPCSector3DEditor", this, "DoPointSize()");
   AddFrame(fPointSize, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
 }
 
-TPCSector3DEditor::~TPCSector3DEditor()
+AliEveTPCSector3DEditor::~AliEveTPCSector3DEditor()
 {}
 
 /**************************************************************************/
 
-void TPCSector3DEditor::SetModel(TObject* obj)
+void AliEveTPCSector3DEditor::SetModel(TObject* obj)
 {
-  fM = dynamic_cast<TPCSector3D*>(obj);
+  fM = dynamic_cast<AliEveTPCSector3D*>(obj);
 
   fRnrFrame->SetState(fM->fRnrFrame ? kButtonDown : kButtonUp);
   fDriftVel->SetValue(fM->fDriftVel);
@@ -91,25 +98,25 @@ void TPCSector3DEditor::SetModel(TObject* obj)
 
 /**************************************************************************/
 
-void TPCSector3DEditor::DoRnrFrame()
+void AliEveTPCSector3DEditor::DoRnrFrame()
 {
   fM->SetRnrFrame(fRnrFrame->IsOn());
   Update();
 }
 
-void TPCSector3DEditor::DoDriftVel()
+void AliEveTPCSector3DEditor::DoDriftVel()
 {
   fM->SetDriftVel(fDriftVel->GetValue());
   Update();
 }
 
-void TPCSector3DEditor::DoPointFrac()
+void AliEveTPCSector3DEditor::DoPointFrac()
 {
   fM->SetPointFrac(fPointFrac->GetValue());
   Update();
 }
 
-void TPCSector3DEditor::DoPointSize()
+void AliEveTPCSector3DEditor::DoPointSize()
 {
   fM->SetPointSize(fPointSize->GetValue());
   Update();