]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveITSScaledModuleEditor.cxx
Changes in order to modify also ITSonly tracks
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveITSScaledModuleEditor.cxx
index 4b6a7dd9a1c07b4866abf2f3ec03343d4f75a058..ddb3d7b7b1510b2d891be1fcd61825dbbff09c9c 100644 (file)
@@ -9,41 +9,37 @@
 
 #include "AliEveITSScaledModuleEditor.h"
 #include <EveDet/AliEveITSScaledModule.h>
-#include <TEveTransEditor.h>
-#include <TEveGValuators.h>
 
 #include <TVirtualPad.h>
-#include <TColor.h>
-#include <TMath.h>
-
 #include <TGedEditor.h>
 #include <TGLabel.h>
 #include <TG3DLine.h>
-#include <TGButton.h>
 #include <TGNumberEntry.h>
-#include <TGColorSelect.h>
 #include <TGComboBox.h>
 
+//==============================================================================
+//==============================================================================
+// AliEveITSScaledModuleEditor
+//==============================================================================
 
 //______________________________________________________________________________
-// AliEveITSScaledModuleEditor
 //
+// Editor for AliEveITSScaledModule.
 
 ClassImp(AliEveITSScaledModuleEditor)
 
-  AliEveITSScaledModuleEditor::AliEveITSScaledModuleEditor(const TGWindow *p, Int_t width, Int_t height,
-                                              UInt_t options, Pixel_t back) :
-    TGedFrame(p, width, height, options | kVerticalFrame, back),
-
-    fInfoFrame(0),
-
-    fModule(0),
-
-    fScale(0),
-    fStatistic(0),
-    fInfoLabel0(0),
-    fInfoLabel1(0)
+AliEveITSScaledModuleEditor::AliEveITSScaledModuleEditor(const TGWindow *p, Int_t width, Int_t height,
+                                                         UInt_t options, Pixel_t back) :
+  TGedFrame(p, width, height, options | kVerticalFrame, back),
+  fModule(0),
+  fScale(0),
+  fStatistic(0),
+  fInfoFrame(0),
+  fInfoLabel0(0),
+  fInfoLabel1(0)
 {
+  // Constructor.
+
   MakeTitle("AliEveITSScaledModule");
   // Create widgets
   {
@@ -76,12 +72,11 @@ ClassImp(AliEveITSScaledModuleEditor)
 }
 
 /******************************************************************************/
-AliEveITSScaledModuleEditor::~AliEveITSScaledModuleEditor()
-{}
 
-/******************************************************************************/
 void AliEveITSScaledModuleEditor::CreateInfoFrame()
 {
+  // Create a frame under tab "Info".
+
   fInfoFrame = CreateEditorTabSubFrame("Info");
   TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10,
                                                  kHorizontalFrame |
@@ -100,19 +95,20 @@ void AliEveITSScaledModuleEditor::CreateInfoFrame()
   fInfoLabel0 = new TGLabel(fInfoFrame);
   fInfoLabel0->SetTextJustify(kTextLeft);
   fInfoFrame->AddFrame(fInfoLabel0, new TGLayoutHints(kLHintsLeft|kLHintsExpandX,
-                                         lp, 0, 8, 0));
+                                                      lp, 0, 8, 0));
 
   fInfoLabel1 = new TGLabel(fInfoFrame);
   fInfoLabel1->SetTextJustify(kTextLeft);
   fInfoFrame->AddFrame(fInfoLabel1, new TGLayoutHints(kLHintsLeft|kLHintsExpandX,
-                                         lp, 0, 2, 8));
-
+                                                      lp, 0, 2, 8));
 }
 
 /******************************************************************************/
 
 void AliEveITSScaledModuleEditor::SetModel(TObject* obj)
 {
+  // Set model object.
+
   fModule = dynamic_cast<AliEveITSScaledModule*>(obj);
 
   // widgets
@@ -131,6 +127,8 @@ void AliEveITSScaledModuleEditor::SetModel(TObject* obj)
 
 void AliEveITSScaledModuleEditor::DoScale()
 {
+  // Slot for Scale.
+
   fModule->GetScaleInfo()->ScaleChanged(fScale->GetIntNumber());
 
   Int_t cnx, cnz, total;
@@ -144,6 +142,8 @@ void AliEveITSScaledModuleEditor::DoScale()
 
 void AliEveITSScaledModuleEditor::DoStatType(Int_t v)
 {
+  // Slot for StatType.
+
   fModule->GetScaleInfo()->StatTypeChanged(v);
   Update();
   fGedEditor->SetModel(fGedEditor->GetPad(), fGedEditor->GetModel(), kButton1Down);