Some more effc++ warnings.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jan 2008 19:05:58 +0000 (19:05 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jan 2008 19:05:58 +0000 (19:05 +0000)
Whitespace fixes.

15 files changed:
EVE/EveBase/AliEveEventManager.cxx
EVE/EveBase/AliEveEventManager.h
EVE/EveDet/AliEveITSDigitsInfo.cxx
EVE/EveDet/AliEveITSModuleStepper.cxx
EVE/EveDet/AliEveITSModuleStepper.h
EVE/EveDet/AliEveITSScaledModule.cxx
EVE/EveDet/AliEveITSScaledModule.h
EVE/EveDet/AliEveMUONChamberData.cxx
EVE/EveDet/AliEveMUONChamberGL.cxx
EVE/EveDet/AliEveMUONChamberGL.h
EVE/EveDet/AliEveTOFSector.cxx
EVE/EveDet/AliEveTOFSectorEditor.cxx
EVE/EveDet/AliEveTOFSectorEditor.h
EVE/EveDet/AliEveTRDLoaderManager.h
EVE/EveDet/AliEveTRDModule.cxx

index 47e34f90947774adf4e04dd7c999830fb1024d06..ff1c7d906f6307f439787641fac9219180c860c3 100644 (file)
@@ -43,7 +43,7 @@ ClassImp(AliEveEventManager)
 AliEveEventManager* gEvent = 0;
 
 Bool_t AliEveEventManager::fgAssertRunLoader = kFALSE;
-Bool_t AliEveEventManager::fgAssertESDTree   = kFALSE;
+Bool_t AliEveEventManager::fgAssertESD       = kFALSE;
 
 TString  AliEveEventManager::fgCdbUri("local://$ALICE_ROOT");
 
@@ -53,20 +53,24 @@ AliMagF* AliEveEventManager::fgMagField = 0;
 AliEveEventManager::AliEveEventManager() :
   TEveEventManager(),
 
-  fPath (), fEventId   (0),
+  fPath       (), fEventId (0),
   fRunLoader (0),
   fESDFile   (0), fESDTree (0), fESD (0),
   fESDfriend (0), fESDfriendExists(kFALSE)
-{}
+{
+  // Default constructor.
+}
 
 AliEveEventManager::AliEveEventManager(TString path, Int_t ev) :
   TEveEventManager("AliEVE AliEveEventManager"),
 
-  fPath (path), fEventId(-1),
+  fPath   (path), fEventId(-1),
   fRunLoader (0),
   fESDFile   (0), fESDTree (0), fESD (0),
   fESDfriend (0), fESDfriendExists(kFALSE)
 {
+  // Constructor with event-directory URL and event-id.
+
   Open();
   if (ev >= 0) GotoEvent(ev);
 }
@@ -75,6 +79,12 @@ AliEveEventManager::AliEveEventManager(TString path, Int_t ev) :
 
 void AliEveEventManager::Open()
 {
+  // Open event-data from URL specified in fPath.
+  // Attempts to create AliRunLoader() and to open ESD with ESDfriends.
+  // Warning is reported if run-loader or ESD is not found.
+  // Global data-members fgAssertRunLoader and fgAssertESD can be set
+  // to throw exceptions instead.
+
   static const TEveException eH("AliEveEventManager::Open ");
 
   gSystem->ExpandPathName(fPath);
@@ -164,7 +174,7 @@ void AliEveEventManager::Open()
   }
   if (fESDTree == 0)
   {
-    if (fgAssertESDTree)
+    if (fgAssertESD)
     {
       throw(eH + "ESD not initialized. Its precence was requested.");
     } else {
@@ -243,10 +253,9 @@ void AliEveEventManager::Close()
 
 
 /******************************************************************************/
+// Static convenience functions, mainly used from macros.
 /******************************************************************************/
 
-// Static convenience functions.
-
 AliRunLoader* AliEveEventManager::AssertRunLoader()
 {
   static const TEveException eH("AliEveEventManager::AssertRunLoader ");
index a7e83a8a97a3aa312d9a94ddfc8570c0f12e3117..4fcfed587dec4277cf4b50e632a343aaddd39fc0 100644 (file)
@@ -30,27 +30,27 @@ private:
   AliEveEventManager& operator=(const AliEveEventManager&); // Not implemented
 
 protected:
-  TString       fPath;
-  Int_t         fEventId;
+  TString       fPath;                 // URL to event-data.
+  Int_t         fEventId;              // Id of current event.
 
-  AliRunLoader* fRunLoader;
+  AliRunLoader* fRunLoader;            // Run loader.
 
-  TFile*        fESDFile;
-  TTree*        fESDTree;
-  AliESDEvent*  fESD;
-  AliESDfriend* fESDfriend;
-  Bool_t        fESDfriendExists;
+  TFile*        fESDFile;              // ESD file.
+  TTree*        fESDTree;              // ESD tree.
+  AliESDEvent*  fESD;                  // ESDEvent object.
+  AliESDfriend* fESDfriend;            // ESDfriend object.
+  Bool_t        fESDfriendExists;      // Flag specifying if ESDfriend was found during opening of the event-data.
 
-  static TString  fgCdbUri;
-  static Bool_t   fgAssertRunLoader;
-  static Bool_t   fgAssertESDTree;
+  static TString  fgCdbUri;            // Global URI to CDB.
+  static Bool_t   fgAssertRunLoader;   // Global flag specifying if AliRunLoader must be asserted during opening of the event-data.
+  static Bool_t   fgAssertESD;         // Global flag specifying if ESDEvent must be asserted during opening of the event-data.
 
-  static AliMagF* fgMagField;
+  static AliMagF* fgMagField;          // Global pointer to magneti field.
 
 public:
   static void SetCdbUri(const Text_t* cdb) { if (cdb) fgCdbUri = cdb; }
   static void SetAssertElements(Bool_t assertRunloader, Bool_t assertEsd)
-  { fgAssertRunLoader = assertRunloader; fgAssertESDTree = assertEsd; }
+  { fgAssertRunLoader = assertRunloader; fgAssertESD = assertEsd; }
 
   AliEveEventManager();
   AliEveEventManager(TString path, Int_t ev=0);
index 283ec65d4ed595c35eaf229a1d85b23d8c0fdff4..a67d1fb79986511486bf08c17bd5d9b831178e31 100644 (file)
@@ -58,8 +58,8 @@ AliEveITSDigitsInfo::AliEveITSDigitsInfo() :
   fTree (0),
   fGeom (0),
   fSegSPD     (0), fSegSDD     (0), fSegSSD     (0),
-  fSPDMinVal  (0), fSSDMinVal  (0), fSDDMinVal  (0), 
-  fSPDMaxVal  (0), fSSDMaxVal  (0), fSDDMaxVal  (0), 
+  fSPDMinVal  (0), fSSDMinVal  (0), fSDDMinVal  (0),
+  fSPDMaxVal  (0), fSSDMaxVal  (0), fSDDMaxVal  (0),
   fSPDHighLim (0), fSDDHighLim (0), fSSDHighLim (0)
 {
   // Default constructor.
index d15d0971c82adbe74647191ae108c980103dac20..e8596da4329e8f016b023f6337db5bf85bcbe503 100644 (file)
@@ -41,6 +41,7 @@ ClassImp(AliEveITSModuleStepper)
 AliEveITSModuleStepper::AliEveITSModuleStepper(AliEveITSDigitsInfo* di) :
   TEveElementList("ITS 2DStore", "AliEveITSModuleStepper", kTRUE),
 
+  fIDs(),
   fPosition(0),
 
   fDigitsInfo(di),
index 9d5b9c93254ad3b3b021727dd142b76407e40d6c..41f335c0cb5b40dbd1e5f5a0a2a337fc18295ca1 100644 (file)
 class TGLText;
 class TGLAxis;
 
-
 class AliEveITSDigitsInfo;
 class AliEveDigitScaleInfo;
 
 class AliEveITSModuleStepper : public TEveElementList,
-                         public TGLOverlayElement
+                              public TGLOverlayElement
 {
   friend class ITSModuleStepperGL;
 
@@ -42,13 +41,13 @@ private:
   AliEveITSModuleStepper& operator=(const AliEveITSModuleStepper&); // Not implemented
 
 protected:
-  AliEveITSDigitsInfo*          fDigitsInfo;
-  AliEveDigitScaleInfo*         fScaleInfo;
+  AliEveITSDigitsInfo    *fDigitsInfo;
+  AliEveDigitScaleInfo   *fScaleInfo;
   Int_t                   fSubDet;
 
-  TEveGridStepper*      fStepper;
-  TGLAxis*                fAxis;
-  TGLText*                fText;
+  TEveGridStepper        *fStepper;
+  TGLAxis                *fAxis;
+  TGLText                *fText;
   Float_t                 fTextSize;
   Float_t                 fPagerGap;
   Bool_t                  fRnrFrame;
@@ -65,7 +64,7 @@ protected:
   Int_t                   fWActive;
   Float_t                 fWWidth;
   Float_t                 fWHeight;
-  Float_t                 fWOff; ///offset relative to widget size
+  Float_t                 fWOff; // offset relative to widget size
   Color_t                 fWCol;
   Int_t                   fWActiveCol;
   Color_t                 fFontCol;
index 9df65a9a9dff6c1f7b5a7100588778a6d208fdad..190d0027011754dbc3df6ca93bae8d0752b01ab0 100644 (file)
@@ -58,7 +58,8 @@ void AliEveDigitScaleInfo::StatTypeChanged(Int_t t)
 //______________________________________________________________________________
 // ScaledDigit
 //
-ScaledDigit::ScaledDigit():
+
+AliEveITSScaledModule::ScaledDigit::ScaledDigit() :
   TObject(),
   N(0),
   sum(0), sqr_sum(0),
@@ -66,7 +67,7 @@ ScaledDigit::ScaledDigit():
 {
 }
 
-ScaledDigit::ScaledDigit(Int_t di, Int_t dj):
+AliEveITSScaledModule::ScaledDigit::ScaledDigit(Int_t di, Int_t dj) :
   TObject(),
   N(0),
   sum(0), sqr_sum(0),
@@ -74,7 +75,7 @@ ScaledDigit::ScaledDigit(Int_t di, Int_t dj):
 {
 }
 
-void ScaledDigit::Dump() const
+void AliEveITSScaledModule::ScaledDigit::Dump() const
 {
   printf("N %d, sum %f, sqr_sum %f",N, sum, sqr_sum);
 }
@@ -87,6 +88,7 @@ ClassImp(AliEveITSScaledModule)
 
 AliEveITSScaledModule::AliEveITSScaledModule(Int_t gid, AliEveITSDigitsInfo* info, AliEveDigitScaleInfo* si):
   AliEveITSModule("AliEveITSScaledModule", "AliEveITSScaledModule"),
+  fDigitsMap(),
   fNx(-1),
   fNz(-1),
   fNCx(-1),
index 248f43badd798256c1070aecc18947bf37b77060..febe59dd913e5a82d62668b800decfca28f7ed65 100644 (file)
@@ -56,21 +56,6 @@ public:
 // ScaledDigit
 /******************************************************************************/
 
-class ScaledDigit : public TObject
-{
-public:
-  Int_t N;
-  Float_t sum;
-  Float_t sqr_sum;
-  Int_t min_i,min_j;
-  Int_t max_i,max_j;
-
-  ScaledDigit();
-  ScaledDigit(Int_t di, Int_t dj);
-
-  virtual void Dump() const;
-};
-
 /******************************************************************************/
 // AliEveITSScaledModule
 /******************************************************************************/
@@ -78,6 +63,23 @@ public:
 class AliEveITSScaledModule : public AliEveITSModule
 {
   friend class ITSSDSubEditor;
+
+public:
+  struct ScaledDigit : public TObject
+  {
+  public:
+    Int_t N;
+    Float_t sum;
+    Float_t sqr_sum;
+    Int_t min_i,min_j;
+    Int_t max_i,max_j;
+
+    ScaledDigit();
+    ScaledDigit(Int_t di, Int_t dj);
+
+    void Dump() const;
+  };
+
 private:
   std::map<Int_t, ScaledDigit> fDigitsMap;
 
@@ -85,7 +87,7 @@ private:
   AliEveITSScaledModule& operator=(const AliEveITSScaledModule&); // Not implemented
 
 protected:
-  Int_t       fNx;  //  per module
+  Int_t       fNx;   // per module
   Int_t       fNz;
 
   Int_t       fNCx;  // per cell
@@ -105,7 +107,7 @@ public:
   void         SyncPalette();
 
   void         GetScaleData(Int_t& cnx, Int_t& cnz, Int_t& total);
-  AliEveDigitScaleInfo*  GetScaleInfo(){ return fScaleInfo; }
+  AliEveDigitScaleInfo*  GetScaleInfo() { return fScaleInfo; }
 
   ClassDef(AliEveITSScaledModule, 1);
 }; // endclass AliEveITSScaledModule
index 518e65facc64292a2d4298b929788b99708c21d0..0b34522e6167fff8d1d34605b844c65e9cdd9280 100644 (file)
@@ -39,10 +39,10 @@ AliMUONGeometryTransformer* AliEveMUONChamberData::fgTransformer = 0;
 //______________________________________________________________________________
 AliEveMUONChamberData::AliEveMUONChamberData(Int_t chamber) :
   TObject(),
-  fChamberID(0),           
-  fNDetElem(0),            
-  fNDigits(0),             
-  fNClusters(0),           
+  fChamberID(0),
+  fNDetElem(0),
+  fNDigits(0),
+  fNClusters(0),
   fNHits(0)
 {
   //
index 49f1b70c22813158f8cb1aea2638986ff42550cf..e58308a7a7abd2cbddf92d3c3c143ceb49222ae1 100644 (file)
@@ -6,22 +6,6 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
 
 #include <Riostream.h>
 
@@ -47,6 +31,7 @@ ClassImp(AliEveMUONChamberGL)
 AliEveMUONChamberGL::AliEveMUONChamberGL() :
   TGLObject(),
   fChamber(0),
+  fQS1(), fQS2(),
   fRTS(0)
 {
   //
index 93a9c5ca952414648c17a590be5c20b8a54b319a..802716708a23b52abcabf79c3d553cd4b95309c5 100644 (file)
@@ -30,7 +30,7 @@ class AliEveMUONChamberGL : public TGLObject
   void DrawQuads(TGLRnrCtx& rnrCtx) const;
   void DrawPoints() const;
 
-  AliEveMUONChamber*             fChamber; // fModel dynamic-casted to AliEveMUONChamberGL
+  AliEveMUONChamber       *fChamber; // Model object.
   TEveQuadSetGL            fQS1;
   TEveQuadSetGL            fQS2;
 
index 4e48e79d3750b4f5e16e5be7963894da5de66357..8862ddcd066c0bfc5ad701b10776e960decb2ec3 100644 (file)
@@ -109,22 +109,24 @@ AliEveTOFSector::AliEveTOFSector(TGeoManager *localGeoManager,
   InitModule();
 
 }
+
 /* ************************************************************************ */
 
-AliEveTOFSector::AliEveTOFSector(TGeoManager *localGeoManager,
-                    Int_t nSector,
-                    TTree *tofTree)
-  :
-  TEveQuadSet(Form("Sector%i",nSector)),
+AliEveTOFSector::AliEveTOFSector(TGeoManager* localGeoManager,
+                                Int_t nSector, TTree *tofTree) :
+  TEveQuadSet(Form("Sector%i", nSector)),
   fTOFgeometry(new AliTOFGeometry()),
   fTOFarray(0x0),
   fTOFtree(tofTree),
   fSector(nSector),
   fDx(0), fDy(0), fDz(0),
   fAutoTrans (kTRUE),
-  //fPlateFlag0(kTRUE), fPlateFlag1(kTRUE), fPlateFlag2(kTRUE), fPlateFlag3(kTRUE), fPlateFlag4(kTRUE),
-  fThreshold (5), fMaxVal    (80),
+  fMinTime   (0), fMaxTime (0),
+  fThreshold (5), fMaxVal  (80),
   fSectorID  (nSector),
+  fPlateFlag (0), fPlateFlag0(kFALSE), fPlateFlag1(kFALSE), fPlateFlag2(kFALSE), fPlateFlag3(kTRUE), fPlateFlag4(kFALSE),
+  fFrameColor(4),
+  fRnrFrame  (kFALSE),
   fGeoManager(localGeoManager)
 {
 
index d50462ee0b50671a1a2c27e115e86aa53b52e96e..ca5d87a120dfd4e39bf61c2e9dca825ff256dfaf 100644 (file)
 
 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) ,
-    //fHMTrans   (0),
-    fSectorID  (0), fAutoTrans (0),
-    fPlate0(0x0), fPlate1(0x0), fPlate2(0x0), fPlate3(0x0), fPlate4(0x0),
-    fThreshold (0), fMaxVal    (0)
-    // fTime      (0)
-    // Initialize widget pointers to 0
-    //{
-
-    /*
-      fHMTrans = new TEveTransSubEditor(this);
-      fHMTrans->Connect("UseTrans()",     "AliEveTPCSectorVizEditor", this, "Update()");
-      fHMTrans->Connect("TransChanged()", "AliEveTPCSectorVizEditor", this, "Update()");
-      AddFrame(fHMTrans, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0));
-
-      MakeTitle("AliEveTPCSectorViz");*/
+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)
 {
 
   fPlate = new TGCheckButton*[5];
@@ -75,74 +63,72 @@ ClassImp(AliEveTOFSectorEditor)
   // fXYZZ = new TGSomeWidget(this, ...);
   // AddFrame(fXYZZ, new TGLayoutHints(...));
   // 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)","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)","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)","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)","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)","AliEveTOFSectorEditor", this, "DoPlate4()");
-    //fPlate4->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
-
-
-    fPlate[0] = fPlate0;
-    fPlate[1] = fPlate1;
-    fPlate[2] = fPlate2;
-    fPlate[3] = fPlate3;
-    fPlate[4] = fPlate4;
-
-    AddFrame(f, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
-
-    fThreshold = new TEveGValuator(this, "Threshold", 200, 0);
-    fThreshold->SetNELength(4);
-    fThreshold->SetLabelWidth(60);
-    fThreshold->Build();
-    fThreshold->GetSlider()->SetWidth(120);
-    fThreshold->SetLimits(0,250);
-    fThreshold->Connect("ValueSet(Double_t)",
-                       "AliEveTOFSectorEditor", this, "DoThreshold()");
-    AddFrame(fThreshold, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
-
-    fMaxVal = new TEveGValuator(this,"MaxVal", 200, 0);
-    fMaxVal->SetNELength(4);
-    fMaxVal->SetLabelWidth(60);
-    fMaxVal->Build();
-    fMaxVal->GetSlider()->SetWidth(60);
-    fMaxVal->SetLimits(0, 500);
-    fMaxVal->Connect("ValueSet(Double_t)",
-                    "AliEveTOFSectorEditor", this, "DoMaxVal()");
-    AddFrame(fMaxVal, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
+  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)","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)","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)","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)","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)","AliEveTOFSectorEditor", this, "DoPlate4()");
+  //fPlate4->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoPlate(Int_t)");
+
+  fPlate[0] = fPlate0;
+  fPlate[1] = fPlate1;
+  fPlate[2] = fPlate2;
+  fPlate[3] = fPlate3;
+  fPlate[4] = fPlate4;
+
+  AddFrame(f, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
+
+  fThreshold = new TEveGValuator(this, "Threshold", 200, 0);
+  fThreshold->SetNELength(4);
+  fThreshold->SetLabelWidth(60);
+  fThreshold->Build();
+  fThreshold->GetSlider()->SetWidth(120);
+  fThreshold->SetLimits(0,250);
+  fThreshold->Connect("ValueSet(Double_t)",
+                     "AliEveTOFSectorEditor", this, "DoThreshold()");
+  AddFrame(fThreshold, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
+
+  fMaxVal = new TEveGValuator(this,"MaxVal", 200, 0);
+  fMaxVal->SetNELength(4);
+  fMaxVal->SetLabelWidth(60);
+  fMaxVal->Build();
+  fMaxVal->GetSlider()->SetWidth(60);
+  fMaxVal->SetLimits(0, 500);
+  fMaxVal->Connect("ValueSet(Double_t)",
+                  "AliEveTOFSectorEditor", this, "DoMaxVal()");
+  AddFrame(fMaxVal, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
 
 }
 
-
-
-
 AliEveTOFSectorEditor::~AliEveTOFSectorEditor()
-{}
+{
+  delete [] fPlate;
+}
 
 /******************************************************************************/
 
@@ -158,9 +144,6 @@ void AliEveTOFSectorEditor::SetModel(TObject* obj)
   fPlate2->SetState(fM->GetPlate(2) ? kButtonDown : kButtonUp);
   fPlate3->SetState(fM->GetPlate(3) ? kButtonDown : kButtonUp);
   fPlate4->SetState(fM->GetPlate(4) ? kButtonDown : kButtonUp);
-
-  // Set values of widgets
-  // fXYZZ->SetValue(fM->GetXYZZ());
 }
 
 /******************************************************************************/
@@ -227,39 +210,3 @@ void AliEveTOFSectorEditor::DoMaxVal()
   fMaxVal->SetValue(fM->GetMaxVal());
   Update();
 }
-
-/******************************************************************************/
-/*
-void AliEveTOFSectorEditor::DoTime()
-{
-  fM->SetMinTime((Int_t) fTime->GetMin());
-  fM->SetMaxTime((Int_t) fTime->GetMax());
-  Update();
-}
-*/
-
-/******************************************************************************/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// Implements callback/slot methods
-
-// void AliEveTOFSectorEditor::DoXYZZ()
-// {
-//   fM->SetXYZZ(fXYZZ->GetValue());
-//   Update();
-// }
index 24bc495b0b9eb774314756b3c0d5e9beed520081..5eea098f17654aa71f84e2dbf897cd53cec76758 100644 (file)
@@ -24,58 +24,51 @@ class TEveGDoubleValuator;
 class TEveTransSubEditor;
 
 
-  class AliEveTOFSector;
+class AliEveTOFSector;
 
-  class AliEveTOFSectorEditor : public TGedFrame
-  {
-    //private:
-    AliEveTOFSectorEditor(const AliEveTOFSectorEditor&);            // Not implemented
-    AliEveTOFSectorEditor& operator=(const AliEveTOFSectorEditor&); // Not implemented
+class AliEveTOFSectorEditor : public TGedFrame
+{
+private:
+  AliEveTOFSectorEditor(const AliEveTOFSectorEditor&);            // Not implemented
+  AliEveTOFSectorEditor& operator=(const AliEveTOFSectorEditor&); // Not implemented
 
-  protected:
-    AliEveTOFSector* fM; // fModel dynamic-casted to AliEveTOFSectorEditor
+protected:
+  AliEveTOFSector*  fM; // Model object.
 
-    TEveGValuator* fSectorID;
+  TEveGValuator*    fSectorID;
 
-    TGCheckButton*    fAutoTrans;
+  TGCheckButton*    fAutoTrans;
 
-    TGCheckButton**    fPlate;
+  TGCheckButton**   fPlate;
 
-    TGCheckButton*    fPlate0;
-    TGCheckButton*    fPlate1;
-    TGCheckButton*    fPlate2;
-    TGCheckButton*    fPlate3;
-    TGCheckButton*    fPlate4;
+  TGCheckButton*    fPlate0;
+  TGCheckButton*    fPlate1;
+  TGCheckButton*    fPlate2;
+  TGCheckButton*    fPlate3;
+  TGCheckButton*    fPlate4;
 
-    TEveGValuator* fThreshold;
-    TEveGValuator* fMaxVal;
+  TEveGValuator*    fThreshold;
+  TEveGValuator*    fMaxVal;
 
+public:
+  AliEveTOFSectorEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
+                       UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
+  virtual ~AliEveTOFSectorEditor();
 
-    // Declare widgets
-    // TGSomeWidget*   fXYZZ;
+  virtual void SetModel(TObject* obj);
+  void DoSectorID();
+  void DoAutoTrans();
+  void DoPlate0();
+  void DoPlate1();
+  void DoPlate2();
+  void DoPlate3();
+  void DoPlate4();
 
-  public:
-    AliEveTOFSectorEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
-    virtual ~AliEveTOFSectorEditor();
+  void DoPlate(Int_t nPlate);
+  void DoThreshold();
+  void DoMaxVal();
 
-    virtual void SetModel(TObject* obj);
-    void DoSectorID();
-    void DoAutoTrans();
-    void DoPlate0();
-    void DoPlate1();
-    void DoPlate2();
-    void DoPlate3();
-    void DoPlate4();
-
-    void DoPlate(Int_t nPlate);
-    void DoThreshold();
-    void DoMaxVal();
-
-
-    // Declare callback/slot methods
-    // void DoXYZZ();
-
-    ClassDef(AliEveTOFSectorEditor, 0); // Editor for AliEveTOFSector
-  }; // endclass AliEveTOFSectorEditor
+  ClassDef(AliEveTOFSectorEditor, 0); // Editor for AliEveTOFSector
+}; // endclass AliEveTOFSectorEditor
 
 #endif
index 4b74d97b33b2bf57f76eb58d6c93558168627805..c598c96b21e72e94b008b95756b69b9db7021387 100644 (file)
@@ -11,7 +11,7 @@
 #define ALIEVE_TRDLoaderManager_H
 
 ////////////////////////////////////////////////////////////////////////
-//                                                                      
+//
 // - ALIEVE implementation -
 // Loader manager for the TRD detector
 //    - AliEveTRDLoaderManager - manager of TRD data loaders (simulation + measured)
@@ -70,7 +70,7 @@ private:
   TGComboBox   *fSelector;
   TGTextButton *fAdd, *fRemoveButton;
   TGGroupFrame         *fGroupFrame;
-  TClonesArray *fRemove;              
+  TClonesArray *fRemove;
 
   ClassDef(AliEveTRDLoaderManagerEditor, 1); // Editor for AliEveTRDLoaderManager
 };
index c6c028875281801570d80f93bf848ad9b10aafa8..3a446a6ae54ec4c72f00737c65c5af75cc0b0995 100644 (file)
@@ -64,7 +64,7 @@ AliEveTRDModuleEditor::AliEveTRDModuleEditor(const TGWindow* p, Int_t width, Int
   fThresValue(0),
   fDisplayClusters(0),
   fClustersColor(0),
-  fDisplayTracks(0)                               
+  fDisplayTracks(0)
 {
   MakeTitle("TRD Detector");