Normalized positive PID weights (conditional probabilities)
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitMap.h
CommitLineData
bf6bf84c 1#ifndef ALITOFDIGITMAP_H
2#define ALITOFDIGITMAP_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7
8////////////////////////////////////////////////////////////////////////
9//
10// AliTOFDigitMap class
11//
12// digitmap enables fast check if the pad was already hit
13//
14// Author: F. Pierella | pierella@bo.infn.it
15//
16////////////////////////////////////////////////////////////////////////
17
18#include "AliHitMap.h"
19#include "TObject.h"
0f4a7374 20#include "AliTOFGeometry.h"
bf6bf84c 21class TClonesArray;
22
23class AliTOFDigitMap : public TObject
24{
25 public:
26 AliTOFDigitMap();
27 AliTOFDigitMap(TClonesArray *dig);
28 AliTOFDigitMap(const AliTOFDigitMap & digitMap);
29
30 virtual ~AliTOFDigitMap();
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 AliTOFDigitMap& operator = (const AliTOFDigitMap& 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
a06668b9 53 Int_t fNpz; // Number of pads in z
bf6bf84c 54
55 TClonesArray *fDigits; // Pointer to sdigits
56 Int_t fMaxIndex; // maximum index in hit map
57 Int_t *fDigitMap; // ! [fMaxIndex]
58
59 ClassDef(AliTOFDigitMap,0) // Implements DigitMap as a 1-dim array
60};
61#endif