#101318: Patch for various problems in AliROOT
[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
31 virtual ~AliTOFHitMap();
32 // Clear the hit map
33 virtual void Clear(const char *opt = "");
34 // Set a single hit
35 virtual void SetHit(Int_t *vol, Int_t idigit);
36 virtual void SetHit(Int_t *vol);
37 // Get index of hit in the list of digits
38 virtual Int_t GetHitIndex(Int_t *vol) const;
39 // Get pointer to digit
40 virtual TObject* GetHit(Int_t *vol) const;
41 // Test hit status
42 virtual FlagType TestHit(Int_t *vol) const;
5919c40c 43
44 private:
f2bce807 45 AliTOFHitMap(const AliTOFHitMap & hitMap);
46 AliTOFHitMap& operator = (const AliTOFHitMap& rhs);
47
5919c40c 48 // Check index
0e74c396 49 Int_t CheckedIndex(Int_t * const vol) const;
5919c40c 50 Int_t fNSector; // Number of sectors
51 Int_t fNplate; // Number of plates
52 Int_t fNstrip; // Maximum number of strips
53 Int_t fNpx; // Number of pads in x
da3d3acd 54 Int_t fNpz; // Number of pads in z
5919c40c 55
56 TClonesArray *fSDigits; // Pointer to sdigits
57 Int_t fMaxIndex; // maximum index in hit map
58 Int_t *fHitMap; // ! [fMaxIndex]
59
10056aa6 60 ClassDef(AliTOFHitMap,1) // Implements HitMap as a 1-dim array
5919c40c 61};
62#endif