]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveTOFSectorEditor.cxx
- use base class for multidimensional objects
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTOFSectorEditor.cxx
index ca5d87a120dfd4e39bf61c2e9dca825ff256dfaf..44490f46005c37d27ff49ff00b7c2aeec6d7db51 100644 (file)
@@ -1,12 +1,12 @@
-// $Id$
-// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
-
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
 
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
 #include "AliEveTOFSectorEditor.h"
 #include <EveDet/AliEveTOFSector.h>
 
@@ -31,11 +31,13 @@ ClassImp(AliEveTOFSectorEditor)
 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),
-  fSectorID(0), fAutoTrans(0),
-  fPlate(0), fPlate0(0), fPlate1(0), fPlate2(0), fPlate3(0), fPlate4(0),
-  fThreshold(0), fMaxVal(0)
+  fM(0) ,
+  fSectorID  (0), fAutoTrans (0),
+  fPlate (0),
+  fPlate0(0), fPlate1(0), fPlate2(0), fPlate3(0), fPlate4(0),
+  fThreshold (0), fMaxVal(0)
 {
+  //ctr
 
   fPlate = new TGCheckButton*[5];
   for (Int_t ii=0; ii<5; ii++) fPlate[ii] = new TGCheckButton;
@@ -125,8 +127,12 @@ AliEveTOFSectorEditor::AliEveTOFSectorEditor(const TGWindow *p, Int_t width, Int
 
 }
 
+/******************************************************************************/
+
 AliEveTOFSectorEditor::~AliEveTOFSectorEditor()
 {
+  //dtr
+
   delete [] fPlate;
 }
 
@@ -134,7 +140,9 @@ AliEveTOFSectorEditor::~AliEveTOFSectorEditor()
 
 void AliEveTOFSectorEditor::SetModel(TObject* obj)
 {
-  fM = dynamic_cast<AliEveTOFSector*>(obj);
+  // Set object to monitor at visualization level
+
+  fM = static_cast<AliEveTOFSector*>(obj);
 
   fSectorID->SetValue(fM->GetSectorID());
   fAutoTrans->SetState(fM->GetAutoTrans()  ? kButtonDown : kButtonUp);
@@ -210,3 +218,12 @@ void AliEveTOFSectorEditor::DoMaxVal()
   fMaxVal->SetValue(fM->GetMaxVal());
   Update();
 }
+
+/*
+void AliEveTOFSectorEditor::DoTime()
+{ 
+  fM->SetMinTime((Int_t) fTime->GetMin());
+  fM->SetMaxTime((Int_t) fTime->GetMax());
+  Update();
+}
+*/