warning fix
[u/mrichter/AliRoot.git] / TOF / AliTOFHitMap.h
CommitLineData
5919c40c 1#ifndef ALITOFHITMAP_H
2#define ALITOFHITMAP_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
0e46b9ae 9//////////////////////////////////////////////////////////////
10// //
11// AliTOFHitMap class //
12// //
13// hitmap enables fast check if the pad was already hit //
14// //
15// Author: Jiri Chudoba (CERN) //
16// //
17//////////////////////////////////////////////////////////////
5919c40c 18
5919c40c 19#include "TObject.h"
0f4a7374 20
0e46b9ae 21#include "AliHitMap.h"
22
5919c40c 23class TClonesArray;
24
25class AliTOFHitMap : public TObject
26{
27 public:
28 AliTOFHitMap();
10056aa6 29 AliTOFHitMap(TClonesArray *sdig);
5919c40c 30 AliTOFHitMap(const AliTOFHitMap & hitMap);
31
32 virtual ~AliTOFHitMap();
33 // Clear the hit map
34 virtual void Clear(const char *opt = "");
35 // Set a single hit
36 virtual void SetHit(Int_t *vol, Int_t idigit);
37 virtual void SetHit(Int_t *vol);
38 // Get index of hit in the list of digits
39 virtual Int_t GetHitIndex(Int_t *vol) const;
40 // Get pointer to digit
41 virtual TObject* GetHit(Int_t *vol) const;
42 // Test hit status
43 virtual FlagType TestHit(Int_t *vol) const;
44 // Assignment operator
45 AliTOFHitMap& operator = (const AliTOFHitMap& rhs);
46
47 private:
48 // Check index
0e74c396 49 Int_t CheckedIndex(Int_t * const vol) const;
5919c40c 50 private:
51 Int_t fNSector; // Number of sectors
52 Int_t fNplate; // Number of plates
53 Int_t fNstrip; // Maximum number of strips
54 Int_t fNpx; // Number of pads in x
da3d3acd 55 Int_t fNpz; // Number of pads in z
5919c40c 56
57 TClonesArray *fSDigits; // Pointer to sdigits
58 Int_t fMaxIndex; // maximum index in hit map
59 Int_t *fHitMap; // ! [fMaxIndex]
60
10056aa6 61 ClassDef(AliTOFHitMap,1) // Implements HitMap as a 1-dim array
5919c40c 62};
63#endif