1 #ifndef ALIFMDBOOLMAP_H
2 #define ALIFMDBOOLMAP_H
3 /* Copyright (c) 2004, ALICE Experiment @ CERN.
5 * See AliFMDBoolMap.cxx for full copyright notice
7 * Created Mon Nov 8 12:51:51 2004 by Christian Holm Christensen
10 //__________________________________________________________
12 // Map of Bool_t for each FMD strip
13 // Used in calibration and the like classes.
14 // Used amoung other things for dead-channel map
17 # include <AliFMDMap.h>
20 /** @class AliFMDBoolMap
21 @brief MAp of per strip boolean values.
24 class AliFMDBoolMap : public AliFMDMap
28 @param other Object to copy from. */
29 AliFMDBoolMap(const AliFMDBoolMap& 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 AliFMDBoolMap(size_t maxDet = kMaxDetectors,
36 size_t maxRing = kMaxRings,
37 size_t maxSec = kMaxSectors,
38 size_t maxStr = kMaxStrips);
40 virtual ~AliFMDBoolMap() { delete [] fData; }
41 /** Assignment operator
42 @param other Object to assign from
43 @return reference to this object. */
44 AliFMDBoolMap& operator=(const AliFMDBoolMap& other);
46 @param v Value to reset from */
47 virtual void Reset(const Bool_t& v=Bool_t());
53 @return reference value stored for the strip */
54 virtual Bool_t& operator()(UShort_t det,
63 @return value stored for the strip */
64 virtual const Bool_t& operator()(UShort_t det,
69 size_t fTotal; // Total number of entries
70 Bool_t* fData; // [fTotal] The Data
71 ClassDef(AliFMDBoolMap,2) // Map of Bool_t data per strip
75 //__________________________________________________________