]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDBoolMap.h
New RAW I/O. I rolled my own, because I wasn't happy with the old
[u/mrichter/AliRoot.git] / FMD / AliFMDBoolMap.h
1 #ifndef ALIFMDBOOLMAP_H
2 #define ALIFMDBOOLMAP_H
3 /* Copyright (c) 2004, ALICE Experiment @ CERN.
4  * All rights reserved
5  * See AliFMDBoolMap.cxx for full copyright notice
6  * 
7  * Created Mon Nov  8 12:51:51 2004 by Christian Holm Christensen
8  */
9 /* $Id$ */
10 //__________________________________________________________
11 // 
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
15 // 
16 #ifndef ALIFMDMAP_H
17 # include <AliFMDMap.h>
18 #endif
19
20 class AliFMDBoolMap : public AliFMDMap
21 {
22 public:
23   AliFMDBoolMap(const AliFMDBoolMap& other);
24   AliFMDBoolMap(size_t maxDet  = kMaxDetectors,
25                 size_t maxRing = kMaxRings,
26                 size_t maxSec  = kMaxSectors,
27                 size_t maxStr  = kMaxStrips);
28   virtual ~AliFMDBoolMap() { delete [] fData; }
29   AliFMDBoolMap& operator=(const AliFMDBoolMap& other);
30   virtual void Reset(const Bool_t& v=Bool_t());
31   virtual Bool_t& operator()(UShort_t det,
32                              Char_t   ring,
33                              UShort_t sec,
34                              UShort_t str);
35   virtual const Bool_t& operator()(UShort_t det,
36                                    Char_t   ring,
37                                    UShort_t sec,
38                                    UShort_t str) const;
39 protected:
40   size_t  fTotal; // Total number of entries 
41   Bool_t* fData;  // [fTotal] The Data
42   ClassDef(AliFMDBoolMap,2) // Map of Bool_t data per strip
43 };
44
45 #endif
46 //__________________________________________________________
47 // 
48 // Local Variables:
49 //   mode: C++
50 // End:
51 //