]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALClusterizerFixedWindow.h
coding conventions
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizerFixedWindow.h
1 #ifndef ALIEMCALCLUSTERIZERFIXEDWINDOW_H
2 #define ALIEMCALCLUSTERIZERFIXEDWINDOW_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: AliEMCALClusterizerFixedWindow.h   */
8
9 //_________________________________________________________________________
10 // This class derives from AliEMCALClustrerizer
11
12 #include "AliEMCALClusterizer.h"
13
14 class AliEMCALRecPoint; 
15 class AliEMCALDigit;
16 class AliEMCALFixedWindowClusterInfo;
17
18 class AliEMCALClusterizerFixedWindow : public AliEMCALClusterizer {
19 public:
20         AliEMCALClusterizerFixedWindow() ;         
21         AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry);
22         AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry, AliEMCALCalibData * calib, AliCaloCalibPedestal * pedestal);
23         virtual ~AliEMCALClusterizerFixedWindow();
24         
25 public:
26         virtual void            Digits2Clusters(Option_t *option);
27         virtual const char     *Version() const { return "clu-FixedWindow"; }  
28         
29   AliEMCALFixedWindowClusterInfo*   GetClustersInfo()                                   const { return fClustersInfo;     }
30   Int_t                             GetNphi ()                                          const { return fNphi;             }
31         Int_t                             GetNeta ()                                          const { return fNeta;             }
32   Int_t                             GetShiftPhi ()                                      const { return fShiftPhi;         }
33   Int_t                             GetShiftEta ()                                      const { return fShiftEta;         }
34   Bool_t                            GetTRUshift()                                       const { return fTRUshift;         }
35   void                              SetClustersInfo(AliEMCALFixedWindowClusterInfo *ClusInfo) { fClustersInfo = ClusInfo; }
36         void                              SetNphi (Int_t n);
37         void                              SetNeta (Int_t n);
38   void                              SetShiftPhi (Int_t s);
39   void                              SetShiftEta (Int_t s);
40   void                              SetTRUshift(Bool_t b);
41   
42 protected:
43         virtual void MakeClusters(); 
44   
45         Int_t                               fNphi;                // Fixed window number of cells in phi direction
46         Int_t                               fNeta;                // Fixed window number of cells in eta direction
47   Int_t                               fShiftPhi;            // Shifting number of cells in phi direction
48   Int_t                               fShiftEta;            // Shifting number of cells in eta direction
49   Bool_t                              fTRUshift;            // Allows shifting inside a TRU (true) of through the whole calorimeter (false)
50   AliEMCALFixedWindowClusterInfo     *fClustersInfo;        //!Point to an object where additional information are stored
51   AliEMCALDigit                    ***fClustersArray;       //!Temporary array that contains clusters
52         
53 private:
54         AliEMCALClusterizerFixedWindow(const AliEMCALClusterizerFixedWindow &);                 // not implemented
55         AliEMCALClusterizerFixedWindow & operator = (const AliEMCALClusterizerFixedWindow &);   // not implemented
56         
57
58         ClassDef(AliEMCALClusterizerFixedWindow,4)   // Clusterizer implementation version 1
59 };
60
61 #endif // AliEMCALCLUSTERIZERFIXEDWINDOW_H