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);
31 virtual ~AliTOFRawMap();
33 virtual void Clear(const char *opt = "");
35 virtual void SetHit(Int_t *slot, Int_t idigit);
36 virtual void SetHit(Int_t *slot);
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;
42 virtual FlagType TestHit(Int_t *vol) const;
45 AliTOFRawMap(const AliTOFRawMap & rawMap);
46 AliTOFRawMap &operator=(const AliTOFRawMap & rawMap);
48 Int_t CheckedIndex(const Int_t * const slot) const;
49 Int_t fNtrm; // Number of TRM
50 Int_t fNtrmChain; // Number of TRM chains per TRM
51 Int_t fNtdc; // Number of TDCs per TRM
52 Int_t fNtdcChannel; // Number of TDC channels per TDC
54 TClonesArray *fRawData; // Pointer to raw data
55 Int_t fMaxIndex; // maximum index in hit map
56 Int_t *fRawMap; // ! [fMaxIndex]
58 ClassDef(AliTOFRawMap,0) // Implements RawMap as a 1-dim array