]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPainterDataSourceItem.h
Return value if the method is not void
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterDataSourceItem.h
CommitLineData
0145e89a 1#ifndef ALIMUONPAINTERDATASOURCEITEM_H
2#define ALIMUONPAINTERDATASOURCEITEM_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup graphics
10/// \class AliMUONPainterDataSourceItem
11/// \brief A widget describing a single data source
12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ROOT_TGFrame
16# include "TGFrame.h"
17#endif
18
19class AliMUONVTrackerDataMaker;
20class TGLabel;
21class TGTextButton;
22class AliMUONPainterDataReader;
23class TThread;
24
25class AliMUONPainterDataSourceItem : public TGCompositeFrame
26{
27public:
28 AliMUONPainterDataSourceItem(const TGWindow* p, UInt_t w, UInt_t h,
29 AliMUONVTrackerDataMaker* reader);
30 virtual ~AliMUONPainterDataSourceItem();
31
32 void Run();
33
34 void Stop();
35
36 void Rewind();
37
10eb3d17 38//void Remove(); //*SIGNAL*
0145e89a 39
40 void Update();
41
42 void Reset();
43
10eb3d17 44 /// Return data source reader
45 AliMUONVTrackerDataMaker* DataMaker() const { return fDataReader; }
46
47 void EnableRun();
48
49 void DisableRun();
50
51 void StartRunning(); //*SIGNAL*
52
53 void StopRunning(); //*SIGNAL*
54
0145e89a 55private:
56 /// Not implemented
57 AliMUONPainterDataSourceItem(const AliMUONPainterDataSourceItem& rhs);
58 /// Not implemented
59 AliMUONPainterDataSourceItem& operator=(const AliMUONPainterDataSourceItem& rhs);
60
61 AliMUONVTrackerDataMaker* fDataReader; ///< data source reader (not owner)
62 TGLabel* fSourceName; ///< the (short) name of the data source
63 TGLabel* fSource; ///< the full uri of the data source
64 TGLabel* fNumberOfEvents; ///< number of evts this source has seen so far
65 TGTextButton* fRun; ///< button to start running over the source
66 TGTextButton* fStop; ///< button to stop running over the source
67 TGTextButton* fRewind; ///< button to rewind events for the source
68 TGTextButton* fRemove; ///< button to remove the source
69
70 TThread* fThread; ///< thread used to actually loop over the data
71 Long_t fParams[2]; ///< used in conjunction with fThread
72
73 Bool_t fShouldReset; ///< whether we should reset or not...
74
75 ClassDef(AliMUONPainterDataSourceItem,1) // Data source widget
76};
77
78#endif