]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPainterDataSourceItem.h
From Michael Knichel: The THnSparses are not merged anymore, instead a set of 1D...
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterDataSourceItem.h
index dd193484a758167eb852a10a2ec40ad9b104a0ce..4f6aec55476aa551081293357e550a1472a8868f 100644 (file)
@@ -26,7 +26,7 @@ class AliMUONPainterDataSourceItem : public TGCompositeFrame
 {
 public:
   AliMUONPainterDataSourceItem(const TGWindow* p, UInt_t w, UInt_t h, 
-                               AliMUONVTrackerDataMaker* reader);
+                               AliMUONVTrackerDataMaker* maker);
   virtual ~AliMUONPainterDataSourceItem();
   
   void Run();
@@ -41,13 +41,31 @@ public:
   
   void Reset();
   
+  /// Return data source reader
+  AliMUONVTrackerDataMaker* DataMaker() const { return fDataMaker; }
+  
+  void EnableRun();
+  
+  void DisableRun();
+  
+  void StartRunning(); //*SIGNAL*
+
+  void StopRunning(); //*SIGNAL*
+
+  void Save();
+  
+  void SaveWithDialog();
+  
 private:
+    
+    void Save(const char* filename);
+  
   /// Not implemented
   AliMUONPainterDataSourceItem(const AliMUONPainterDataSourceItem& rhs);
   /// Not implemented
   AliMUONPainterDataSourceItem& operator=(const AliMUONPainterDataSourceItem& rhs);
   
-  AliMUONVTrackerDataMaker* fDataReader; ///< data source reader (not owner)  
+  AliMUONVTrackerDataMaker* fDataMaker; ///< data source reader (not owner)  
   TGLabel* fSourceName; ///< the (short) name of the data source
   TGLabel* fSource; ///< the full uri of the data source
   TGLabel* fNumberOfEvents; ///< number of evts this source has seen so far
@@ -55,13 +73,14 @@ private:
   TGTextButton* fStop; ///< button to stop running over the source
   TGTextButton* fRewind; ///< button to rewind events for the source
   TGTextButton* fRemove; ///< button to remove the source
-
+  TGTextButton* fSave; ///< button to save the source (filename is fixed)
+  TGTextButton* fSaveAs; ///< button to save as... 
   TThread* fThread; ///< thread used to actually loop over the data
   Long_t fParams[2]; ///< used in conjunction with fThread
   
   Bool_t fShouldReset; ///< whether we should reset or not...
   
-  ClassDef(AliMUONPainterDataSourceItem,1) // Data source widget
+  ClassDef(AliMUONPainterDataSourceItem,3) // Data source widget
 };
 
 #endif