]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/ITSScaledModuleEditor.h
Invert the modality of run-loader and esd loading: always try to open them and compla...
[u/mrichter/AliRoot.git] / EVE / Alieve / ITSScaledModuleEditor.h
1 // $Header$
2
3 #ifndef ALIEVE_ITSScaledModuleEditor_H
4 #define ALIEVE_ITSScaledModuleEditor_H
5
6 #include <TGedFrame.h>
7 #include <Reve/RGBAPaletteEditor.h>
8
9 class TGNumberEntry;
10 class TGColorSelect;
11 class TGComboBox;
12
13 namespace Reve 
14 {
15 class RGValuator;
16 class RGDoubleValuator;
17 class RGBAPalette;
18 class ZTransSubEditor;
19 }
20
21 namespace Alieve {
22
23 class DigitScaleInfo;
24 class ITSScaledModule;
25 class AliITSsegmentation;
26
27 class ITSSDSubEditor : public Reve::RGBAPaletteSubEditor
28 {
29 private:
30   ITSSDSubEditor(const ITSSDSubEditor&);            // Not implemented
31   ITSSDSubEditor& operator=(const ITSSDSubEditor&); // Not implemented
32   
33   void GetSubDetScaleData(Int_t& cnx, Int_t& cnz, Int_t& total, Float_t& maxoc);
34   void SetPaletteFromDigitInfo();
35 protected:
36   ITSScaledModule*  fModule;
37
38   TGNumberEntry*    fScale;
39   TGComboBox*       fStatistic;  
40
41   TGLabel*          fInfoLabel0;
42   TGLabel*          fInfoLabel1;
43   TGLabel*          fInfoLabel2;
44
45 public:
46   ITSSDSubEditor(const TGWindow* p);
47   virtual ~ITSSDSubEditor() {}
48
49   void SetModel(ITSScaledModule* sm);
50
51   void DoScale();
52   void DoStatType(Int_t t);
53
54   ClassDef(ITSSDSubEditor, 1); // SubEditor for RGBAPalelet and scaled digits
55 };  // endclass ITSSDPaletteSubEditor
56
57 /**************************************************************************/
58
59 class ITSScaledModuleEditor : public TGedFrame
60 {
61 private:
62   ITSScaledModuleEditor(const ITSScaledModuleEditor&);            // Not implemented
63   ITSScaledModuleEditor& operator=(const ITSScaledModuleEditor&); // Not implemented
64
65 protected:
66   ITSScaledModule*       fM; // fModel dynamic-casted to ITSScaledModuleEditor
67
68   Reve::ZTransSubEditor* fHMTrans;
69   ITSSDSubEditor*        fSDPalette;
70   
71 public:
72   ITSScaledModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
73   virtual ~ITSScaledModuleEditor();
74
75   virtual void   ActivateBaseClassEditors(TClass* cl);
76
77   virtual void   SetModel(TObject* obj);
78
79   ClassDef(ITSScaledModuleEditor, 0); // Editor for ITSScaledModule
80 }; // endclass ITSScaledModuleEditor
81
82 }
83
84 #endif