Code from MUON-dev joined
[u/mrichter/AliRoot.git] / MUON / AliMUONHitMap.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONHITMAP_H
2#define ALIMUONHITMAP_H
3
3da30618 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
a897a37a 8
a9e2aefa 9#include <TObject.h>
10
11typedef enum {kEmpty, kUsed, kUnused} FlagType;
a897a37a 12const Int_t kMaxNpadx=1200, kMaxNpady=1200;
13
14class AliMUONHitMap :
15public TObject {
16 public:
a9e2aefa 17 // Fill hits from list of digits into hit map
a897a37a 18 virtual void FillHits() =0;
a9e2aefa 19 // Clear the hit map
20 virtual void Clear() =0;
21 // Set a single hit
a897a37a 22 virtual void SetHit(Int_t ix, Int_t iy, Int_t idigit) =0;
a9e2aefa 23 // Delete a single hit
a897a37a 24 virtual void DeleteHit(Int_t ix, Int_t iy) =0;
a9e2aefa 25 // Get index of hit in the list of digits
a897a37a 26 virtual Int_t GetHitIndex(Int_t ix, Int_t iy) =0;
a9e2aefa 27 // Get pointer to digit
a897a37a 28 virtual TObject * GetHit(Int_t ix, Int_t iy) =0;
a9e2aefa 29 // Flag a hit as used
30 virtual void FlagHit(Int_t ix, Int_t iy) =0;
31 // Test hit status
32 virtual FlagType TestHit(Int_t ix, Int_t iy) =0;
a897a37a 33
34 ClassDef(AliMUONHitMap,1) //virtual base class for muon HitMap
35};
a897a37a 36#endif
37
38
a9e2aefa 39
40
41
42
43
44
45
46
47