]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPainterMatrix.h
TDC added to monitor ZDC timing via DQM
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterMatrix.h
index b5e50a193e412b856e0590f08fb7dbe0b7ec09cd..dff15d56ecef3362e5fb269edd04911ecd460370 100644 (file)
@@ -25,6 +25,7 @@
 class AliMUONVPainter;
 class AliMUONVTrackerData;
 class TObjArray;
+class TCanvas;
 
 class AliMUONPainterMatrix : public TObject
 {
@@ -42,8 +43,6 @@ public:
   void Connect(const char* sourceMethod, const char* destClassName, 
                void* destObject, const char* destMethod);
     
-//  void ChangeAttributes(const AliMUONAttPainter& attributes);
-  
   /// Get our attributes
   const AliMUONAttPainter& Attributes() const { return fAttributes; }
   
@@ -52,17 +51,17 @@ public:
   
   /// Get the data range for this matrix
   void GetDataRange(Double_t& dataMin, Double_t& dataMax) const;
-  
-  /// Get our name
-  virtual const char* GetName() const { return Name().Data(); }
 
-  static TString NameIt(const TString& basename, const AliMUONAttPainter& att);
+  /// Get matrix name
+  virtual const char* GetName() const { return Name(); }
+
+  /// Get our name
+  virtual const char* Name() const;
 
-  /// Matrix name
-  virtual TString Name() const { return fName; }
-  
   /// Base name (short name)
-  virtual TString Basename() const { return fBasename; }
+  const char* Basename() const { return fBasename.Data(); }
+  
+  const char* Whatname() const { return fWhatname.Data(); }
   
   void GetTypes(TObjArray& types) const;
 
@@ -99,6 +98,12 @@ public:
   /// Normalize attributes
   AliMUONAttPainter Validate(const AliMUONAttPainter& att) const;
   
+  static TString NameIt(const char* what, const char* basename, const AliMUONAttPainter& att);
+
+  void Draw(Option_t* opt="");
+  
+  TCanvas* CreateCanvas(Int_t x=0, Int_t y=0, Int_t w=-1, Int_t h=-1);
+
 private:
   /// Not implemented
   AliMUONPainterMatrix(const AliMUONPainterMatrix& rhs);
@@ -109,13 +114,13 @@ private:
   
 private:
   TString fBasename; ///< base name of that matrix
-  TString fName; ///< complete name
+  TString fWhatname; ///< data name
   Int_t fNx; ///< number of rows
   Int_t fNy; ///< number of columns
   TObjArray* fPainters; ///< painters in that matrix
   AliMUONAttPainter fAttributes; ///< attributes of our painter(s)
   
-  ClassDef(AliMUONPainterMatrix,1) // Matrix of AliMUONVPainter
+  ClassDef(AliMUONPainterMatrix,2) // Matrix of AliMUONVPainter
 };
 
 #endif