]>
Commit | Line | Data |
---|---|---|
18466557 | 1 | #ifndef ALIMUONPRECLUSTERFINDER_H |
2 | #define ALIMUONPRECLUSTERFINDER_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup rec | |
10 | /// \class AliMUONPreClusterFinder | |
11 | /// \brief A basic pre-cluster finder | |
12 | /// | |
13 | // Author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef AliMUONVCLUSTERFINDER_H | |
16 | # include "AliMUONVClusterFinder.h" | |
17 | #endif | |
e22f734a | 18 | #ifndef ALI_MP_AREA_H |
19 | # include "AliMpArea.h" | |
20 | #endif | |
9ec6a948 | 21 | #ifndef ROOT_TClonesArray |
22 | # include <TClonesArray.h> | |
23 | #endif | |
18466557 | 24 | |
25 | class TStopwatch; | |
26 | class AliMUONPad; | |
27 | ||
28 | class AliMUONPreClusterFinder : public AliMUONVClusterFinder | |
29 | { | |
30 | public: | |
31 | AliMUONPreClusterFinder(); | |
32 | virtual ~AliMUONPreClusterFinder(); | |
33 | ||
e22f734a | 34 | using AliMUONVClusterFinder::Prepare; |
35 | ||
36 | virtual Bool_t Prepare(Int_t detElemId, | |
37 | TClonesArray* pads[2], | |
38 | const AliMpArea& area); | |
18466557 | 39 | |
40 | virtual AliMUONCluster* NextCluster(); | |
41 | ||
42 | virtual Bool_t UsePad(const AliMUONPad& pad); | |
43 | ||
44 | private: | |
46fdcf87 | 45 | /// Not implemented |
18466557 | 46 | AliMUONPreClusterFinder(const AliMUONPreClusterFinder& rhs); |
46fdcf87 | 47 | /// Not implemented |
18466557 | 48 | AliMUONPreClusterFinder& operator=(const AliMUONPreClusterFinder& rhs); |
49 | ||
18466557 | 50 | void AddPad(AliMUONCluster& cluster, AliMUONPad* pad); |
51 | ||
e22f734a | 52 | AliMUONPad* GetNextPad(Int_t cathode) const; |
53 | ||
99f1b909 | 54 | /// Whether we should stop working... |
861d6ce8 | 55 | virtual Bool_t ShouldAbort() const { return fShouldAbort; } |
56 | ||
18466557 | 57 | private: |
9ec6a948 | 58 | TClonesArray fClusters; //!< the clusters we've found (owner) |
e22f734a | 59 | TClonesArray** fPads; //!< the pads corresponding to the digits (not owner) |
46fdcf87 | 60 | Int_t fDetElemId; //!< which DE we're considering |
e22f734a | 61 | AliMpArea fArea; //!< area into which to consider pads to *start* a cluster |
861d6ce8 | 62 | Bool_t fShouldAbort; //!< to indicate clustering should stop right now |
18466557 | 63 | |
9ec6a948 | 64 | ClassDef(AliMUONPreClusterFinder,4) // A basic pre-cluster finder |
18466557 | 65 | }; |
66 | ||
67 | #endif |