]> 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 6ddf1d85bf733470afab688f05ba52ea014b2876..bff3cf5301d42d1ee8ced584c74971910a7ae1dc 100644 (file)
@@ -6,24 +6,27 @@
 /* $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
-// July 2003 Yves Schutz : NewIO 
+// July     2003 Yves Schutz : NewIO 
+// November 2003 Aleksei Pavlinov : Shish-Kebab geometry 
 //_________________________________________________________________________ 
 
 
 // --- ROOT system ---
 #include "TObjString.h"
-class TArrayI ;
 class TClonesArray ; 
+class TBrowser;
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 #include "AliDigitizer.h"
 #include "AliConfig.h"
+#include "AliEMCALCalibData.h"
+
 class AliEMCALSDigitizer ;
 class AliRunDigitizer ;
 
@@ -31,7 +34,7 @@ class AliEMCALDigitizer: public AliDigitizer {
 
 public:
   AliEMCALDigitizer() ;          // ctor
-  AliEMCALDigitizer(TString alirunFileNameFile, TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;  
+  AliEMCALDigitizer(TString alirunFileNameFile, TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;  
   AliEMCALDigitizer(const AliEMCALDigitizer & dtizer) ;
   AliEMCALDigitizer(AliRunDigitizer * manager) ;
   virtual ~AliEMCALDigitizer() ;       
@@ -46,15 +49,16 @@ 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    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::fgkDefaultEventFolderName) ; // Add another one file to mix
-  void  Print()const ;
+               TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; // Add another one file to mix
+  void  Print(Option_t* option="") const ;
+  void  Print1(Option_t * option); // *MENU*
  
   AliEMCALDigitizer & operator = (const AliEMCALDigitizer & /*rvalue*/)  {
     // assignement operator requested by coding convention but not needed
@@ -62,6 +66,8 @@ public:
    return *this ; 
   }
 
+  virtual void Browse(TBrowser* b);
+
 private:
 
   Bool_t  Init();                   
@@ -73,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:
   
@@ -94,13 +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
 
-  ClassDef(AliEMCALDigitizer,4)  // description 
+  AliEMCALCalibData * fCalibData; //Calibration data pointer
 
+  ClassDef(AliEMCALDigitizer,7)  // description 
 };