calibration classes and DB
[u/mrichter/AliRoot.git] / FMD / AliFMDUShortMap.h
CommitLineData
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 */
8#ifndef ALIFMDMAP_H
97961cbd 9# include "AliFMDMap.h"
e802be3e 10#endif
11//____________________________________________________________________
9f662337 12/** @class AliFMDUShortMap
13 @brief Map of an integer per strip
14 @ingroup FMD_base
15 */
e802be3e 16class AliFMDUShortMap : public AliFMDMap
17{
18public:
9f662337 19 /** Copy constructor
20 @param other Object to copy from. */
e802be3e 21 AliFMDUShortMap(const AliFMDUShortMap& other);
9f662337 22 /** Constructor
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) */
e802be3e 27 AliFMDUShortMap(size_t maxDet = kMaxDetectors,
28 size_t maxRing= kMaxRings,
29 size_t maxSec = kMaxSectors,
30 size_t maxStr = kMaxStrips);
9f662337 31 /** Destructor */
e802be3e 32 virtual ~AliFMDUShortMap() { delete [] fData; }
9f662337 33 /** Assignment operator
34 @param other Object to assign from
35 @return reference to this object. */
e802be3e 36 AliFMDUShortMap& operator=(const AliFMDUShortMap& other);
9f662337 37 /** Reset to value
38 @param v Value to reset from */
6e9e7c0a 39 virtual void Reset(const UShort_t& val=UShort_t());
9f662337 40 /** Access operator
41 @param det Detector
42 @param ring Ring
43 @param sec Sector
44 @param str Strip
45 @return reference value stored for the strip */
e802be3e 46 virtual UShort_t& operator()(UShort_t detector,
47 Char_t ring,
48 UShort_t sector,
49 UShort_t strip);
9f662337 50 /** Access operator
51 @param det Detector
52 @param ring Ring
53 @param sec Sector
54 @param str Strip
55 @return value stored for the strip */
e802be3e 56 virtual const UShort_t& operator()(UShort_t detector,
57 Char_t ring,
58 UShort_t sector,
59 UShort_t strip) const;
60 protected:
bfdc7f5d 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
e802be3e 64};
65
66#endif
67//____________________________________________________________________
68//
69// Local Variables:
70// mode: C++
71// End:
72//
73// EOF
74//
75
76