]>
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 | */ | |
e802be3e | 13 | #ifndef ALIFMDMAP_H |
97961cbd | 14 | # include "AliFMDMap.h" |
e802be3e | 15 | #endif |
16 | //____________________________________________________________________ | |
9f662337 | 17 | /** @class AliFMDUShortMap |
18 | @brief Map of an integer per strip | |
19 | @ingroup FMD_base | |
20 | */ | |
e802be3e | 21 | class AliFMDUShortMap : public AliFMDMap |
22 | { | |
23 | public: | |
9f662337 | 24 | /** Copy constructor |
25 | @param other Object to copy from. */ | |
e802be3e | 26 | AliFMDUShortMap(const AliFMDUShortMap& other); |
9f662337 | 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) */ | |
e802be3e | 32 | AliFMDUShortMap(size_t maxDet = kMaxDetectors, |
33 | size_t maxRing= kMaxRings, | |
34 | size_t maxSec = kMaxSectors, | |
35 | size_t maxStr = kMaxStrips); | |
9f662337 | 36 | /** Destructor */ |
e802be3e | 37 | virtual ~AliFMDUShortMap() { delete [] fData; } |
9f662337 | 38 | /** Assignment operator |
39 | @param other Object to assign from | |
40 | @return reference to this object. */ | |
e802be3e | 41 | AliFMDUShortMap& operator=(const AliFMDUShortMap& other); |
9f662337 | 42 | /** Reset to value |
f8616692 | 43 | @param val Value to reset from */ |
6e9e7c0a | 44 | virtual void Reset(const UShort_t& val=UShort_t()); |
9f662337 | 45 | /** Access operator |
f8616692 | 46 | @param detector Detector |
47 | @param ring Ring | |
48 | @param sector Sector | |
49 | @param strip Strip | |
9f662337 | 50 | @return reference value stored for the strip */ |
e802be3e | 51 | virtual UShort_t& operator()(UShort_t detector, |
52 | Char_t ring, | |
53 | UShort_t sector, | |
54 | UShort_t strip); | |
9f662337 | 55 | /** Access operator |
f8616692 | 56 | @param detector Detector |
57 | @param ring Ring | |
58 | @param sector Sector | |
59 | @param strip Strip | |
9f662337 | 60 | @return value stored for the strip */ |
e802be3e | 61 | virtual const UShort_t& operator()(UShort_t detector, |
62 | Char_t ring, | |
63 | UShort_t sector, | |
64 | UShort_t strip) const; | |
65 | protected: | |
bfdc7f5d | 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 | |
e802be3e | 69 | }; |
70 | ||
71 | #endif | |
72 | //____________________________________________________________________ | |
73 | // | |
74 | // Local Variables: | |
75 | // mode: C++ | |
76 | // End: | |
77 | // | |
78 | // EOF | |
79 | // | |
80 | ||
81 |