]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSMap.h
Fixes for #77757: Issues with CMake and detector algorithms. The following targets...
[u/mrichter/AliRoot.git] / ITS / AliITSMap.h
1 #ifndef ALIITSMAP_H
2 #define ALIITSMAP_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5 /* $Id$ */
6 ////////////////////////////////////////////////
7 //  Map Class for ITS.                        //
8 ////////////////////////////////////////////////
9
10 #include <TObject.h>
11 #include <TArrayI.h>
12 typedef enum {kEmpty, kUsed, kUnused} FlagType;
13
14 //___________________________________________________________________________
15
16 class AliITSMap : public TObject {
17
18  public:
19     virtual ~AliITSMap() {}
20     // Fill hits from list of digits into hit map
21     virtual  void  FillMap()                                       =0;
22     virtual  void  FillMap2()                                      =0;
23     // Clear the map
24     virtual  void  ClearMap()                                      =0;
25     // Set a single hit
26     virtual  void  SetHit(Int_t iz, Int_t ix, Int_t idigit)        =0;
27     // Set threshold for the signal
28     virtual  void  SetThreshold(Int_t)                             =0;
29     virtual  void  SetThresholdArr(TArrayI)                        =0;
30     // Delete a single hit
31     virtual  void  DeleteHit(Int_t iz, Int_t ix)                   =0;
32     // Flag a hit as used
33     virtual  void  FlagHit(Int_t iz, Int_t ix)                     =0;    
34     // Get index of hit in the list of digits
35     virtual Int_t  GetHitIndex(Int_t iz, Int_t ix) const           =0;
36     // Get pointer to digit
37     virtual TObject * GetHit(Int_t iz, Int_t ix) const             =0;
38     // Test hit status
39     virtual FlagType TestHit(Int_t iz, Int_t ix)                   =0;
40     // Get signal from map
41     virtual Double_t  GetSignal(Int_t iz, Int_t ix) const          =0;
42
43     ClassDef(AliITSMap,1) //virtual base class for ITS Hit/Digit Map
44
45 };
46
47 #endif  
48
49
50
51