]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONManuPainter.h
Modified file access mode
[u/mrichter/AliRoot.git] / MUON / AliMUONManuPainter.h
1 #ifndef ALIMUONMANUPAINTER_H
2 #define ALIMUONMANUPAINTER_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup graphics
10 /// \class AliMUONManuPainter
11 /// \brief Painter for one manu (not the pads, only the manu)
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ALIMUONVPAINTER_H
16 #  include "AliMUONVPainter.h"
17 #endif
18
19 class AliMUONManuPainter : public AliMUONVPainter
20 {
21 public:
22
23   AliMUONManuPainter(TRootIOCtor*);
24   AliMUONManuPainter();
25   AliMUONManuPainter(const AliMUONAttPainter& att, 
26                      Int_t detElemId, 
27                      Int_t manuId);
28   AliMUONManuPainter(const AliMUONManuPainter& rhs);
29   AliMUONManuPainter& operator=(const AliMUONManuPainter& rhs);
30   
31   virtual ~AliMUONManuPainter();
32   
33   virtual void ComputeDataRange(const AliMUONVTrackerData& data, Int_t dataIndex, 
34                                 Double_t& dataMin, Double_t& dataMax) const;
35     
36   /// Clone ourselves
37   virtual TObject* Clone(const char* = "") const { return new AliMUONManuPainter(*this); }
38
39   virtual void Copy(TObject& object) const;
40   
41     virtual TString Describe(const AliMUONVTrackerData& data, Int_t dataIndex,
42                              Double_t x=FLT_MAX, Double_t y=FLT_MAX);
43
44     void PaintArea(const AliMUONVTrackerData& data, Int_t dataIndex,
45                    Double_t min, Double_t max);
46   
47     virtual AliMUONAttPainter Validate(const AliMUONAttPainter& attributes) const;
48
49     virtual void FillManuList(TObjArray& manuList) const;
50     
51     virtual Bool_t IsIncluded() const;
52     
53 private:
54   Int_t fDetElemId; ///< our detection element id
55   Int_t fManuId; ///< our manu id
56   
57   ClassDef(AliMUONManuPainter,1) // Painter for one manu (not the pads, only the manu)
58 };
59
60 #endif