]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALSDigitizer.h
- removing obsolote classes
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSDigitizer.h
index 3d124ba3a7d2528f12f16793b895567319471e3d..b7138687372a7d8b0c2f1879692a660129d8dacb 100644 (file)
@@ -1,25 +1,27 @@
-#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"
-class TFile ;
-class TList;
 class TBrowser;
-//class TBrowser;
 
 // --- Standard library ---
 
@@ -34,8 +36,9 @@ public:
   AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ;
   virtual ~AliEMCALSDigitizer(); // dtor
 
-  Float_t       Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
-  Int_t         Digitize(Float_t energy)const;
+  Int_t         Digitize(Float_t energy)const; //convert energy in GeV to int amplitude
+  Float_t       Calibrate(Int_t amp)const;  //opposite of Digitize()
+
   virtual void  Exec(Option_t *option); 
   Int_t         GetSDigitsInRun() const {return fSDigitsInRun ;}  
   virtual void  Print(Option_t *option="") const;
@@ -47,14 +50,6 @@ public:
   const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;}
 
   virtual void Browse(TBrowser* b);
-  //JLK
-  // hists
-  //void   SetControlHists(Int_t var=0) {fControlHists=var;}
-  //Int_t  GetControlHist() const {return fControlHists;}
-  //TList *GetListOfHists() {return fHists;}
-  //TList* BookControlHists(int var=0);
-  //void   SaveHists(const char* name="RF/TRD1/Digitizations/SDigiVar?", 
-  //Bool_t kSingleKey=kTRUE, const char* opt="RECREATE"); // *MENU*
 
 private:
   void     Init() ;
@@ -73,15 +68,9 @@ private:
   Int_t   fFirstEvent;             // first event to process
   Int_t   fLastEvent;              // last  event to process
   Float_t fSampling;               // See AliEMCALGeometry
-  //JLK
-  // Control hists
-  //Int_t   fControlHists;          //!
-  //TList  *fHists;                 //!
 
-  //JLK
-  //ClassDef(AliEMCALSDigitizer,5)  // description 
   ClassDef(AliEMCALSDigitizer,6)  // description 
 };
 
-#endif // AliEMCALSDigitizer_H
+#endif // AliEMCALSDIGITIZER_H