]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDetElement.h
remove LoOutput (Philippe)
[u/mrichter/AliRoot.git] / MUON / AliMUONDetElement.h
1 #ifndef ALIMUONDETELEMENT_H
2 #define ALIMUONDETELEMENT_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 AliMUONDetElement
10 /// \brief Detection element object containing information for combined 
11 /// cluster / track finder in the MUON arm 
12 ///
13 /// \author Alexander Zinchenko, JINR Dubna
14  
15 #include <TObject.h>
16 class TObjArray;
17 class TClonesArray;
18 class AliMUONDigit;
19 class AliMUONHitMapA1;
20 class AliMUONGeometrySegmentation;
21 class AliMUONData;
22 class AliMUONRawCluster;
23 class AliMUONClusterFinderAZ;
24
25 class AliMUONDetElement : public TObject 
26 {
27  public:
28
29   AliMUONDetElement();
30   AliMUONDetElement(Int_t idDE, AliMUONDigit *dig, AliMUONClusterFinderAZ *recModel); // constructor
31   virtual ~AliMUONDetElement(); // Destructor
32
33   Int_t IdDE(void) const { return fidDE; } // det. elem. ID
34   Int_t Chamber(void) const { return fChamber; } // chamber No
35   Double_t Z(void) const { return fZ; } // Z-coordinate
36   Int_t Left(Int_t cath) const { return fLeft[cath]; } // number of unused digits
37   //Int_t GetMapElem(AliMUONDigit *digit) const; // get map element
38   TObjArray *Digits(Int_t cath) const { return fDigits[cath]; } // array of digits
39   TObjArray *RawClusters() const { return fRawClus; } // array of raw clusters
40   TObjArray *HitsForRec() const { return fHitsForRec; } // hits for rec.
41   Int_t NHitsForRec() const { return fNHitsForRec; } // No. of hits for rec.
42   //Bool_t Inside(Double_t x, Double_t y, Double_t z) const; // check if point inside DE
43   Bool_t Inside(Double_t x, Double_t y, Double_t z, Double_t dx, Double_t dy) const; // check if point inside DE
44   
45   void SetID(Int_t idDE) { fidDE = idDE; } // set det. elem. ID
46   void SetIndex(Int_t index) { fIndex = index; } // set position index
47   void SetZ(Double_t z) { fZ = z; } // set Z-coord.
48   void SetLeft(Int_t cath, Int_t left) { fLeft[cath] = left; } // set No. of digits
49   //void SetMapElem(const AliMUONDigit *digit, Int_t flag); // set map element 
50   void AddDigit(AliMUONDigit *dig); // add digit
51   void Fill(AliMUONData *data); // fill hit maps 
52   void ClusterReco(Double_t x, Double_t y, Double_t dx, Double_t dy); // run cluster reco around (x,y)
53   void AddHitForRec(AliMUONRawCluster *clus); // make HitForRec
54   // What is necessary for sorting TObjArray's
55   Bool_t IsSortable() const { return kTRUE; }
56   Int_t Compare(const TObject* detElem) const; // "Compare" function for sorting
57
58  private:
59  
60   Int_t fidDE; ///< det. elem. ID
61   Int_t fIndex; ///< det. elem. position index in container
62   Int_t fChamber; ///< chamber No
63   Double_t fZ; ///< det. elem. Z-coordinate
64   Int_t fLeft[2]; ///< numbers of digits not used for clustering
65   Int_t fNHitsForRec; ///< number of hits for rec.
66   AliMUONGeometrySegmentation* fSeg[2]; ///< segmentation
67   AliMUONHitMapA1 *fHitMap[2]; ///< map of digits
68   TObjArray *fDigits[2]; ///< container of digits from this det. elem.
69   TObjArray *fRawClus; ///< raw clusters
70   TObjArray *fHitsForRec; ///< HitForRec's
71   AliMUONClusterFinderAZ *fRecModel; ///< cluster finder
72
73   // Functions
74   AliMUONDetElement(const AliMUONDetElement & rhs); // copy constructor
75   AliMUONDetElement& operator = (const AliMUONDetElement& rhs); // assignment operator
76
77   ClassDef(AliMUONDetElement,0) // detection element object
78     };
79 #endif