]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitizer.h
Cleaning the task in the destructor if it was posted
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitizer.h
index 340ac53182ef6d1a6657ffe435566c1389cf9264..e10f7b0413d79001d62b4cc6e12abd8f6178faa4 100644 (file)
@@ -4,11 +4,11 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
-#include "../STEER/AliDigitizer.h"
+#include "AliDigitizer.h"
 
 class AliRunDigitizer;
 class AliMUONPadHit;
-class AliHitMap;
+class AliMUONHitMapA1;
 
 class AliMUONDigitizer : public AliDigitizer {
  public:
@@ -18,7 +18,7 @@ class AliMUONDigitizer : public AliDigitizer {
     virtual ~AliMUONDigitizer();
 
     // Compare pad hits
-    virtual Bool_t Exists(const AliMUONPadHit * sdigit);
+    virtual Bool_t Exists(const AliMUONPadHit * sdigit) const;
     // Update a pad hit
     virtual  void Update(AliMUONPadHit *sdigit);
     // Create a new hit
@@ -28,33 +28,29 @@ class AliMUONDigitizer : public AliDigitizer {
     virtual Bool_t Init();
 
     // Do the main work
-    void Digitize() ;
+    virtual void Exec(Option_t* option=0);
     
+    Int_t GetDebug() const {return fDebug;}       // get debug level
+    void SetDebug(Int_t level){fDebug = level;}   // set debug level    
     enum {kBgTag = -1};
     
  private:    
     void SortTracks(Int_t *tracks,Int_t *charges,Int_t ntr);
     
  private:
-    AliRunDigitizer *fManager;      // ! pointer to the AliRunDigitizer object
-    TTree *fTrH1;                   // ! Hits Tree
-    TClonesArray *fHits;            // ! List of hits for one track only
-    TClonesArray *fPadHits;         // ! List of clusters for one track only
-    AliHitMap **fHitMap;            // ! pointer to array of pointers to hitmaps
-    Int_t fNch;                     // ! chamber nr (loop variable)
-    Int_t fTrack;                   // ! track nr (loop variable)
-    TObjArray *fTDList;             // ! list of AliMUONTransientDigits
-    TObjArray *fTrList;             // ! list of tracks
-    TClonesArray *fAddress;         // ! pointer to TClonesArray of TVectors with trackinfo
-    Int_t fCounter;                 // ! nr. of AliMUONTransientDigit
-    Int_t fCountadr;                // ! counter for trinfo
-    Int_t fDigits[6];               // ! array with digits
-    Int_t fEvNrSig;                 // signal     event number
-    Int_t fEvNrBgr;                 // background event number    
-    TClonesArray * fHeaderFiles ;   // Names of files with headers to merge
-    Bool_t fInitialized;            // if first file already read
-    
-    ClassDef(AliMUONDigitizer,1)
+    TClonesArray* fHits;
+    TClonesArray* fPadHits;
+    AliMUONHitMapA1 **fHitMap;      //! pointer to array of pointers to hitmaps
+    Int_t fNch;                     //! chamber nr (loop variable)
+    Int_t fTrack;                   //! track nr (loop variable)
+    TObjArray *fTDList;             //! list of AliMUONTransientDigits
+    Int_t fCounter;                 //! nr. of AliMUONTransientDigit
+    Bool_t fSignal;                 //! kTRUE if signal file is processed
+    Int_t fMask;                    //! mask dependent on input file
+    Int_t fDigits[6];               //! array with digits
+    Int_t fDebug;                   //! debug level
+
+    ClassDef(AliMUONDigitizer,1)  // MUON merging/digitization
 };    
 #endif