]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDdigitsManager.h
Improved quitting Event Display with close button.
[u/mrichter/AliRoot.git] / TRD / AliTRDdigitsManager.h
index 63b076c97bcc3c251cab26c900648c52c3d4c966..89ffbe45bba20978a95fc2e4fee38d6b0b69ad46 100644 (file)
@@ -20,6 +20,7 @@ class AliTRDSignalIndex;
 class AliTRDarrayADC;  
 class AliTRDarraySignal; 
 class AliTRDarrayDictionary;
+class AliTRDdigitsParam;
 
 class AliTRDdigitsManager : public TObject {
 
@@ -35,8 +36,7 @@ class AliTRDdigitsManager : public TObject {
   virtual void                Copy(TObject &m) const;
 
   virtual void                CreateArrays();
-  virtual void                ResetArrays();
-  virtual void                ResetArrays(Int_t det);
+  void                        ClearArrays(Int_t det);
   virtual Bool_t              BuildIndexes(Int_t det);
 
   virtual Bool_t              MakeBranch(TTree * const tree);
@@ -60,7 +60,7 @@ class AliTRDdigitsManager : public TObject {
   AliTRDarrayADC             *GetDigits(Int_t det)  const;
   AliTRDarraySignal          *GetSDigits(Int_t det) const;    
   AliTRDarrayDictionary      *GetDictionary(Int_t det, Int_t i) const;  
-  
+  AliTRDdigitsParam          *GetDigitsParam() const          { return fDigitsParam;     };
   AliTRDSignalIndex          *GetIndexes(Int_t det);
   TObjArray                  *GetIndexes() const              { return fSignalIndexes;   };
 
@@ -69,15 +69,17 @@ class AliTRDdigitsManager : public TObject {
   void                        RemoveIndexes(Int_t det);
   void                        ClearIndexes(Int_t det);
   
-  Int_t                       GetTrack(Int_t track, AliTRDdigit * const digit) const;
+  Int_t                       GetTrack(Int_t track, const AliTRDdigit * const digit) const;
   Short_t                     GetDigitAmp(Int_t row, Int_t col, Int_t time, Int_t det) const;
   UChar_t                     GetPadStatus(Int_t row, Int_t col, Int_t time, Int_t det) const;
 
-  Bool_t                      LoadArray(TObjArray * const object, const Char_t *branchname, TTree * const tree=0);  
-  Bool_t                      LoadArrayDict(TObjArray * const object, const Char_t *branchname, TTree * const tree=0);  
-  Bool_t                      StoreArray(TObjArray * const array1, const Char_t *branchname, TTree * const tree=0); 
-  Bool_t                      StoreArrayDict(TObjArray * const array3, const Char_t *branchname, TTree * const tree=0); 
-  
+  Bool_t                      LoadArrayDigits();
+  Bool_t                      LoadArrayDict();
+  Bool_t                      LoadDigitsParam();
+  Bool_t                      StoreArrayDigits();
+  Bool_t                      StoreArrayDict();
+  Bool_t                      StoreDigitsParam();
+
  protected:
   
   static const Int_t  fgkNDict;            //  Number of track dictionary arrays
@@ -88,12 +90,11 @@ class AliTRDdigitsManager : public TObject {
   Bool_t              fHasSDigits;         //  Switch for the summable digits
   TObjArray          *fSignalIndexes;      //  Provides access to the active pads and tbins
   Bool_t              fUseDictionaries;    //  Use dictionaries or not (case of real data)
-  TTree              *fTreeD;              //  Tree with detector objects
-  TBranch            *fBranch;             //  Branchaddress
   Int_t               fDets;               //  No of Detectors
   Bool_t              fRawRec;             //  Reconstruct from raw files? If its kTRUE then the TObjArrays have only one entry.
+  AliTRDdigitsParam  *fDigitsParam;        //  Parameters of the digits
 
-  ClassDef(AliTRDdigitsManager,7)          //  Manages the TRD digits
+  ClassDef(AliTRDdigitsManager,8)          //  Manages the TRD digits
 
 };
 #endif