]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIHITMAP_H | |
2 | #define ALIHITMAP_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | #include <TObject.h> | |
10 | ||
11 | typedef enum {kEmpty, kUsed, kUnused} FlagType; | |
12 | ||
13 | class AliHitMap : | |
14 | public TObject { | |
15 | public: | |
16 | // Virtual destructor -- it is necessary | |
17 | virtual ~AliHitMap() {} | |
18 | // Fill hits from list of digits into hit map | |
19 | virtual void FillHits() =0; | |
20 | // Clear the hit map | |
21 | virtual void Clear(const char *opt = "") =0; | |
22 | // Set a single hit | |
23 | virtual void SetHit(Int_t ix, Int_t iy, Int_t idigit) =0; | |
24 | // Delete a single hit | |
25 | virtual void DeleteHit(Int_t ix, Int_t iy) =0; | |
26 | // Get index of hit in the list of digits | |
27 | virtual Int_t GetHitIndex(Int_t ix, Int_t iy) const =0; | |
28 | // Get pointer to digit | |
29 | virtual TObject * GetHit(Int_t ix, Int_t iy) const =0; | |
30 | // Flag a hit as used | |
31 | virtual void FlagHit(Int_t ix, Int_t iy) =0; | |
32 | // Validate | |
33 | virtual Bool_t ValidateHit(Int_t ix, Int_t iy) =0; | |
34 | // Test hit status | |
35 | virtual FlagType TestHit(Int_t ix, Int_t iy) =0; | |
36 | ||
37 | ClassDef(AliHitMap,2) //virtual base class for HitMap | |
38 | }; | |
39 | #endif | |
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 |