3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////////////////////////////
7 // Map Class for ITS. Implementation A1. In this implementation, the //
8 // 2 dimensional (iz,ix) map is filled with integers values. For each //
9 // cell a corresponding TObject, a hit, can also be stored. //
10 ////////////////////////////////////////////////////////////////////////
11 #include "AliITSMap.h"
14 class AliITSsegmentation;
17 class AliITSMapA1 : public AliITSMap{
20 AliITSMapA1(); // default creator
21 // Standard reator using only a segmentation class
22 AliITSMapA1(AliITSsegmentation *seg);
23 // Standard reator using only a segmentation class and pointer to digits
24 AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig);
25 // Standard reator using only a segmentation class and pointer to digits
26 // and a threshold value
27 AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, Int_t thr);
28 AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, TArrayI thr);
30 virtual ~AliITSMapA1();
31 // Fill hits from list of digits into hit map
32 virtual void FillMap();
33 virtual void FillMap2();
35 virtual void ClearMap();
37 virtual void SetHit(Int_t iz, Int_t ix, Int_t idigit);
38 // Set threshold for the signal
39 virtual void SetThreshold(Int_t thresh) {fMapThreshold=thresh;}
40 virtual void SetThresholdArr(TArrayI th) {fMapThresholdArr=th;}
41 // Delete a single hit
42 virtual void DeleteHit(Int_t iz, Int_t ix);
43 // Get index of hit in the list of digits
44 virtual Int_t GetHitIndex(Int_t iz, Int_t ix) const ;
45 // Get pointer to digit
46 virtual TObject* GetHit(Int_t iz, Int_t ix) const;
48 virtual void FlagHit(Int_t iz, Int_t ix);
50 virtual FlagTypeITS TestHit(Int_t iz, Int_t ix);
51 // Get signal from map
52 virtual Double_t GetSignal(Int_t iz, Int_t ix) const;
53 // Get max index inmap
54 Int_t MaxIndex() const {return fMaxIndex;}
55 // Set the array of objects
56 void SetArray(TObjArray *obj);
60 AliITSMapA1(const AliITSMapA1 &source);
61 // Assignment operator
62 AliITSMapA1& operator=(const AliITSMapA1 &source);
64 Int_t CheckedIndex(Int_t iz, Int_t ix) const;
67 AliITSsegmentation *fSegmentation; // segmentation class
70 TObjArray *fObjects; // object
71 Int_t fNobjects; // number of objects
72 Int_t fMaxIndex; // max index in map
73 TArrayI fMapThresholdArr; // array with thresholds
75 Int_t *fHitMap; //! [fMaxIndex]
76 Int_t fMapThreshold; // signal threshold (ADC)
78 ClassDef(AliITSMapA1,2) // Implements Hit/Digit Map