]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliHitMap.h
update for running on GRID
[u/mrichter/AliRoot.git] / STEER / AliHitMap.h
... / ...
CommitLineData
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
11typedef enum {kEmpty, kUsed, kUnused} FlagType;
12
13class AliHitMap :
14public 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