]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONEventRecoCombi.h
Compilation with Root v5-15-3
[u/mrichter/AliRoot.git] / MUON / AliMUONEventRecoCombi.h
1 #ifndef ALIMUONEVENTRECOCOMBI_H
2 #define ALIMUONEVENTRECOCOMBI_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 AliMUONEventRecoCombi
10 /// \brief Combined cluster / track finder in the MUON arm of ALICE
11  
12 #include <TObject.h>
13 #include <TArrayD.h>
14 #include <TClonesArray.h>
15
16 class AliMUONData;
17 class AliMUONDetElement;
18 class AliMUONTrackReconstructorK;
19 class AliMUONClusterFinderAZ;
20 class AliMUONHitForRec;
21 class AliMUONSegmentation;
22 class AliLoader;
23
24 class AliMUONEventRecoCombi : public TObject 
25 {
26  public:
27     virtual ~AliMUONEventRecoCombi();
28     static AliMUONEventRecoCombi* Instance(AliMUONSegmentation* segmentation = 0);
29     void FillEvent(AliMUONData *data, AliMUONClusterFinderAZ *recModel); // fill event info
30     void FillRecP(AliMUONData *dataCluster, AliMUONTrackReconstructorK *recoTrack) const; // fill used rec. points from det. elems
31
32     Int_t Nz() const { return fNZ; } // number of DE different Z-positions
33     Double_t Z(Int_t iz) const { return (*fZ)[iz]; } // Z of DE
34     Int_t *DEatZ(Int_t iz) const { return fDEvsZ[iz]+1; } // list of DE's at Z
35     AliMUONDetElement *DetElem(Int_t iPos) const { return (AliMUONDetElement*) fDetElems->UncheckedAt(iPos); }
36     Int_t IZfromHit(AliMUONHitForRec *hit) const; // IZ from Hit
37
38  protected:
39     AliMUONEventRecoCombi(AliMUONSegmentation* segmentation = 0);
40
41  private:
42     static AliMUONEventRecoCombi* fgRecoCombi; //!< singleton instance
43     AliMUONSegmentation*  fSegmentation;  //!< Segmentation
44     TClonesArray *fDetElems; //!< array of Det. Elem. objects
45     TArrayD *fZ; //!< array of det. elem. Z-coordinates
46     Int_t fNZ; //!< number of different Z's
47     Int_t **fDEvsZ; //!< list of DE's vs Z-coordinates
48
49     AliMUONEventRecoCombi(const AliMUONEventRecoCombi& rhs);
50     AliMUONEventRecoCombi & operator = (const AliMUONEventRecoCombi& rhs);
51
52     ClassDef(AliMUONEventRecoCombi, 0) // Combined cluster/track finder steering class
53       };
54 #endif