]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTPCSector2DEditor.h
try coverity fix 23965, condition checked twice
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCSector2DEditor.h
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef AliEveTPCSector2DEditor_H
11 #define AliEveTPCSector2DEditor_H
12
13 #include <TGedFrame.h>
14
15 class TGCheckButton;
16 class TGComboBox;
17
18 class AliEveTPCSector2D;
19
20 //------------------------------------------------------------------------------
21 // AliEveTPCSector2DEditor
22 //
23 // GUI editor for AliEveTPCSector2D.
24 //
25
26 class AliEveTPCSector2DEditor : public TGedFrame
27 {
28 public:
29   AliEveTPCSector2DEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
30                     UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
31   virtual ~AliEveTPCSector2DEditor() {}
32
33   virtual void SetModel(TObject* obj);
34
35   void DoShowMax();
36   void DoAverage();
37   void SetupAverage();
38
39   void DoUseTexture();
40   void DoPickEmpty();
41   void DoPickMode(Int_t mode);
42
43 protected:
44   AliEveTPCSector2D *fM;            // Model object.
45
46   TGCheckButton     *fShowMax;      // Check to show maximum signal.
47   TGCheckButton     *fAverage;      // Check-box to show average of the signal.
48
49   TGCheckButton     *fUseTexture;   // Check-box to use texture.
50   TGCheckButton     *fPickEmpty;    // Check-box for picking of empty pads.
51   TGComboBox        *fPickMode;     // Selector of pick-mode.
52
53 private:
54   AliEveTPCSector2DEditor(const AliEveTPCSector2DEditor&);            // Not implemented
55   AliEveTPCSector2DEditor& operator=(const AliEveTPCSector2DEditor&); // Not implemented
56
57   ClassDef(AliEveTPCSector2DEditor, 0); // Editor for AliEveTPCSector2D.
58 };
59
60 #endif