AliRoot Core  3dc7879 (3dc7879)
AliEMCALClusterizerNxN.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCLUSTERIZERNXN_H
2 #define ALIEMCALCLUSTERIZERNXN_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //_________________________________________________________________________
40 //_________________________________________________________________________
41 
42 #include "AliEMCALClusterizer.h"
43 class AliEMCALRecPoint ;
44 class AliEMCALDigit ;
45 
47 {
48 public:
49 
53  AliEMCALCalibTime * calibt, AliCaloCalibPedestal *pedestal);
54 
55  virtual ~AliEMCALClusterizerNxN() ;
56 
57  virtual Int_t AreNeighbours(AliEMCALDigit * d1, AliEMCALDigit * d2, Bool_t & shared) const ;
58  // Checks if digits are in neighbour cells
59 
60  virtual void Digits2Clusters(Option_t *option); // Does the job
61 
62  virtual const char * Version() const { return "clu-NxN" ; }
63 
64  void SetNRowDiff(Int_t nd) { fNRowDiff = nd ; }
65  void SetNColDiff(Int_t nd) { fNColDiff = nd ; }
66 
67  Int_t GetNRowDiff() const { return fNRowDiff ; }
68  Int_t GetNColDiff() const { return fNColDiff ; }
69 
70  void SetEnergyGrad(Bool_t b) { fEnergyGrad = b ; }
71  Bool_t GetEnergyGrad() const { return fEnergyGrad ; }
72 
73 protected:
74 
75  virtual void MakeClusters();
76 
77 private:
78 
79  AliEMCALClusterizerNxN (const AliEMCALClusterizerNxN &); //copy ctor
81 
82  Int_t fNRowDiff;
83  Int_t fNColDiff;
84  Bool_t fEnergyGrad;
85 
87  ClassDef(AliEMCALClusterizerNxN,4) ;
89 
90 };
91 
92 #endif // AliEMCALCLUSTERIZERNXN_H
TBrowser b
Definition: RunAnaESD.C:12
virtual Int_t AreNeighbours(AliEMCALDigit *d1, AliEMCALDigit *d2, Bool_t &shared) const
virtual void Digits2Clusters(Option_t *option)
Cell energy calibration factors container class.
EMCal digits object.
Definition: AliEMCALDigit.h:30
Int_t fNRowDiff
How many neighbors to consider along row (phi)
AliEMCALClusterizerNxN()
Default constructor.
EMCal rec_points object.
AliEMCALClusterizerNxN & operator=(const AliEMCALClusterizerNxN &)
virtual void MakeClusters()
Make clusters.
Cell time shifts container class.
pedestal/bad map monitoring and calibration tools
Create clusters of maximum size NxM.
Bool_t fEnergyGrad
If true only cluster if neighboring cell has less energy.
Int_t fNColDiff
How many neighbors to consider along col (eta)
virtual const char * Version() const
EMCal geometry, singleton.
Base class for the clusterization algorithm (pure abstract)
virtual ~AliEMCALClusterizerNxN()
Destructtor.