]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSMap.h
Release version of ITS code
[u/mrichter/AliRoot.git] / ITS / AliITSMap.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSMAP_H
2#define ALIITSMAP_H
3
4
e8189707 5#include <TObject.h>
b0f5e3fc 6
e8189707 7typedef enum {kEmpty, kUsed, kUnused} FlagType;
b0f5e3fc 8
9//___________________________________________________________________________
10
11class AliITSMap :
12 public TObject {
13
14public:
15 virtual ~AliITSMap() {}
e8189707 16 // Fill hits from list of digits into hit map
b0f5e3fc 17 virtual void FillMap() =0;
e8189707 18 // Clear the map
b0f5e3fc 19 virtual void ClearMap() =0;
e8189707 20 // Set a single hit
b0f5e3fc 21 virtual void SetHit(Int_t iz, Int_t ix, Int_t idigit) =0;
e8189707 22 // Delete a single hit
b0f5e3fc 23 virtual void DeleteHit(Int_t iz, Int_t ix) =0;
e8189707 24 // Flag a hit as used
25 virtual void FlagHit(Int_t iz, Int_t ix) =0;
26 // Get index of hit in the list of digits
b0f5e3fc 27 virtual Int_t GetHitIndex(Int_t iz, Int_t ix) =0;
e8189707 28 // Get pointer to digit
b0f5e3fc 29 virtual TObject * GetHit(Int_t iz, Int_t ix) =0;
e8189707 30 // Test hit status
31 virtual FlagType TestHit(Int_t iz, Int_t ix) =0;
32 // Get signal from map
b0f5e3fc 33 virtual Double_t GetSignal(Int_t iz, Int_t ix) =0;
34
35 ClassDef(AliITSMap,1) //virtual base class for ITS Hit/Digit Map
36
e8189707 37};
b0f5e3fc 38
39#endif
40
41
42
43