]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDUShortMap.h
More docs
[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 /** @class AliFMDUShortMap 
13     @brief Map of an integer per strip
14     @ingroup FMD_base
15  */
16 class AliFMDUShortMap : public AliFMDMap
17 {
18 public:
19   /** Copy constructor 
20       @param other Object to copy from.  */
21   AliFMDUShortMap(const AliFMDUShortMap& other);
22   /** Constructor 
23       @param maxDet  Number of detectors (3)
24       @param maxRing Number of rings (2)
25       @param maxSec  Number of sectors (40)
26       @param maxStr  Number of strips (20) */
27   AliFMDUShortMap(size_t maxDet = kMaxDetectors, 
28                   size_t maxRing= kMaxRings, 
29                   size_t maxSec = kMaxSectors, 
30                   size_t maxStr = kMaxStrips);
31   /** Destructor */
32   virtual ~AliFMDUShortMap() { delete [] fData; }
33   /** Assignment operator 
34       @param other Object to assign from 
35       @return reference to this object.  */
36   AliFMDUShortMap& operator=(const AliFMDUShortMap& other);
37   /** Reset to value 
38       @param val Value to reset from */
39   virtual void Reset(const UShort_t& val=UShort_t());
40   /** Access operator 
41       @param detector Detector 
42       @param ring     Ring 
43       @param sector   Sector  
44       @param strip    Strip
45       @return  reference value stored for the strip */
46   virtual UShort_t& operator()(UShort_t detector, 
47                                Char_t   ring, 
48                                UShort_t sector, 
49                                UShort_t strip);
50   /** Access operator 
51       @param detector Detector 
52       @param ring     Ring 
53       @param sector   Sector  
54       @param strip    Strip
55       @return  value stored for the strip */
56   virtual const UShort_t& operator()(UShort_t detector, 
57                                      Char_t   ring, 
58                                      UShort_t sector, 
59                                      UShort_t strip) const;
60  protected:
61   size_t    fTotal; // Total number of entries 
62   UShort_t* fData;  // [fTotal] The data 
63   ClassDef(AliFMDUShortMap, 2) // Cache of edep,hit information per strip
64 };
65
66 #endif 
67 //____________________________________________________________________
68 //
69 // Local Variables:
70 //   mode: C++
71 // End:
72 //
73 // EOF
74 //
75
76