]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizerFixedWindow.h
change method name
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizerFixedWindow.h
index ca81d955de3df9c2a5962b4c3a6c4b26c9db1874..e5a595b70115ea6f0273cb592894e123342542db 100644 (file)
@@ -4,7 +4,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id: AliEMCALClusterizerFixedWindows.h   */
+/* $Id: AliEMCALClusterizerFixedWindow.h   */
 
 //_________________________________________________________________________
 // This class derives from AliEMCALClustrerizer
 
 class AliEMCALRecPoint; 
 class AliEMCALDigit;
-class AliEMCALFixedWindowClusterInfo;
 
 class AliEMCALClusterizerFixedWindow : public AliEMCALClusterizer {
+ public:
+  AliEMCALClusterizerFixedWindow() ;         
+  AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry);
+  AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry, AliEMCALCalibData * calib, AliCaloCalibPedestal * pedestal);
+  virtual ~AliEMCALClusterizerFixedWindow();
        
-public:
-       
-       AliEMCALClusterizerFixedWindow() ;         
-       AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry);
-       AliEMCALClusterizerFixedWindow(AliEMCALGeometry* geometry, AliEMCALCalibData * calib, AliCaloCalibPedestal * pedestal);
-       
-       virtual ~AliEMCALClusterizerFixedWindow();
-       
-       virtual void   Digits2Clusters(Option_t *option);                // Does the job
-       
-       virtual const char * Version() const { return "clu-FixedWindow" ; }  
-       
-       void SetnPhi (Int_t n) 
-  {
-    if (clusters_array)
-      AliWarning("Clusterizer already initialized. Unable to change the parameters.");
-    else
-      nPhi = n;
-  }
-  
-       void SetnEta (Int_t n) 
-  {
-    if (clusters_array)
-      AliWarning("Clusterizer already initialized. Unable to change the parameters.");
-    else
-      nEta = n;
-  }
-       
-       Int_t GetnPhi () {return nPhi;}
-       Int_t GetnEta () {return nEta;}
-  
-  void SetshiftPhi (Int_t s) 
-  {
-    if (clusters_array)
-      AliWarning("Clusterizer already initialized. Unable to change the parameters.");
-    else
-      shiftPhi = s;
-  }
-  
-  void SetshiftEta (Int_t s) 
-  {
-    if (clusters_array)
-      AliWarning("Clusterizer already initialized. Unable to change the parameters.");
-    else
-      shiftEta = s;
-  }
-  
-  Int_t GetshiftPhi () {return shiftPhi;}
-  Int_t GetshiftEta () {return shiftEta;}
-  
-  void SetTRUshift(Bool_t b) 
-  {
-    if (clusters_array)
-      AliWarning("Clusterizer already initialized. Unable to change the parameters.");
-    else
-      fTRUshift = b;
-  }
-  
-  Bool_t GetTRUshift() {return fTRUshift;}
-  
-  AliEMCALFixedWindowClusterInfo* GetClustersInfo() {return fClustersInfo;}
-  void SetClustersInfo(AliEMCALFixedWindowClusterInfo *ClusInfo) {fClustersInfo = ClusInfo;}
+  virtual void            Digits2Clusters(Option_t *option);
+  virtual const char     *Version() const { return "clu-FixedWindow"; }  
 
+  Int_t                   GetNphi ()                                          const { return fNphi;             }
+  Int_t                   GetNeta ()                                          const { return fNeta;             }
+  Int_t                   GetShiftPhi ()                                      const { return fShiftPhi;         }
+  Int_t                   GetShiftEta ()                                      const { return fShiftEta;         }
+  Bool_t                  GetTRUshift()                                       const { return fTRUshift;         }
+  void                    SetNphi (Int_t n);
+  void                    SetNeta (Int_t n);
+  void                    SetShiftPhi (Int_t s);
+  void                    SetShiftEta (Int_t s);
+  void                    SetTRUshift(Bool_t b);
+  
 protected:
-       
-       virtual void   MakeClusters();            
+  void MakeClusters(); 
+  void ExecOnce(); 
+  
+  Int_t                   fNphi;                // Fixed window number of cells in phi direction
+  Int_t                   fNeta;                // Fixed window number of cells in eta direction
+  Int_t                   fShiftPhi;            // Shifting number of cells in phi direction
+  Int_t                   fShiftEta;            // Shifting number of cells in eta direction
+  Bool_t                  fTRUshift;            // Allows shifting inside a TRU (true) of through the whole calorimeter (false)
+  Int_t                   fNEtaDigitsSupMod;    //!Number of digits per SM in eta 
+  Int_t                   fNPhiDigitsSupMod;    //!Number of digits per SM in phi
+  Int_t                   fNTRUPhi;             //!Number of TRUs in phi
+  Int_t                   fNTRUEta;             //!Number of TRUs in eta
+  Int_t                   fNEtaDigits;          //!Total number of digits in eta 
+  Int_t                   fNPhiDigits;          //!Total number of digits in phi
+  Int_t                   fMaxShiftPhi;         //!Max shift index in phi
+  Int_t                   fMaxShiftEta;         //!Max shift index in eta
+  Int_t                   fNDigitsCluster;      //!Digits per cluster
+  Int_t                   fNClusEtaNoShift;     //!Max number of clusters in eta
+  Int_t                   fNClusPhiNoShift;     //!Max number of clusters in phi
+  Int_t                   fNClusters;           //!fNClusEtaNoShift x fNClusPhiNoShift
+  Int_t                   fNTotalClus;          //!Maximum total number of clusters
+  AliEMCALDigit        ***fClustersArray;       //!Temporary array that contains clusters
+  Int_t                   fInitialized;         //!Initialized clusterizer
        
 private:
-       AliEMCALClusterizerFixedWindow(const AliEMCALClusterizerFixedWindow &); //copy ctor
-       AliEMCALClusterizerFixedWindow & operator = (const AliEMCALClusterizerFixedWindow &);
-       
-  // nPhi x nEta clusterizer
-       // Those parameter could be changed to get other types of fixed windows.
-       Int_t                               nPhi;
-       Int_t                               nEta; 
-  Int_t                               shiftPhi;
-  Int_t                               shiftEta;
-  Bool_t                              fTRUshift;
-  AliEMCALFixedWindowClusterInfo    *fClustersInfo;
-  AliEMCALDigit                    ***clusters_array;
-       
-       ClassDef(AliEMCALClusterizerFixedWindow,4)   // Clusterizer implementation version 1
-};
+  AliEMCALClusterizerFixedWindow(const AliEMCALClusterizerFixedWindow &);                 // not implemented
+  AliEMCALClusterizerFixedWindow & operator = (const AliEMCALClusterizerFixedWindow &);   // not implemented
 
+  ClassDef(AliEMCALClusterizerFixedWindow,4)   // Clusterizer implementation fixed windows
+};
 #endif // AliEMCALCLUSTERIZERFIXEDWINDOW_H