]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | //////////////////////////////////////////////////////////////////////// | |
18 | ||
19 | #include "AliHitMap.h" | |
20 | #include "TObject.h" | |
21 | class TClonesArray; | |
22 | ||
23 | class AliTOFHitMap : public TObject | |
24 | { | |
25 | public: | |
26 | AliTOFHitMap(); | |
27 | AliTOFHitMap(TClonesArray *sdig); | |
28 | AliTOFHitMap(const AliTOFHitMap & hitMap); | |
29 | ||
30 | virtual ~AliTOFHitMap(); | |
31 | // Clear the hit map | |
32 | virtual void Clear(const char *opt = ""); | |
33 | // Set a single hit | |
34 | virtual void SetHit(Int_t *vol, Int_t idigit); | |
35 | virtual void SetHit(Int_t *vol); | |
36 | // Get index of hit in the list of digits | |
37 | virtual Int_t GetHitIndex(Int_t *vol) const; | |
38 | // Get pointer to digit | |
39 | virtual TObject* GetHit(Int_t *vol) const; | |
40 | // Test hit status | |
41 | virtual FlagType TestHit(Int_t *vol) const; | |
42 | // Assignment operator | |
43 | AliTOFHitMap& operator = (const AliTOFHitMap& rhs); | |
44 | ||
45 | private: | |
46 | // Check index | |
47 | Int_t CheckedIndex(Int_t *vol) const; | |
48 | private: | |
49 | Int_t fNSector; // Number of sectors | |
50 | Int_t fNplate; // Number of plates | |
51 | Int_t fNstrip; // Maximum number of strips | |
52 | Int_t fNpx; // Number of pads in x | |
da3d3acd | 53 | Int_t fNpz; // Number of pads in z |
5919c40c | 54 | |
55 | TClonesArray *fSDigits; // Pointer to sdigits | |
56 | Int_t fMaxIndex; // maximum index in hit map | |
57 | Int_t *fHitMap; // ! [fMaxIndex] | |
58 | ||
59 | ClassDef(AliTOFHitMap,0) // Implements HitMap as a 1-dim array | |
60 | }; | |
61 | #endif |