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