]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONEventRecoCombi.h
No effective C++ option for compilation of C files
[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 AliLoader;
22
23 class AliMUONEventRecoCombi : public TObject 
24 {
25  public:
26     virtual ~AliMUONEventRecoCombi();
27     static AliMUONEventRecoCombi* Instance();
28     void FillEvent(AliMUONData *data, AliMUONClusterFinderAZ *recModel); // fill event info
29     void FillRecP(AliMUONData *dataCluster, AliMUONTrackReconstructorK *recoTrack) const; // fill used rec. points from det. elems
30
31     Int_t Nz() const { return fNZ; } // number of DE different Z-positions
32     Double_t Z(Int_t iz) const { return (*fZ)[iz]; } // Z of DE
33     Int_t *DEatZ(Int_t iz) const { return fDEvsZ[iz]+1; } // list of DE's at Z
34     AliMUONDetElement *DetElem(Int_t iPos) const { return (AliMUONDetElement*) fDetElems->UncheckedAt(iPos); }
35     Int_t IZfromHit(AliMUONHitForRec *hit) const; // IZ from Hit
36
37  protected:
38     AliMUONEventRecoCombi();
39
40  private:
41     static AliMUONEventRecoCombi* fgRecoCombi; //!< singleton instance
42     TClonesArray *fDetElems; //!< array of Det. Elem. objects
43     TArrayD *fZ; //!< array of det. elem. Z-coordinates
44     Int_t fNZ; //!< number of different Z's
45     Int_t **fDEvsZ; //!< list of DE's vs Z-coordinates
46
47     AliMUONEventRecoCombi(const AliMUONEventRecoCombi& rhs);
48     AliMUONEventRecoCombi & operator = (const AliMUONEventRecoCombi& rhs);
49
50     ClassDef(AliMUONEventRecoCombi, 0) // Combined cluster/track finder steering class
51       };
52 #endif