]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSDigitizer.h
exteneded geometry
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
index 4bebb781a1b3c32c6df96f52b1200379950adb8d..d3b734ec1670a5104772fe648211eb0ed6625480 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 //_________________________________________________________________________
-//  Task Class for making SDigits in PHOS      
+//  Class for making SDigits in PHOS      
 // A Summable Digits is the sum of all hits originating 
 // from one primary in one active cell
 //*--
@@ -38,7 +38,7 @@
 
 
 // --- ROOT system ---
-#include "TTask.h"
+#include "TNamed.h"
 #include "AliConfig.h"
 class TFile ;
 
@@ -48,7 +48,7 @@ class TFile ;
 // --- AliRoot header files ---
 //class AliPHOSQADataMaker ; 
 
-class AliPHOSSDigitizer: public TTask {
+class AliPHOSSDigitizer: public TNamed {
 
 public:
   AliPHOSSDigitizer() ;          // ctor
@@ -58,10 +58,8 @@ public:
 
   virtual ~AliPHOSSDigitizer(); // dtor
 
-  Float_t        Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
-  Int_t          Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
-  virtual void   Exec(Option_t *option); 
-  Int_t    GetSDigitsInRun() const {return fSDigitsInRun ;}  
+  virtual void   Digitize(Option_t *option); 
+  Int_t          GetSDigitsInRun() const {return fSDigitsInRun ;}  
   virtual void   Print(const Option_t * = "") const ;
   void           SetEventFolderName(TString name) { fEventFolderName = name ; }
   void           SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
@@ -70,7 +68,6 @@ public:
 
  
 private:
-//  AliPHOSQADataMaker * GetQADataMaker() const { return fQADM ; } 
 
   void     Init() ;
   void     InitParameters() ;
@@ -79,8 +76,6 @@ private:
 
 
 private:
-  Float_t fA ;              // Pedestal parameter
-  Float_t fB ;              // Slope Digitizition parameters
   Float_t fPrimThreshold ;  // To store primari if Elos > threshold
   Bool_t  fDefaultInit;     //! Says if the task was created by defaut ctor (only parameters are initialized)
   TString fEventFolderName; // event folder name
@@ -89,10 +84,7 @@ private:
   Int_t   fFirstEvent;      // first event to process
   Int_t   fLastEvent;       // last  event to process
 
-//  AliPHOSQADataMaker * fQADM ; //!Quality Assurance Data Maker
-//  static const Int_t fgkCycles = 9999 ; // QA data accumulation cycle 
-
-  ClassDef(AliPHOSSDigitizer,4)  // description 
+  ClassDef(AliPHOSSDigitizer,6)  // description 
 
 };