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
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
14 # include "AliFMDMap.h"
16 //____________________________________________________________________
17 /** @class AliFMDUShortMap
18 @brief Map of an integer per strip
21 class AliFMDUShortMap : public AliFMDMap
25 @param other Object to copy from. */
26 AliFMDUShortMap(const AliFMDUShortMap& other);
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);
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);
43 @param val Value to reset from */
44 virtual void Reset(const UShort_t& val=UShort_t());
46 @param detector Detector
50 @return reference value stored for the strip */
51 virtual UShort_t& operator()(UShort_t detector,
56 @param detector Detector
60 @return value stored for the strip */
61 virtual const UShort_t& operator()(UShort_t detector,
64 UShort_t strip) const;
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
72 //____________________________________________________________________