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