AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPreClusterFinder.h
Go to the documentation of this file.
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 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef AliMUONVCLUSTERFINDER_H
16 # include "AliMUONVClusterFinder.h"
17 #endif
18 #ifndef ALI_MP_AREA_H
19 # include "AliMpArea.h"
20 #endif
21 #ifndef ROOT_TClonesArray
22 # include <TClonesArray.h>
23 #endif
24 
25 class TStopwatch;
26 class AliMUONPad;
27 class TObjArray;
28 
30 {
31 public:
33  virtual ~AliMUONPreClusterFinder();
34 
36 
37  virtual Bool_t Prepare(Int_t detElemId,
38  TObjArray* pads[2],
39  const AliMpArea& area);
40 
41  virtual AliMUONCluster* NextCluster();
42 
43  virtual Bool_t UsePad(const AliMUONPad& pad);
44 
45 private:
50 
51  void AddPad(AliMUONCluster& cluster, AliMUONPad* pad);
52 
53  AliMUONPad* GetNextPad(Int_t cathode) const;
54 
56  virtual Bool_t ShouldAbort() const { return fShouldAbort; }
57 
59  void RemoveCluster(AliMUONCluster* cluster);
60 
61 private:
62  TClonesArray fClusters;
64  Int_t fDetElemId;
66  Bool_t fShouldAbort;
67 
68  ClassDef(AliMUONPreClusterFinder,4) // A basic pre-cluster finder
69 };
70 
71 #endif
Int_t fDetElemId
! which DE we're considering
Bool_t fShouldAbort
! to indicate clustering should stop right now
Interface of a cluster finder.
AliMUONPad * GetNextPad(Int_t cathode) const
AliMUONPreClusterFinder & operator=(const AliMUONPreClusterFinder &rhs)
Not implemented.
#define TObjArray
A group of adjacent pads.
TClonesArray fClusters
! the clusters we've found (owner)
void AddPad(AliMUONCluster &cluster, AliMUONPad *pad)
A rectangle area positioned in plane..
Definition: AliMpArea.h:20
virtual Bool_t ShouldAbort() const
Whether we should stop working...
AliMpArea fArea
! area into which to consider pads to start a cluster
virtual Bool_t Prepare(Int_t detElemId, TObjArray *pads[2], const AliMpArea &area)
virtual Bool_t UsePad(const AliMUONPad &pad)
A basic pre-cluster finder.
virtual AliMUONCluster * NextCluster()
void RemoveCluster(AliMUONCluster *cluster)
virtual Bool_t Prepare(Int_t detElemId, TObjArray *pads[2], const AliMpArea &area)
TObjArray ** fPads
! the pads corresponding to the digits (not owner)
Combination of digit and mppad informations.
Definition: AliMUONPad.h:25