X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONPreClusterFinder.h;h=06823bc465dab76a766c7cc82a8a424d6d79d185;hb=b67ec6f796ad552b79b19d51e34ac4235edc9965;hp=8daf8b07cebf646d21c29d32dc3138c9e474da97;hpb=46fdcf87f953dc5f5df4d48a63e4e5aa2689ca7d;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONPreClusterFinder.h b/MUON/AliMUONPreClusterFinder.h index 8daf8b07ceb..06823bc465d 100644 --- a/MUON/AliMUONPreClusterFinder.h +++ b/MUON/AliMUONPreClusterFinder.h @@ -15,6 +15,12 @@ #ifndef AliMUONVCLUSTERFINDER_H # include "AliMUONVClusterFinder.h" #endif +#ifndef ALI_MP_AREA_H +# include "AliMpArea.h" +#endif +#ifndef ROOT_TClonesArray +# include +#endif class TStopwatch; class AliMUONPad; @@ -25,8 +31,11 @@ public: AliMUONPreClusterFinder(); virtual ~AliMUONPreClusterFinder(); - virtual Bool_t Prepare(const AliMpVSegmentation* segmentations[2], - TClonesArray* digits[2]); + using AliMUONVClusterFinder::Prepare; + + virtual Bool_t Prepare(Int_t detElemId, + TClonesArray* pads[2], + const AliMpArea& area); virtual AliMUONCluster* NextCluster(); @@ -40,14 +49,19 @@ private: void AddPad(AliMUONCluster& cluster, AliMUONPad* pad); + AliMUONPad* GetNextPad(Int_t cathode) const; + + /// Whether we should stop working... + virtual Bool_t ShouldAbort() const { return fShouldAbort; } + private: - TClonesArray* fClusters; //!< the clusters we've found (owner) - const AliMpVSegmentation** fSegmentations; //!< segmentations (not owner) - TClonesArray** fDigits; //!< where to find the digits (not owner) - TClonesArray* fPads[2]; //!< the pads corresponding to the digits (owner) + TClonesArray fClusters; //!< the clusters we've found (owner) + TClonesArray** fPads; //!< the pads corresponding to the digits (not owner) Int_t fDetElemId; //!< which DE we're considering + AliMpArea fArea; //!< area into which to consider pads to *start* a cluster + Bool_t fShouldAbort; //!< to indicate clustering should stop right now - ClassDef(AliMUONPreClusterFinder,1) // A basic pre-cluster finder + ClassDef(AliMUONPreClusterFinder,4) // A basic pre-cluster finder }; #endif