]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALSDigitizer.h
Using the new altro raw-data format. Removing some obsolete macros.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSDigitizer.h
index 8c08390e0a3dfecf56581f48b6ab451ed4448a32..d2a791d23d82092a8fd5aa8049d7e94d577b6af3 100644 (file)
@@ -16,7 +16,7 @@
  
 // --- ROOT system ---
 #include "TTask.h"
-class TFile ;
+class TBrowser;
 
 // --- Standard library ---
 
@@ -27,20 +27,24 @@ class AliEMCALSDigitizer: public TTask {
 
 public:
   AliEMCALSDigitizer() ;          // ctor
-  AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::fgkDefaultEventFolderName) ; 
+  AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ; 
   AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ;
-  virtual ~AliEMCALSDigitizer() {;} // dtor
+  virtual ~AliEMCALSDigitizer(); // dtor
+
+  Int_t         Digitize(Float_t energy)const; //convert energy in GeV to int amplitude
+  Float_t       Calibrate(Int_t amp)const;  //opposite of Digitize()
 
-  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  Print() const ;
+  virtual void  Print(Option_t *option="") const;
+  void          Print1(Option_t *option="all");  // *MENU*
   void          SetEventFolderName(TString name) { fEventFolderName = name ; }
+  void          SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
 
   Bool_t operator == (const AliEMCALSDigitizer & sd) const ;
   const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;}
 
+  virtual void Browse(TBrowser* b);
 
 private:
   void     Init() ;
@@ -54,11 +58,13 @@ private:
   Float_t fECPrimThreshold ;       // To store primary if EC Shower Elos > threshold
   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
+  Bool_t  fInit ;                  //! tells if initialisation went 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
+  Float_t fSampling;               // See AliEMCALGeometry
 
-  ClassDef(AliEMCALSDigitizer,5)  // description 
-
+  ClassDef(AliEMCALSDigitizer,6)  // description 
 };
 
 #endif // AliEMCALSDigitizer_H