]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | // Clear the map | |
23 | virtual void ClearMap() =0; | |
24 | // Set a single hit | |
25 | virtual void SetHit(Int_t iz, Int_t ix, Int_t idigit) =0; | |
26 | // Set threshold for the signal | |
27 | virtual void SetThreshold(Int_t) =0; | |
28 | // Delete a single hit | |
29 | virtual void DeleteHit(Int_t iz, Int_t ix) =0; | |
30 | // Flag a hit as used | |
31 | virtual void FlagHit(Int_t iz, Int_t ix) =0; | |
32 | // Get index of hit in the list of digits | |
33 | virtual Int_t GetHitIndex(Int_t iz, Int_t ix) =0; | |
34 | // Get pointer to digit | |
35 | virtual TObject * GetHit(Int_t iz, Int_t ix) =0; | |
36 | // Test hit status | |
37 | virtual FlagType TestHit(Int_t iz, Int_t ix) =0; | |
38 | // Get signal from map | |
39 | virtual Double_t GetSignal(Int_t iz, Int_t ix) =0; | |
40 | ||
41 | ClassDef(AliITSMap,1) //virtual base class for ITS Hit/Digit Map | |
42 | ||
43 | }; | |
44 | ||
45 | #endif | |
46 | ||
47 | ||
48 | ||
49 |