]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSDigitizer.h
Fixes for cmake
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
index c3f4ae07a0530b2c9c9b42fcc3fc17f15faf4221..c7c1ddb1017c99010b2722479e6dda2bfaf38010 100644 (file)
@@ -3,62 +3,88 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+
 /* $Id$ */
 
+/* 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)
+ *
+ * Revision 1.25  2005/11/30 18:56:26  schutz
+ * Small corrections to fix compilation errors
+ *
+ * Revision 1.24  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 //  Task Class for making SDigits in PHOS      
-//                  
+// A Summable Digits is the sum of all hits originating 
+// from one primary in one active cell
+//*--
 //*-- Author: Dmitri Peressounko(SUBATECH & KI)
 
 
 // --- ROOT system ---
 #include "TTask.h"
-#include "TString.h"
+#include "AliConfig.h"
+class TFile ;
+
+
 // --- Standard library ---
 
 // --- AliRoot header files ---
+//class AliPHOSQADataMaker ; 
 
 class AliPHOSSDigitizer: public TTask {
 
 public:
   AliPHOSSDigitizer() ;          // ctor
-  AliPHOSSDigitizer(const char* HeaderFile,const char *SdigitsTitle = 0) ; 
-  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); }
+  AliPHOSSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ; 
+  AliPHOSSDigitizer(const AliPHOSSDigitizer& sd) ;   
+  AliPHOSSDigitizer& operator = (const AliPHOSSDigitizer& sd) ;
 
-  virtual void  Exec(Option_t *option); 
-  
-  Float_t  GetPedestalParameter()const {return fA;}
-  Float_t  GetCalibrationParameter()const{return fB;}
-  char *   GetSDigitsBranch()const{return (char*) fSDigitsTitle.Data();}  
+  virtual ~AliPHOSSDigitizer(); // dtor
 
-  virtual void Print(Option_t* option) const ;
+  virtual void   Exec(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; }
 
-  void     SetPedestalParameter(Float_t A){fA = A ;}
-  void     SetSlopeParameter(Float_t B){fB = B ;}
-  void     SetSDigitsBranch(const char * title ) ;
-
-  Bool_t   operator == (const AliPHOSSDigitizer & sd) const ;
+  Bool_t operator == (const AliPHOSSDigitizer & sd) const ;
 
 private:
+
   void     Init() ;
+  void     InitParameters() ;
   void     PrintSDigits(Option_t * option) ;
+  void     Unload() const ;
+
 
 private:
-  Float_t fA ;              //Pedestal parameter
-  Float_t fB ;              //Slope Digitizition parameters
-  Int_t   fNevents ;        // Number of events to digitize
   Float_t fPrimThreshold ;  // To store primari if Elos > threshold
-  TString fSDigitsTitle ;   // title of SDigits branch
-  TString fHeadersFile ;    //input file
-  Bool_t         fIsInitialized ; 
-  TClonesArray * fSDigits ; //! list of SDigits
-  TClonesArray * fHits ;    //!
-
-
-  ClassDef(AliPHOSSDigitizer,1)  // description 
+  Bool_t  fDefaultInit;     //! Says if the task was created by defaut ctor (only parameters are initialized)
+  TString fEventFolderName; // event folder name
+  Bool_t  fInit ;           //! tells if initialisation wennt OK, will revent exec if not
+  Int_t   fSDigitsInRun ;   //! Total number of sdigits in one run
+  Int_t   fFirstEvent;      // first event to process
+  Int_t   fLastEvent;       // last  event to process
+
+  ClassDef(AliPHOSSDigitizer,5)  // description 
 
 };