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 /** @file AliFMDBoolMap.h
11 @author Christian Holm Christensen <cholm@nbi.dk>
12 @date Sun Mar 26 18:28:59 2006
13 @brief Per strip boolean map
15 //__________________________________________________________
17 // Map of Bool_t for each FMD strip
18 // Used in calibration and the like classes.
19 // Used amoung other things for dead-channel map
22 # include <AliFMDMap.h>
25 /** @class AliFMDBoolMap
26 @brief MAp of per strip boolean values.
29 class AliFMDBoolMap : public AliFMDMap
33 @param other Object to copy from. */
34 AliFMDBoolMap(const AliFMDBoolMap& other);
36 @param maxDet Number of detectors (3)
37 @param maxRing Number of rings (2)
38 @param maxSec Number of sectors (40)
39 @param maxStr Number of strips (20) */
40 AliFMDBoolMap(UShort_t maxDet = kMaxDetectors,
41 UShort_t maxRing = kMaxRings,
42 UShort_t maxSec = kMaxSectors,
43 UShort_t maxStr = kMaxStrips);
45 virtual ~AliFMDBoolMap() { delete [] fData; }
46 /** Assignment operator
47 @param other Object to assign from
48 @return reference to this object. */
49 AliFMDBoolMap& operator=(const AliFMDBoolMap& other);
51 @param v Value to reset from */
52 virtual void Reset(const Bool_t& v=Bool_t());
58 @return reference value stored for the strip */
59 virtual Bool_t& operator()(UShort_t det,
68 @return value stored for the strip */
69 virtual const Bool_t& operator()(UShort_t det,
74 Int_t fTotal; // Total number of entries
75 Bool_t* fData; // [fTotal] The Data
76 ClassDef(AliFMDBoolMap,3) // Map of Bool_t data per strip
80 //__________________________________________________________