1 #ifndef ALIMUONPAINTERDATASOURCEITEM_H
2 #define ALIMUONPAINTERDATASOURCEITEM_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPainterDataSourceItem
11 /// \brief A widget describing a single data source
13 // Author Laurent Aphecetche, Subatech
19 class AliMUONVTrackerDataMaker;
22 class AliMUONPainterDataReader;
25 class AliMUONPainterDataSourceItem : public TGCompositeFrame
28 AliMUONPainterDataSourceItem(const TGWindow* p, UInt_t w, UInt_t h,
29 AliMUONVTrackerDataMaker* reader);
30 virtual ~AliMUONPainterDataSourceItem();
46 AliMUONPainterDataSourceItem(const AliMUONPainterDataSourceItem& rhs);
48 AliMUONPainterDataSourceItem& operator=(const AliMUONPainterDataSourceItem& rhs);
50 AliMUONVTrackerDataMaker* fDataReader; ///< data source reader (not owner)
51 TGLabel* fSourceName; ///< the (short) name of the data source
52 TGLabel* fSource; ///< the full uri of the data source
53 TGLabel* fNumberOfEvents; ///< number of evts this source has seen so far
54 TGTextButton* fRun; ///< button to start running over the source
55 TGTextButton* fStop; ///< button to stop running over the source
56 TGTextButton* fRewind; ///< button to rewind events for the source
57 TGTextButton* fRemove; ///< button to remove the source
59 TThread* fThread; ///< thread used to actually loop over the data
60 Long_t fParams[2]; ///< used in conjunction with fThread
62 Bool_t fShouldReset; ///< whether we should reset or not...
64 ClassDef(AliMUONPainterDataSourceItem,1) // Data source widget