]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveBase/AliEveTrackCounterEditor.h
From Stefano:
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveTrackCounterEditor.h
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 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 AliEveTrackCounterEditor_H
11 #define AliEveTrackCounterEditor_H
12
13 #include "TGedFrame.h"
14 #include <fstream>
15
16 class TGComboBox;
17 class TGLabel;
18 class TGNumberEntry;
19
20 class AliEveTrackCounter;
21
22 //______________________________________________________________________________
23 // Short description of AliEveTrackCounterEditor
24 //
25
26 class AliEveTrackCounterEditor : public TGedFrame
27 {
28 public:
29    AliEveTrackCounterEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
30                             UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
31    virtual ~AliEveTrackCounterEditor();
32
33    void UpdateModel();
34
35    virtual void SetModel(TObject* obj);
36
37    void DoActivate();
38    void DoDeactivate();
39
40    void DoPrev();
41    void DoNext();
42    void DoSetEvent();
43
44    void DoPrintReport();
45    void DoFileReport();
46    void DoShowHistos();
47
48    void DoClickAction(Int_t);
49    void DoEventCategorization(Int_t);
50
51 protected:
52    AliEveTrackCounter *fM; // Model object.
53
54    TGCompositeFrame *fAF;  // Active frame.
55    TGCompositeFrame *fDF;  // Non-active frame.
56
57    TGComboBox       *fClickAction;
58    TGLabel          *fInfoLabelTracks;
59    TGLabel          *fInfoLabelTracklets;
60    TGNumberEntry    *fEventId;
61
62    int               fEventCat;
63    ofstream         *fScanSummaryFile;
64    
65 private:
66    AliEveTrackCounterEditor(const AliEveTrackCounterEditor&);            // Not implemented
67    AliEveTrackCounterEditor& operator=(const AliEveTrackCounterEditor&); // Not implemented
68
69    ClassDef(AliEveTrackCounterEditor, 0); // GUI editor for AliEveTrackCounter.
70 };
71
72 #endif