4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ////////////////////////////////////////////////
11 // AliTOFRawMap class //
13 // It enables fast check //
14 // if the TDC channel was already engaged //
15 // for a measurement //
17 ////////////////////////////////////////////////
21 #include "AliHitMap.h"
25 class AliTOFRawMap : public TObject
29 AliTOFRawMap(TClonesArray *sdig);
30 AliTOFRawMap(const AliTOFRawMap & rawMap);
31 AliTOFRawMap &operator=(const AliTOFRawMap & rawMap);
33 virtual ~AliTOFRawMap();
35 virtual void Clear(const char *opt = "");
37 virtual void SetHit(Int_t *slot, Int_t idigit);
38 virtual void SetHit(Int_t *slot);
39 // Get index of hit in the list of digits
40 virtual Int_t GetHitIndex(Int_t *vol) const;
41 // Get pointer to digit
42 virtual TObject* GetHit(Int_t *vol) const;
44 virtual FlagType TestHit(Int_t *vol) const;
48 Int_t CheckedIndex(const Int_t * const slot) const;
50 Int_t fNtrm; // Number of TRM
51 Int_t fNtrmChain; // Number of TRM chains per TRM
52 Int_t fNtdc; // Number of TDCs per TRM
53 Int_t fNtdcChannel; // Number of TDC channels per TDC
55 TClonesArray *fRawData; // Pointer to raw data
56 Int_t fMaxIndex; // maximum index in hit map
57 Int_t *fRawMap; // ! [fMaxIndex]
59 ClassDef(AliTOFRawMap,0) // Implements RawMap as a 1-dim array