]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALSDigitizer.h
Changes for report #68914: Improper usage of TClonesArrays in EMCAL
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSDigitizer.h
index d2a791d23d82092a8fd5aa8049d7e94d577b6af3..9c88d82078e26cbc52f176f733d8b116202f16ae 100644 (file)
@@ -1,18 +1,23 @@
-#ifndef ALIEMCALSDigitizer_H
-#define ALIEMCALSDigitizer_H
+#ifndef ALIEMCALSDIGITIZER_H
+#define ALIEMCALSDIGITIZER_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 /* $Id$ */
 //_________________________________________________________________________
-//  Task Class for making SDigits in EMCAL      
-//                  
+// This is a TTask that makes SDigits out of Hits
+// A Summable Digits is the sum of all hits originating 
+// from one in one tower of the EMCAL 
+// A threshold for assignment of the primary to SDigit is applied 
+//
+// SDigits need to hold the energy sum of the hits, but AliEMCALDigit
+// can (should) only store amplitude.  Therefore, the SDigit energy is
+// "digitized" before being stored and must be "calibrated" back to an
+// energy before SDigits are summed to form true Digits
+//
+//
 //*-- Author: Sahal Yacoob (LBL)
 // based on : AliPHOSSDigitizer
 //_________________________________________________________________________
-//
-// Modif: 
-//  August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction
-//  July   2003 Yves Schutz: new  IO (à la PHOS)
  
 // --- ROOT system ---
 #include "TTask.h"
@@ -31,8 +36,8 @@ public:
   AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ;
   virtual ~AliEMCALSDigitizer(); // dtor
 
-  Int_t         Digitize(Float_t energy)const; //convert energy in GeV to int amplitude
-  Float_t       Calibrate(Int_t amp)const;  //opposite of Digitize()
+  Float_t       Digitize(Float_t energy)const; //convert energy in GeV to int amplitude
+  Float_t       Calibrate(Float_t amp)const;  //opposite of Digitize()
 
   virtual void  Exec(Option_t *option); 
   Int_t         GetSDigitsInRun() const {return fSDigitsInRun ;}  
@@ -63,9 +68,10 @@ private:
   Int_t   fFirstEvent;             // first event to process
   Int_t   fLastEvent;              // last  event to process
   Float_t fSampling;               // See AliEMCALGeometry
-
-  ClassDef(AliEMCALSDigitizer,6)  // description 
+  TClonesArray* fHits;             //-> Temporal array with hits
+       
+  ClassDef(AliEMCALSDigitizer,7)  // description 
 };
 
-#endif // AliEMCALSDigitizer_H
+#endif // AliEMCALSDIGITIZER_H