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