]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALDigitizer.h
remove obsolete histos and add detailed comments about more obscure aspects of digits...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALDigitizer.h
index 737b14f2bad7c90f52c5d67bce46425d4ab22356..bff3cf5301d42d1ee8ced584c74971910a7ae1dc 100644 (file)
@@ -6,7 +6,7 @@
 /* $Id$ */
 
 //_________________________________________________________________________
-//  Task Class for making Digits in EMCAL      
+//  Task Class for making Digits in EMCAL from SIMULATED DATA      
 //                  
 //*-- Author: Sahal Yacoob (LBL)
 // based on : AliPHOSDigit
@@ -17,9 +17,7 @@
 
 // --- ROOT system ---
 #include "TObjString.h"
-class TArrayI ;
 class TClonesArray ; 
-class TList;
 class TBrowser;
 
 // --- Standard library ---
@@ -27,6 +25,8 @@ class TBrowser;
 // --- AliRoot header files ---
 #include "AliDigitizer.h"
 #include "AliConfig.h"
+#include "AliEMCALCalibData.h"
+
 class AliEMCALSDigitizer ;
 class AliRunDigitizer ;
 
@@ -49,12 +49,12 @@ public:
   Float_t GetTimeResolution() const { return fTimeResolution ; }
   Float_t GetECAchannel()     const { return fADCchannelEC ; }
   Float_t GetECApedestal()    const { return fADCpedestalEC ; }
void   SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
 void    SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
   void    SetDigitThreshold(Float_t EMCThreshold)  {fDigitThreshold = EMCThreshold;}
   void    SetPinNoise(Float_t PinNoise )         {fPinNoise = PinNoise;}
 
   //General
-  Int_t   GetDigitsInRun()  const { return fDigitsInRun; } 
+  Int_t GetDigitsInRun()  const { return fDigitsInRun; } 
   void  MixWith(TString alirunFileName, 
                TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; // Add another one file to mix
   void  Print(Option_t* option="") const ;
@@ -67,13 +67,6 @@ public:
   }
 
   virtual void Browse(TBrowser* b);
-  // 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/DigiVar?",
-  Bool_t kSingleKey=kTRUE, const char* opt="RECREATE"); // *MENU*
 
 private:
 
@@ -86,7 +79,7 @@ private:
 
   //Calculate the time of crossing of the threshold by front edge
   Float_t FrontEdgeTime(TClonesArray * ticks) ;
-  Int_t   DigitizeEnergy(Float_t energy) ;
+  Int_t   DigitizeEnergy(Float_t energy, Int_t AbsId) ;
 
 private:
   
@@ -107,17 +100,16 @@ private:
   Float_t fTimeThreshold ;        // Threshold to start timing for given crystall
   Float_t fTimeSignalLength ;     // Length of the timing signal 
   Float_t fADCchannelEC ;         // width of one ADC channel in EC section (GeV)
-  Float_t fADCpedestalEC ;        //
+  Float_t fADCpedestalEC ;        // pedestal for one ADC channel
   Int_t   fNADCEC ;               // number of channels in EC section ADC
 
   TString fEventFolderName;         // skowron: name of EFN to read data from in stand alone mode
   Int_t   fFirstEvent;        // first event to process
   Int_t   fLastEvent;         // last  event to process
-  // Control hists
-  Int_t   fControlHists;          //!
-  TList  *fHists;                 //!
 
-  ClassDef(AliEMCALDigitizer,5)  // description 
+  AliEMCALCalibData * fCalibData; //Calibration data pointer
+
+  ClassDef(AliEMCALDigitizer,7)  // description 
 };