]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFRawMap.h
rho invariance tests
[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);
15ec34b9 30
31 virtual ~AliTOFRawMap();
32 // Clear the raw map
33 virtual void Clear(const char *opt = "");
34 // Set a single raw
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;
41 // Test hit status
42 virtual FlagType TestHit(Int_t *vol) const;
15ec34b9 43
44 private:
792b0ced 45 AliTOFRawMap(const AliTOFRawMap & rawMap);
46 AliTOFRawMap &operator=(const AliTOFRawMap & rawMap);
15ec34b9 47 // Check index
0e74c396 48 Int_t CheckedIndex(const Int_t * const slot) const;
15ec34b9 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
53
54 TClonesArray *fRawData; // Pointer to raw data
55 Int_t fMaxIndex; // maximum index in hit map
56 Int_t *fRawMap; // ! [fMaxIndex]
57
58 ClassDef(AliTOFRawMap,0) // Implements RawMap as a 1-dim array
59};
60#endif