]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONClusterDrawAZ.h
- Updated for modifs in AliMpFiles
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterDrawAZ.h
1 #ifndef ALIMUONCLUSTERDRAWAZ_H
2 #define ALIMUONCLUSTERDRAWAZ_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 /// \ingroup rec
9 /// \class AliMUONClusterDrawAZ
10 /// \brief Cluster drawing object for AZ cluster finder in MUON arm of ALICE
11
12 #include "AliMUONClusterDrawAZ.h"
13
14 class TH2D;
15 class AliMUONData;
16 class AliMUONPixel;
17 class AliMUONClusterFinderAZ;
18
19 class AliMUONClusterDrawAZ : public TObject 
20 {
21 public:
22   AliMUONClusterDrawAZ(); // default constructor
23   AliMUONClusterDrawAZ(AliMUONClusterFinderAZ *clusFinder); // Constructor
24   virtual ~AliMUONClusterDrawAZ(); // Destructor
25
26   void     DrawCluster(); // draw precluster
27   void     AdjustHist(Double_t *xylim, const AliMUONPixel *pixPtr);
28   void     DrawHist(const char* canvas, TH2D *hist); // draw histogram in canvas
29   Int_t    Next(); // commands for drawing
30   Bool_t   FindEvCh(Int_t nev, Int_t ch); // find requested event and chamber
31   void     FillMuon(Int_t nfit, const Double_t *parOk, const Double_t *errOk); // fill muon info
32   void     ResetMuon() { fxyMu[0][6] = fxyMu[1][6] = 9999; } // reset muons
33   void     UpdateCluster(Int_t npad); // update cluster after removing non-overlapped pads
34
35 protected:
36   AliMUONClusterDrawAZ(const AliMUONClusterDrawAZ& rhs);
37   AliMUONClusterDrawAZ& operator=(const AliMUONClusterDrawAZ& rhs);
38
39 private:
40   AliMUONData *fData; //! pointer to muon data container
41   AliMUONClusterFinderAZ* fFind; //! pointer to ClusterFinder
42   TH2D*      fHist[4]; // ! histograms
43   Int_t      fnMu; // ! number of muons passing thru the selected area
44   Double_t   fxyMu[2][7]; // ! muon information
45   Int_t      fEvent; // ! current event
46   Int_t      fChamber; //! current chamber
47   Int_t      fidDE; //! current Det. Elem.
48   Int_t      fDebug; // ! debug level
49   Int_t      fModif; // ! modification flag (modified ROOT)
50
51   // Functions
52
53   void   Init(); // initialization
54   void   ModifyHistos(); // modify histograms
55   void   DrawHits(); // draw simulated and reconstructed hits
56
57 ClassDef(AliMUONClusterDrawAZ,0) // cluster drawing for MUON arm of ALICE
58 };
59
60 #endif