1 #ifndef ALIMUONPRECLUSTERFINDER_H
2 #define ALIMUONPRECLUSTERFINDER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPreClusterFinder
11 /// \brief A basic pre-cluster finder
13 // Author Laurent Aphecetche, Subatech
15 #ifndef AliMUONVCLUSTERFINDER_H
16 # include "AliMUONVClusterFinder.h"
19 # include "AliMpArea.h"
21 #ifndef ROOT_TClonesArray
22 # include <TClonesArray.h>
29 class AliMUONPreClusterFinder : public AliMUONVClusterFinder
32 AliMUONPreClusterFinder();
33 virtual ~AliMUONPreClusterFinder();
35 using AliMUONVClusterFinder::Prepare;
37 virtual Bool_t Prepare(Int_t detElemId,
39 const AliMpArea& area);
41 virtual AliMUONCluster* NextCluster();
43 virtual Bool_t UsePad(const AliMUONPad& pad);
47 AliMUONPreClusterFinder(const AliMUONPreClusterFinder& rhs);
49 AliMUONPreClusterFinder& operator=(const AliMUONPreClusterFinder& rhs);
51 void AddPad(AliMUONCluster& cluster, AliMUONPad* pad);
53 AliMUONPad* GetNextPad(Int_t cathode) const;
55 /// Whether we should stop working...
56 virtual Bool_t ShouldAbort() const { return fShouldAbort; }
58 AliMUONCluster* NewCluster();
59 void RemoveCluster(AliMUONCluster* cluster);
62 TClonesArray fClusters; //!< the clusters we've found (owner)
63 TObjArray** fPads; //!< the pads corresponding to the digits (not owner)
64 Int_t fDetElemId; //!< which DE we're considering
65 AliMpArea fArea; //!< area into which to consider pads to *start* a cluster
66 Bool_t fShouldAbort; //!< to indicate clustering should stop right now
68 ClassDef(AliMUONPreClusterFinder,4) // A basic pre-cluster finder