1 #ifndef ALIFMDUSHORTMAP_H
2 #define ALIFMDUSHORTMAP_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
9 # include "AliFMDMap.h"
11 //____________________________________________________________________
12 /** @class AliFMDUShortMap
13 @brief Map of an integer per strip
16 class AliFMDUShortMap : public AliFMDMap
20 @param other Object to copy from. */
21 AliFMDUShortMap(const AliFMDUShortMap& other);
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);
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);
38 @param val Value to reset from */
39 virtual void Reset(const UShort_t& val=UShort_t());
41 @param detector Detector
45 @return reference value stored for the strip */
46 virtual UShort_t& operator()(UShort_t detector,
51 @param detector Detector
55 @return value stored for the strip */
56 virtual const UShort_t& operator()(UShort_t detector,
59 UShort_t strip) const;
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
67 //____________________________________________________________________