]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliFMDFloatMap.h
Updated PaintContour() method
[u/mrichter/AliRoot.git] / STEER / AliFMDFloatMap.h
1 #ifndef ALIFMDFLOATMAP_H
2 #define ALIFMDFLOATMAP_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 #ifndef ALIFMDMAP_H
9 # include "AliFMDMap.h"
10 #endif
11 //____________________________________________________________________
12 //
13 // Array of floats indexed by strip identifier.
14 // the floats are indexed by the coordinates 
15 //     DETECTOR # (1-3)
16 //     RING ID    ('I' or 'O', any case)
17 //     SECTOR #   (0-39)
18 //     STRIP #    (0-511)
19 //
20 class AliFMDFloatMap : public AliFMDMap
21 {
22 public:
23   AliFMDFloatMap(Int_t  maxDet = kMaxDetectors, 
24                  Int_t  maxRing= kMaxRings, 
25                  Int_t  maxSec = kMaxSectors, 
26                  Int_t  maxStr = kMaxStrips);
27   AliFMDFloatMap(const AliFMDFloatMap& o);
28   virtual ~AliFMDFloatMap() { delete [] fData; }
29   AliFMDFloatMap& operator=(const AliFMDFloatMap& o);
30   virtual void Reset(const Float_t& v=Float_t());
31   virtual Float_t& operator()(UShort_t det,
32                               Char_t   ring,
33                               UShort_t sec,
34                               UShort_t str);
35   virtual const Float_t& operator()(UShort_t det,
36                                     Char_t   ring,
37                                     UShort_t sec,
38                                     UShort_t str) const;
39   Float_t* Data() const { return fData; }
40 protected:
41   Int_t   fTotal;  // Total number of entries
42   Float_t* fData;   //[fTotal]
43   ClassDef(AliFMDFloatMap,2) // Map of floats
44 };
45
46 #endif
47 //____________________________________________________________________
48 //
49 // Local Variables:
50 //   mode: C++
51 // End:
52 //
53