]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSMapA1.h
New plots for trending injector efficiencies (Melinda)
[u/mrichter/AliRoot.git] / ITS / AliITSMapA1.h
index 7a8bcc4a476540362ab0014ed273ab6095e51ccc..ee78704656aba519afbdb1b0f991c9376ac63c9a 100644 (file)
@@ -9,6 +9,8 @@
 // cell a corresponding TObject, a hit, can also be stored.           //
 ////////////////////////////////////////////////////////////////////////
 #include "AliITSMap.h"
+#include "TArrayI.h"
+
 class AliITSsegmentation;
 class TObjArray;
 
@@ -22,7 +24,8 @@ class AliITSMapA1 : public AliITSMap{
     AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig);
     // Standard reator using only a segmentation class and pointer to digits
     // and a threshold value
-    AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, Int_t threshold);
+    AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, Int_t thr);
+    AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, TArrayI thr);
     // Copy Operator
     AliITSMapA1(const AliITSMapA1 &source);
     // Assignment operator
@@ -31,24 +34,26 @@ class AliITSMapA1 : public AliITSMap{
     virtual ~AliITSMapA1();
     // Fill hits from list of digits into hit map
     virtual  void  FillMap();
+    virtual  void  FillMap2();
     // Clear the hit map
     virtual  void  ClearMap();    
     // Set a single hit
     virtual  void  SetHit(Int_t iz, Int_t ix, Int_t idigit);
     // Set threshold for the signal
     virtual  void  SetThreshold(Int_t thresh) {fMapThreshold=thresh;}
+    virtual  void  SetThresholdArr(TArrayI th) {fMapThresholdArr=th;} 
     // Delete a single hit
     virtual  void  DeleteHit(Int_t iz, Int_t ix);
     // Get index of hit in the list of digits
-    virtual Int_t  GetHitIndex(Int_t iz, Int_t ix);
+    virtual Int_t  GetHitIndex(Int_t iz, Int_t ix) const ;
     // Get pointer to digit
-    virtual TObject* GetHit(Int_t iz, Int_t ix);
+    virtual TObject* GetHit(Int_t iz, Int_t ix) const;
     // Flag a hit as used
     virtual  void  FlagHit(Int_t iz, Int_t ix);
     // Test hit status
     virtual FlagType TestHit(Int_t iz, Int_t ix);
     // Get signal from map
-    virtual Double_t  GetSignal(Int_t iz, Int_t ix);
+    virtual Double_t  GetSignal(Int_t iz, Int_t ix) const;
     // Get max index inmap
     Int_t   MaxIndex() const  {return fMaxIndex;}
     // Set the array of objects
@@ -56,7 +61,7 @@ class AliITSMapA1 : public AliITSMap{
 
  protected:
     // Check index
-    Int_t   CheckedIndex(Int_t iz, Int_t ix);
+    Int_t   CheckedIndex(Int_t iz, Int_t ix) const;
 
     // Data members
     AliITSsegmentation *fSegmentation;   // segmentation class
@@ -65,12 +70,12 @@ class AliITSMapA1 : public AliITSMap{
     TObjArray  *fObjects;                // object
     Int_t fNobjects;                     // number of objects
     Int_t fMaxIndex;                     // max index in map
-
+    TArrayI fMapThresholdArr;            // array with thresholds
  private:
     Int_t *fHitMap;                      //! [fMaxIndex]
     Int_t fMapThreshold;                 // signal threshold (ADC)
 
-    ClassDef(AliITSMapA1,1)  // Implements Hit/Digit Map 
+    ClassDef(AliITSMapA1,2)  // Implements Hit/Digit Map 
 };
 
 #endif