]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALDigitizer.h
- Reset TProcessID count after each event
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALDigitizer.h
index b49919c3f9cb78c310be194578d539c033a6206b..13ab83700bbf78f7c8cef87c54cda9572e30e65a 100644 (file)
@@ -10,7 +10,8 @@
 //                  
 //*-- Author: Sahal Yacoob (LBL)
 // based on : AliPHOSDigit
-// July 2003 Yves Schutz : NewIO 
+// July     2003 Yves Schutz : NewIO 
+// November 2003 Aleksei Pavlinov : Shish-Kebab geometry 
 //_________________________________________________________________________ 
 
 
 #include "TObjString.h"
 class TArrayI ;
 class TClonesArray ; 
+class TList;
+class TBrowser;
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 #include "AliDigitizer.h"
 #include "AliConfig.h"
+#include "AliEMCALCalibData.h"
 class AliEMCALSDigitizer ;
 class AliRunDigitizer ;
 
@@ -54,7 +58,8 @@ public:
   Int_t   GetDigitsInRun()  const { return fDigitsInRun; } 
   void  MixWith(TString alirunFileName, 
                TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; // Add another one file to mix
-  void  Print()const ;
+  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 +67,15 @@ public:
    return *this ; 
   }
 
+  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:
 
   Bool_t  Init();                   
@@ -73,7 +87,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,15 +108,18 @@ 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;                 //!
+  AliEMCALCalibData * fCalibData; //Calibration data pointer
 
-  ClassDef(AliEMCALDigitizer,4)  // description 
-
+  ClassDef(AliEMCALDigitizer,6)  // description 
 };