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