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