New AliTRDcluster constructor
[u/mrichter/AliRoot.git] / TOF / AliTOFRawMap.h
CommitLineData
15ec34b9 1#ifndef ALITOFRAWMAP_H
2#define ALITOFRAWMAP_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// AliTOFRawMap class //
12// //
13// It enables fast check //
14// if the TDC channel was already engaged //
15// for a measurement //
16// //
17////////////////////////////////////////////////
18
19#include "TObject.h"
20
21#include "AliHitMap.h"
22
23class TClonesArray;
24
25class AliTOFRawMap : public TObject
26{
27 public:
28 AliTOFRawMap();
29 AliTOFRawMap(TClonesArray *sdig);
30 AliTOFRawMap(const AliTOFRawMap & rawMap);
31
32 virtual ~AliTOFRawMap();
33 // Clear the raw map
34 virtual void Clear(const char *opt = "");
35 // Set a single raw
36 virtual void SetHit(Int_t *slot, Int_t idigit);
37 virtual void SetHit(Int_t *slot);
38 // Get index of hit in the list of digits
39 virtual Int_t GetHitIndex(Int_t *vol) const;
40 // Get pointer to digit
41 virtual TObject* GetHit(Int_t *vol) const;
42 // Test hit status
43 virtual FlagType TestHit(Int_t *vol) const;
44 // Assignment operator
45 AliTOFRawMap& operator = (const AliTOFRawMap& rhs);
46
47 private:
48 // Check index
49 Int_t CheckedIndex(Int_t *slot) const;
50 private:
51 Int_t fNtrm; // Number of TRM
52 Int_t fNtrmChain; // Number of TRM chains per TRM
53 Int_t fNtdc; // Number of TDCs per TRM
54 Int_t fNtdcChannel; // Number of TDC channels per TDC
55
56 TClonesArray *fRawData; // Pointer to raw data
57 Int_t fMaxIndex; // maximum index in hit map
58 Int_t *fRawMap; // ! [fMaxIndex]
59
60 ClassDef(AliTOFRawMap,0) // Implements RawMap as a 1-dim array
61};
62#endif