]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDUShortMap.h
Made persistent
[u/mrichter/AliRoot.git] / FMD / AliFMDUShortMap.h
1 #ifndef ALIFMDUSHORTMAP_H
2 #define ALIFMDUSHORTMAP_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 // Cache of Energy deposited, hit information perr strip
14 //
15
16 //____________________________________________________________________
17 class AliFMDUShortMap : public AliFMDMap
18 {
19 public:
20   AliFMDUShortMap(const AliFMDUShortMap& other);
21   AliFMDUShortMap(size_t maxDet = kMaxDetectors, 
22                   size_t maxRing= kMaxRings, 
23                   size_t maxSec = kMaxSectors, 
24                   size_t maxStr = kMaxStrips);
25   virtual ~AliFMDUShortMap() { delete [] fData; }
26   AliFMDUShortMap& operator=(const AliFMDUShortMap& other);
27   virtual void Reset(const UShort_t& val=UShort_t());
28   virtual UShort_t& operator()(UShort_t detector, 
29                                Char_t   ring, 
30                                UShort_t sector, 
31                                UShort_t strip);
32   virtual const UShort_t& operator()(UShort_t detector, 
33                                      Char_t   ring, 
34                                      UShort_t sector, 
35                                      UShort_t strip) const;
36  protected:
37   size_t    fTotal; // Total number of entries 
38   UShort_t* fData;  // [fTotal] The data 
39   ClassDef(AliFMDUShortMap, 2) // Cache of edep,hit information per strip
40 };
41
42 #endif 
43 //____________________________________________________________________
44 //
45 // Local Variables:
46 //   mode: C++
47 // End:
48 //
49 // EOF
50 //
51
52