]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTPCLoaderEditor.h
fix coverity
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCLoaderEditor.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 AliEveTPCLoaderEditor_H
11 #define AliEveTPCLoaderEditor_H
12
13 #include <TGedFrame.h>
14
15 class TGTextButton;
16 class TGCheckButton;
17 class TGNumberEntry;
18 class TGColorSelect;
19 class TGTextEntry;
20
21 class TEveGValuator;
22 class TEveGDoubleValuator;
23
24 class AliEveTPCLoader;
25
26 //------------------------------------------------------------------------------
27 // AliEveTPCLoaderEditor
28 //
29 // GUI editor for AliEveTPCLoader.
30 //
31
32 class AliEveTPCLoaderEditor : public TGedFrame
33 {
34   AliEveTPCLoaderEditor(const AliEveTPCLoaderEditor&);            // Not implemented
35   AliEveTPCLoaderEditor& operator=(const AliEveTPCLoaderEditor&); // Not implemented
36
37 public:
38   AliEveTPCLoaderEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
39                         UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
40   virtual ~AliEveTPCLoaderEditor() {}
41
42   virtual void SetModel(TObject* obj);
43
44   void FileSelect();
45   void FileChanged();
46   void DoOpen();
47
48   void DoEvent();
49   void DoDoubleSR();
50
51   void DoDataLoadThreshold();
52   void DoDataLoadPedestal();
53   void DoDataAutoPedestal();
54
55   void DoUpdateSectors();
56   void DoReloadSectors();
57   void DoCreateSectors3D();
58   void DoDeleteSectors3D();
59   void DoShowSectors2D();
60   void DoHideSectors2D();
61
62 protected:
63   AliEveTPCLoader *fM;                  // Model object.
64
65   TGTextEntry     *fFile;               // Text entry for file-name.
66   TGTextButton    *fOpenFile;           // Button to open the file.
67
68   TEveGValuator   *fEvent;              // Valueator for event number.
69   TGCheckButton   *fDoubleSR;           // Check-box for double sampling-rate.
70
71   // AliEveTPCData loading settings
72   TEveGValuator   *fDataLoadThreshold;  // Valuator for threshold.
73   TEveGValuator   *fDataLoadPedestal;   // Valuator for pedestal.
74   TGCheckButton   *fDataAutoPedestal;   // Check-box for auto pedestal.
75
76   TGTextButton    *fUpdateSectors;      // Button to update sectors.
77   TGTextButton    *fReloadSectors;      // Button to reload sectors.
78   TGTextButton    *fCreateSectors3D;    // Button to create 3D sectors.
79   TGTextButton    *fDeleteSectors3D;    // Button to delete 3D sectors.
80
81   TEveGDoubleValuator *gEtaRange;       // Slider to set eta cuts
82   TGCheckButton *gCutOnEta;             // Checkbutton to apply eta cuts
83
84   ClassDef(AliEveTPCLoaderEditor, 0); // Editor for AliEveTPCLoader.
85 };
86
87 #endif