- Three classes by MinJung Kweon AliHFEpriVtx, AliHFEsecVtx and AliHFEmcQA for primar...
[u/mrichter/AliRoot.git] / STEER / AliHitMap.h
CommitLineData
d0248995 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:
8918e700 16 // Virtual destructor -- it is necessary
17 virtual ~AliHitMap() {}
d0248995 18 // Fill hits from list of digits into hit map
19 virtual void FillHits() =0;
20 // Clear the hit map
ef42d733 21 virtual void Clear(const char *opt = "") =0;
d0248995 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
94de3818 27 virtual Int_t GetHitIndex(Int_t ix, Int_t iy) const =0;
d0248995 28 // Get pointer to digit
94de3818 29 virtual TObject * GetHit(Int_t ix, Int_t iy) const =0;
d0248995 30 // Flag a hit as used
31 virtual void FlagHit(Int_t ix, Int_t iy) =0;
d91b86b7 32 // Validate
33 virtual Bool_t ValidateHit(Int_t ix, Int_t iy) =0;
34 // Test hit status
d0248995 35 virtual FlagType TestHit(Int_t ix, Int_t iy) =0;
36
d91b86b7 37 ClassDef(AliHitMap,2) //virtual base class for HitMap
d0248995 38};
39#endif
40
41
42
43
44
45
46
47
48
49
50