// cell a corresponding TObject, a hit, can also be stored. //
////////////////////////////////////////////////////////////////////////
#include "AliITSMap.h"
+#include "TArrayI.h"
+
class AliITSsegmentation;
class TObjArray;
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);
- // Copy Operator
- AliITSMapA1(const AliITSMapA1 &source);
- // Assignment operator
- AliITSMapA1& operator=(const AliITSMapA1 &source);
+ AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, Int_t thr);
+ AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, TArrayI thr);
// Distructor
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) 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);
+ virtual FlagTypeITS 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
void SetArray(TObjArray *obj);
protected:
+ // Copy Constructor
+ AliITSMapA1(const AliITSMapA1 &source);
+ // Assignment operator
+ AliITSMapA1& operator=(const AliITSMapA1 &source);
// Check index
Int_t CheckedIndex(Int_t iz, Int_t ix) const;
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