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
13 // Map of an integer per strip
14 // This class stores one short unsigned integer (16 bits) per strip in
17 # include "AliFMDMap.h"
19 //____________________________________________________________________
20 /** @class AliFMDUShortMap
21 @brief Map of an integer per strip
24 class AliFMDUShortMap : public AliFMDMap
28 @param other Object to copy from. */
29 AliFMDUShortMap(const AliFMDUShortMap& other);
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);
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);
46 @param val Value to reset from */
47 virtual void Reset(const UShort_t& val=UShort_t());
49 @param detector Detector
53 @return reference value stored for the strip */
54 virtual UShort_t& operator()(UShort_t detector,
59 @param detector Detector
63 @return value stored for the strip */
64 virtual const UShort_t& operator()(UShort_t detector,
67 UShort_t strip) const;
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
75 //____________________________________________________________________