]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpGraphContext.h
Option for customized binning (as in AliUEHist), EventMixing binning now derived...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpGraphContext.h
index e9e7967fcfd04367e523282eee12fcf57557667f..23fd27f0b65fd0157d819712332637ea822aeaa1 100755 (executable)
@@ -2,22 +2,23 @@
  * See cxx source for full Copyright notice                               */
 
 // $Id$
-// $MpId: AliMpGraphContext.h,v 1.7 2005/08/26 15:43:36 ivana Exp $
+// $MpId: AliMpGraphContext.h,v 1.11 2006/05/24 13:58:13 ivana Exp $
 
-/// \ingroup graphics
+/// \ingroup mpgraphics
 /// \class AliMpGraphContext
 /// \brief Class describing the correspondance between a given area
 /// in pad, and a zone of real (cm) position
 ///
-/// Author: David GUEZ, IPN Orsay
+/// \author David GUEZ, IPN Orsay
 
 #ifndef ALI_MP_GRAPH_CONTEXT_H
 #define ALI_MP_GRAPH_CONTEXT_H
 
 #include <TObject.h>
-#include <TVector2.h>
 
-#include "AliMpGraphicsTypes.h"
+#include "AliMpExMap.h"
+
+#include <TVector2.h>
 
 class MPainter;
 
@@ -28,19 +29,33 @@ class AliMpGraphContext : public TObject
   void Pop();
   static AliMpGraphContext *Instance();
 
+  //
   // set methods
-
+  //
+           /// Set position of the pad area where to draw
   void SetPadPosition(const TVector2 &position){fPadPosition=position;}
+           /// Set dimensions of the pad area where to draw
   void SetPadDimensions(const TVector2 &dimensions){fPadDimensions=dimensions;}
+           /// Set position of the real area where to draw
   void SetRealPosition(const TVector2 &position){fRealPosition=position;}
+           /// Set dimensions of the real area where to draw
   void SetRealDimensions(const TVector2 &dimensions){fRealDimensions=dimensions;}
+           /// Set color to use
   void SetColor(Int_t color){fColor=color;}
 
+  //
   // get methods
+  //
+
+           /// Return position of the pad area where to draw
   TVector2 GetPadPosition() const {return fPadPosition;}
+           /// Return dimensions of the pad area where to draw
   TVector2 GetPadDimensions() const {return fPadDimensions;}
+           /// Return position of the real area where to draw
   TVector2 GetRealPosition() const{return fRealPosition;}
+           /// Return dimensions of the real area where to draw
   TVector2 GetRealDimensions() const{return fRealDimensions;}
+           /// Return color to use
   Int_t GetColor() const {return fColor;}
 
   //methods
@@ -59,20 +74,18 @@ class AliMpGraphContext : public TObject
   //private constructor (not instanciable from outside)
   AliMpGraphContext();
 
-  // static data members
-  static AliMpGraphContext *fgInstance;   // the global instance
-  static GraphContextVector fgStack;  // the object stack
-#ifdef WITH_ROOT
-  static Int_t fgStackSize;  // the object stack size
-#endif
+  ///< static data members
+  static AliMpGraphContext* fgInstance; ///< the global instance
+  static TObjArray          fgStack;    ///< the object stack
+  static Int_t              fgStackSize;///< the object stack size
 
   //data members
-  Int_t    fColor;          // color to use
-  TVector2 fPadPosition;    // Position of the pad area where to draw
-  TVector2 fPadDimensions;   // Dimensions of the pad area where to draw
+  Int_t    fColor;          ///< color to use
+  TVector2 fPadPosition;    ///< Position of the pad area where to draw
+  TVector2 fPadDimensions;  ///< Dimensions of the pad area where to draw
 
-  TVector2 fRealPosition;   // Position of the real area to draw
-  TVector2 fRealDimensions;  // Dimensions of the real area to draw
+  TVector2 fRealPosition;   ///< Position of the real area to draw
+  TVector2 fRealDimensions; ///< Dimensions of the real area to draw
 
   ClassDef(AliMpGraphContext,1) // Correspondance pad area/real world
 };