]>
Commit | Line | Data |
---|---|---|
8f6ee336 | 1 | #ifndef ALIFMDUSHORTMAP_H |
2 | #define ALIFMDUSHORTMAP_H | |
e802be3e | 3 | /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights |
4 | * reserved. | |
5 | * | |
6 | * See cxx source for full Copyright notice | |
7 | */ | |
c2fc1258 | 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 | */ | |
02a27b50 | 13 | // Map of an integer per strip |
14 | // This class stores one short unsigned integer (16 bits) per strip in | |
15 | // the FMD detectors. | |
e802be3e | 16 | #ifndef ALIFMDMAP_H |
97961cbd | 17 | # include "AliFMDMap.h" |
e802be3e | 18 | #endif |
19 | //____________________________________________________________________ | |
9f662337 | 20 | /** @class AliFMDUShortMap |
21 | @brief Map of an integer per strip | |
22 | @ingroup FMD_base | |
23 | */ | |
e802be3e | 24 | class AliFMDUShortMap : public AliFMDMap |
25 | { | |
26 | public: | |
9f662337 | 27 | /** Copy constructor |
28 | @param other Object to copy from. */ | |
e802be3e | 29 | AliFMDUShortMap(const AliFMDUShortMap& other); |
9f662337 | 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) */ | |
6e79feeb | 35 | AliFMDUShortMap(UShort_t maxDet = kMaxDetectors, |
36 | UShort_t maxRing= kMaxRings, | |
37 | UShort_t maxSec = kMaxSectors, | |
38 | UShort_t maxStr = kMaxStrips); | |
9f662337 | 39 | /** Destructor */ |
e802be3e | 40 | virtual ~AliFMDUShortMap() { delete [] fData; } |
9f662337 | 41 | /** Assignment operator |
42 | @param other Object to assign from | |
43 | @return reference to this object. */ | |
e802be3e | 44 | AliFMDUShortMap& operator=(const AliFMDUShortMap& other); |
9f662337 | 45 | /** Reset to value |
f8616692 | 46 | @param val Value to reset from */ |
6e9e7c0a | 47 | virtual void Reset(const UShort_t& val=UShort_t()); |
9f662337 | 48 | /** Access operator |
f8616692 | 49 | @param detector Detector |
50 | @param ring Ring | |
51 | @param sector Sector | |
52 | @param strip Strip | |
9f662337 | 53 | @return reference value stored for the strip */ |
e802be3e | 54 | virtual UShort_t& operator()(UShort_t detector, |
55 | Char_t ring, | |
56 | UShort_t sector, | |
57 | UShort_t strip); | |
9f662337 | 58 | /** Access operator |
f8616692 | 59 | @param detector Detector |
60 | @param ring Ring | |
61 | @param sector Sector | |
62 | @param strip Strip | |
9f662337 | 63 | @return value stored for the strip */ |
e802be3e | 64 | virtual const UShort_t& operator()(UShort_t detector, |
65 | Char_t ring, | |
66 | UShort_t sector, | |
67 | UShort_t strip) const; | |
68 | protected: | |
0ed9abeb | 69 | Int_t fTotal; // Total number of entries |
bfdc7f5d | 70 | UShort_t* fData; // [fTotal] The data |
0ed9abeb | 71 | ClassDef(AliFMDUShortMap, 3) // Cache of edep,hit information per strip |
e802be3e | 72 | }; |
73 | ||
74 | #endif | |
75 | //____________________________________________________________________ | |
76 | // | |
77 | // Local Variables: | |
78 | // mode: C++ | |
79 | // End: | |
80 | // | |
81 | // EOF | |
82 | // | |
83 | ||
84 |