-// $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>
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;
}
+/******************************************************************************/
+
AliEveTOFSectorEditor::~AliEveTOFSectorEditor()
{
+ //dtr
+
delete [] fPlate;
}
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);
fMaxVal->SetValue(fM->GetMaxVal());
Update();
}
+
+/*
+void AliEveTOFSectorEditor::DoTime()
+{
+ fM->SetMinTime((Int_t) fTime->GetMin());
+ fM->SetMaxTime((Int_t) fTime->GetMax());
+ Update();
+}
+*/