1 #ifndef ALIMUONMANUPADPAINTER_H
2 #define ALIMUONMANUPADPAINTER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONManuPadPainter
11 /// \brief Painter for the pads of one manu
13 // Author Laurent Aphecetche, Subatech
15 #ifndef ALIMUONVPAINTER_H
16 # include "AliMUONVPainter.h"
19 # include "AliMpPad.h"
22 class AliMUONManuPadPainter : public AliMUONVPainter
25 AliMUONManuPadPainter(TRootIOCtor* ioCtor);
26 AliMUONManuPadPainter();
27 AliMUONManuPadPainter(const AliMUONVPainter& mother,
30 virtual ~AliMUONManuPadPainter();
33 virtual TObject* Clone(const char* = "") const { return new AliMUONManuPadPainter(*this); }
35 virtual void ComputeDataRange(const AliMUONVTrackerData& data,
37 Double_t& dataMin, Double_t& dataMax) const;
39 virtual char* GetObjectInfo(Int_t px, Int_t py) const;
41 /// We advertise that we do handle mouse movement
42 virtual Bool_t HandleMouseMotion() const { return kTRUE; }
44 TString NameAtPosition(Double_t x, Double_t y) const;
46 virtual TString Describe(const AliMUONVTrackerData& data, Int_t dataIndex,
47 Double_t x=FLT_MAX, Double_t y=FLT_MAX);
49 using AliMUONVPainter::PaintArea;
51 void PaintArea(const AliMUONVTrackerData& data,
56 void PaintOutline(Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX);
58 /// Whether this painter can be detached from the current view.
59 Bool_t CanBeDetached() const { return kFALSE; }
61 virtual void DrawHistogramClone(Double_t* values=0x0) const;
63 virtual Bool_t IsIncluded() const;
69 AliMpPad PadByPosition(Double_t x, Double_t y) const;
70 void PaintPad(const AliMpPad& pad) const;
73 Int_t fDetElemId; ///< our detection element id
74 Int_t fManuId; ///< our manu id
75 Int_t fLineColorBck; ///< line color for backup
76 Int_t fLineWidthBck; ///< line width for backup
77 Int_t fFillColorBck; ///< fill color for backup
78 Int_t fFillStyleBck; ///< fill style for backup
80 ClassDef(AliMUONManuPadPainter,1) // Painter for the pads of one manu