]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONChamberPainter.h
Define default values of cluster resolution per chamber in the
[u/mrichter/AliRoot.git] / MUON / AliMUONChamberPainter.h
1 #ifndef ALIMUONCHAMBERPAINTER_H
2 #define ALIMUONCHAMBERPAINTER_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 AliMUONChamberPainter
11 /// \brief Painter for one (plane of one) chamber
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ALIMUONVPAINTER_H
16 #  include "AliMUONVPainter.h"
17 #endif
18 #ifndef ALI_MP_CATHOD_TYPE_H
19 #  include "AliMpCathodType.h"
20 #endif
21 #ifndef ALI_MP_PLANE_TYPE_H
22 #  include "AliMpPlaneType.h"
23 #endif
24
25 class AliMUONChamberPainter : public AliMUONVPainter
26 {
27 public:
28   AliMUONChamberPainter();
29   AliMUONChamberPainter(TRootIOCtor* ioCtor);
30   AliMUONChamberPainter(const AliMUONAttPainter& att, Int_t chamberId);
31   AliMUONChamberPainter(const AliMUONChamberPainter& rhs);
32   AliMUONChamberPainter& operator=(const AliMUONChamberPainter& rhs);
33   
34   virtual ~AliMUONChamberPainter();
35
36   void ComputeDataRange(const AliMUONVTrackerData& data, Int_t dataIndex, 
37                         Double_t& dataMin, Double_t& dataMax) const;
38     
39   /// Clone ourselves
40   virtual TObject* Clone(const char* = "") const { return new AliMUONChamberPainter(*this); }
41
42   virtual void Copy(TObject& object) const;
43   
44   void PaintArea(const AliMUONVTrackerData& data, Int_t dataIndex,
45                  Double_t min, Double_t max);
46     
47   TString Describe(const AliMUONVTrackerData& data, Int_t dataIndex,
48                    Double_t, Double_t);
49     
50   AliMUONAttPainter Validate(const AliMUONAttPainter& attributes) const;
51
52   Bool_t IsIncluded() const;
53   
54 private:
55   Int_t fChamberId; ///< our identifier (0..n)
56   
57   ClassDef(AliMUONChamberPainter,1) // Painter for one chamber
58 };
59
60 #endif