From Cvetan: when opening an event from ESD get the first tree-entry so that run...
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveJetPlaneEditor.h
CommitLineData
d810d0de 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 *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
4673ff03 9
a15e6d7d 10#ifndef AliEveJetPlaneEditor_H
11#define AliEveJetPlaneEditor_H
4673ff03 12
13#include <TGedFrame.h>
4673ff03 14
15class TGButton;
16class TGCheckButton;
17class TGNumberEntry;
18class TGColorSelect;
84aff7a4 19class TEveGValuator;
4673ff03 20
d810d0de 21class AliEveJetPlane;
4673ff03 22
d810d0de 23class AliEveJetPlaneEditor : public TGedFrame
4673ff03 24{
4673ff03 25public:
d810d0de 26 AliEveJetPlaneEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
a97abca8 27 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
28 virtual ~AliEveJetPlaneEditor() {}
4673ff03 29
30 virtual void SetModel(TObject* obj);
31
32 // Declare callback/slot methods
33 // void DoXYZZ();
34 void DoRnrJets();
35 void DoRnrTracks();
36 void DoEnergyColorScale();
37 void DoEnergyScale();
38 void DoOneSelection();
39 void DoTwoSelection();
40 void DoStaticDataWindow();
41
42
43 // --- Internal class for common settings
4b456ebb 44
4673ff03 45 class StaticDataWindow : public TGTransientFrame
46 {
4673ff03 47 public:
48 StaticDataWindow(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h,
49 UInt_t options = kVerticalFrame);
50 virtual ~StaticDataWindow();
51
52 // slots
53 void DoClose();
54 void DoOK();
55 void DoCancel();
56 void DoTab(Int_t id);
57
4b456ebb 58 private:
59 StaticDataWindow(const StaticDataWindow&); // Not implemented
60 StaticDataWindow& operator=(const StaticDataWindow&); // Not implemented
61
62 TGCompositeFrame *fFrame1, *fF2; // Frames.
63 TGButton *fOkButton, *fCancelButton; // Ok, cancel buttons.
64 TGLayoutHints *fL1, *fL2, *fL3, *fL5; // Layout hints.
65 TGTab *fTab; // Tab container.
66 TGButton *fChk1, *fChk2,*fChk3, *fChk4,*fChk5; // Check-buttons.
67
a97abca8 68 ClassDef(StaticDataWindow, 0); // Common settings for all AliEveJetPlane objects.
4673ff03 69 };
70
71protected:
4b456ebb 72 AliEveJetPlane *fM; // Model object.
73
74 TGCheckButton *fRnrJets; // Widget for flag RnrJets.
75 TGCheckButton *fRnrTracks; // Widget for flag RnrTracks.
76 TEveGValuator *fEnergyScale; // Widget for EnergyScale.
77 TEveGValuator *fEnergyColorScale; // Widget for EnergyColorScale.
78 TGButton *fOneSelection, *fTwoSelection; // Widgets for one/two selection flags.
79 TGButton *fInformationSetup; // Widget for InformationSetup.
80
a97abca8 81 static StaticDataWindow* fgStaticWindow; // Common window for global settings.
4673ff03 82
4b456ebb 83private:
84 AliEveJetPlaneEditor(const AliEveJetPlaneEditor&); // Not implemented
85 AliEveJetPlaneEditor& operator=(const AliEveJetPlaneEditor&); // Not implemented
86
87 ClassDef(AliEveJetPlaneEditor, 0); // Editor for AliEveJetPlane.
88};
4673ff03 89
90#endif