]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSDigitizer.h
Removing the tasks from the digitization (Ruben)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
index 994e79c16dc0992011d6ecd3edc35b3bbe7050b8..d3b734ec1670a5104772fe648211eb0ed6625480 100644 (file)
@@ -9,6 +9,15 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.29  2007/10/10 09:05:10  schutz
+ * Changing name QualAss to QA
+ *
+ * Revision 1.28  2007/09/30 17:08:20  schutz
+ * Introducing the notion of QA data acquisition cycle (needed by online)
+ *
+ * Revision 1.27  2007/08/07 14:12:03  kharlov
+ * Quality assurance added (Yves Schutz)
+ *
  * Revision 1.26  2006/08/28 10:01:56  kharlov
  * Effective C++ warnings fixed (Timur Pocheptsov)
  *
@@ -21,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
 //*--
@@ -29,7 +38,7 @@
 
 
 // --- ROOT system ---
-#include "TTask.h"
+#include "TNamed.h"
 #include "AliConfig.h"
 class TFile ;
 
@@ -37,9 +46,9 @@ class TFile ;
 // --- Standard library ---
 
 // --- AliRoot header files ---
-class AliPHOSQualAssDataMaker ; 
+//class AliPHOSQADataMaker ; 
 
-class AliPHOSSDigitizer: public TTask {
+class AliPHOSSDigitizer: public TNamed {
 
 public:
   AliPHOSSDigitizer() ;          // ctor
@@ -49,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; }
@@ -61,7 +68,6 @@ public:
 
  
 private:
-  AliPHOSQualAssDataMaker * GetQualAssDataMaker() const { return fQADM ; } 
 
   void     Init() ;
   void     InitParameters() ;
@@ -70,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
@@ -79,9 +83,8 @@ private:
   Int_t   fSDigitsInRun ;   //! Total number of sdigits in one run
   Int_t   fFirstEvent;      // first event to process
   Int_t   fLastEvent;       // last  event to process
-  AliPHOSQualAssDataMaker * fQADM ; //!Quality Assurance Data Maker
 
-  ClassDef(AliPHOSSDigitizer,3)  // description 
+  ClassDef(AliPHOSSDigitizer,6)  // description 
 
 };