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