AliFMDBoolMap.h

Go to the documentation of this file.
00001 #ifndef ALIFMDBOOLMAP_H
00002 #define ALIFMDBOOLMAP_H
00003 /* Copyright (c) 2004, ALICE Experiment @ CERN.
00004  * All rights reserved
00005  * See AliFMDBoolMap.cxx for full copyright notice
00006  * 
00007  * Created Mon Nov  8 12:51:51 2004 by Christian Holm Christensen
00008  */
00009 /* $Id: AliFMDBoolMap.h,v 1.6 2006/03/24 01:47:24 cholm Exp $ */
00010 //__________________________________________________________
00011 // 
00012 // Map of Bool_t for each FMD strip
00013 // Used in calibration and the like classes.
00014 // Used amoung other things for dead-channel map
00015 // 
00016 #ifndef ALIFMDMAP_H
00017 # include <AliFMDMap.h>
00018 #endif
00019 
00024 class AliFMDBoolMap : public AliFMDMap
00025 {
00026 public:
00029   AliFMDBoolMap(const AliFMDBoolMap& other);
00035   AliFMDBoolMap(size_t maxDet  = kMaxDetectors,
00036                 size_t maxRing = kMaxRings,
00037                 size_t maxSec  = kMaxSectors,
00038                 size_t maxStr  = kMaxStrips);
00040   virtual ~AliFMDBoolMap() { delete [] fData; }
00044   AliFMDBoolMap& operator=(const AliFMDBoolMap& other);
00047   virtual void Reset(const Bool_t& v=Bool_t());
00054   virtual Bool_t& operator()(UShort_t det,
00055                              Char_t   ring,
00056                              UShort_t sec,
00057                              UShort_t str);
00064   virtual const Bool_t& operator()(UShort_t det,
00065                                    Char_t   ring,
00066                                    UShort_t sec,
00067                                    UShort_t str) const;
00068 protected:
00069   size_t  fTotal; // Total number of entries 
00070   Bool_t* fData;  // [fTotal] The Data
00071   ClassDef(AliFMDBoolMap,2) // Map of Bool_t data per strip
00072 };
00073 
00074 #endif
00075 //__________________________________________________________
00076 // 
00077 // Local Variables:
00078 //   mode: C++
00079 // End:
00080 //

Generated on Fri Mar 24 17:11:21 2006 for ALICE FMD Off-line by  doxygen 1.4.6