Line data Source code
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 : //_________________________________________________________________________
8 : // This class derives from AliEMCALClustrerizer
9 :
10 : #include "AliEMCALClusterizer.h"
11 :
12 : class AliEMCALRecPoint;
13 : class AliEMCALDigit;
14 :
15 : class AliEMCALClusterizerFixedWindow : public AliEMCALClusterizer {
16 : public:
17 : AliEMCALClusterizerFixedWindow() ;
18 : AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry);
19 : AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry, AliEMCALCalibData * calib,
20 : AliEMCALCalibTime * calibt, AliCaloCalibPedestal *pedestal);
21 : virtual ~AliEMCALClusterizerFixedWindow();
22 :
23 : virtual void Digits2Clusters(Option_t *option);
24 0 : virtual const char *Version() const { return "clu-FixedWindow"; }
25 :
26 0 : Int_t GetNphi () const { return fNphi; }
27 0 : Int_t GetNeta () const { return fNeta; }
28 0 : Int_t GetShiftPhi () const { return fShiftPhi; }
29 0 : Int_t GetShiftEta () const { return fShiftEta; }
30 0 : Bool_t GetTRUshift() const { return fTRUshift; }
31 : void SetNphi (Int_t n);
32 : void SetNeta (Int_t n);
33 : void SetShiftPhi (Int_t s);
34 : void SetShiftEta (Int_t s);
35 : void SetTRUshift(Bool_t b);
36 :
37 : protected:
38 : void MakeClusters();
39 : void ExecOnce();
40 :
41 : Int_t fNphi; // Fixed window number of cells in phi direction
42 : Int_t fNeta; // Fixed window number of cells in eta direction
43 : Int_t fShiftPhi; // Shifting number of cells in phi direction
44 : Int_t fShiftEta; // Shifting number of cells in eta direction
45 : Bool_t fTRUshift; // Allows shifting inside a TRU (true) of through the whole calorimeter (false)
46 : Int_t fNEtaDigitsSupMod; //!Number of digits per SM in eta
47 : Int_t fNPhiDigitsSupMod; //!Number of digits per SM in phi
48 : Int_t fNTRUPhi; //!Number of TRUs in phi
49 : Int_t fNTRUEta; //!Number of TRUs in eta
50 : Int_t fNEtaDigits; //!Total number of digits in eta
51 : Int_t fNPhiDigits; //!Total number of digits in phi
52 : Int_t fMaxShiftPhi; //!Max shift index in phi
53 : Int_t fMaxShiftEta; //!Max shift index in eta
54 : Int_t fNDigitsCluster; //!Digits per cluster
55 : Int_t fNClusEtaNoShift; //!Max number of clusters in eta
56 : Int_t fNClusPhiNoShift; //!Max number of clusters in phi
57 : Int_t fNClusters; //!fNClusEtaNoShift x fNClusPhiNoShift
58 : Int_t fNTotalClus; //!Maximum total number of clusters
59 : AliEMCALDigit ***fClustersArray; //!Temporary array that contains clusters
60 : Int_t fInitialized; //!Initialized clusterizer
61 :
62 : private:
63 : AliEMCALClusterizerFixedWindow(const AliEMCALClusterizerFixedWindow &); // not implemented
64 : AliEMCALClusterizerFixedWindow & operator = (const AliEMCALClusterizerFixedWindow &); // not implemented
65 :
66 42 : ClassDef(AliEMCALClusterizerFixedWindow,4) // Clusterizer implementation fixed windows
67 : };
68 : #endif // AliEMCALCLUSTERIZERFIXEDWINDOW_H
|