]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPainterDataSourceFrame.h
Warnings corrected.
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterDataSourceFrame.h
index 3c44d9be7d03938a450dc82e2c17501c002dd4a5..29315a19cba2a6d137f674dbf9c3dcf3455762e0 100644 (file)
 #  include <TGFrame.h>
 #endif
 
+class AliMUONAttPainter;
 class AliMUONPainterDataSourceItem;
+class AliMUONPainterMatrix;
 class AliMUONVTrackerDataMaker;
+class AliMUONVTrackerData;
 class TGCheckButton;
 class TGComboBox;
 class TGGroupFrame;
@@ -35,21 +38,34 @@ public:
   
   void CreateOCDBDataSource();
 
+  void CreateACFDataSource();
+
   void CreateRawDataSource();
   
-  void DataReaderWasRegistered(AliMUONVTrackerDataMaker* reader);
+  void DataMakerWasRegistered(AliMUONVTrackerDataMaker* reader);
   
-  void DataReaderWasUnregistered(AliMUONVTrackerDataMaker* reader);
+  void DataMakerWasUnregistered(AliMUONVTrackerDataMaker* reader);
 
   void HistogramButtonClicked();
   
   void OpenFileDialog();
   
+  void OpenFileDialogACF();
+  
   void OpenRecentSource();
 
-  void StartRunning(AliMUONPainterDataSourceItem* item);
+  void StartRunning();
 
-  void StopRunning(AliMUONPainterDataSourceItem* item);
+  void StopRunning();
+
+  static void CreatePedestalCanvases(AliMUONVTrackerData* data,
+                                     Double_t pedMin=0, Double_t pedMax=500,
+                                     Double_t sigmaMin=0, Double_t sigmaMax=5);
+  
+  static AliMUONPainterMatrix* CreateFullTracker(AliMUONVTrackerData* data, 
+                                                 Int_t dim, 
+                                                 Double_t xmin, Double_t xmax, 
+                                                 const AliMUONAttPainter& att);
 
 private:
   /// Not implemented
@@ -65,6 +81,12 @@ private:
 
   void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type);
 
+  void CreateACFDataSource(const TString& uri);
+
+  void CreateACFDataSource(const TString& acfPath, const TString& type);
+  
+  void RegisterDataSource(AliMUONVTrackerDataMaker* reader, const char* dsName);
+  
 private:
     
   TGGroupFrame* fRecentSourceSelector; ///< to select recently used sources   
@@ -77,6 +99,7 @@ private:
   TGCheckButton* fCalibrateNoGain; ///< to trig calibration of raw data (only 0 suppression)
   TGCheckButton* fCalibrateGainConstantCapa; ///< to trig calibration of raw data (0-supp and gain w/ constant capacitance)
   TGCheckButton* fCalibrateGain; ///< to trig calibration of raw data (full blown calibration)
+  TGCheckButton* fCalibrateEmelecGain; ///< to trig calibration of raw data (full blown calibration but with factory gains)
   TGCheckButton* fHistogramButton; ///< to trig histogramming of raw data
   TGNumberEntry* fHistoMin; ///< xmin of histo to make
   TGNumberEntry* fHistoMax; ///< xmax of histo to make
@@ -91,10 +114,14 @@ private:
   TGComboBox* fRecentSources; ///< recent sources combo box  
   TObjArray* fItems; ///< list of data readers we handle
   
+  TGGroupFrame* fACFSelector; ///< to select ACF (ASCII calibration files)
+  TGTextEntry* fACFPath; ///< path to ASCII calibration file
+  TGComboBox* fACFTypes; ///< types of ASCII calibration files 
+
   static const char* fgkNumberOfDataSourcesKey; ///< key used to store the # of data sources in the resource file
   static const char* fgkDataSourceURIKey; ///< key usde to store the data source URIs in the resource file
 
-  ClassDef(AliMUONPainterDataSourceFrame,2) // Data source selection frame
+  ClassDef(AliMUONPainterDataSourceFrame,4) // Data source selection frame
 };
 
 #endif