source: trunk/MagicSoft/Mars/manalysis/MBlindPixels.h@ 3094

Last change on this file since 3094 was 2377, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 835 bytes
Line 
1#ifndef MARS_MBlindPixels
2#define MARS_MBlindPixels
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayC
9#include <TArrayC.h>
10#endif
11
12class MBlindPixels : public MParContainer
13{
14private:
15 TArrayC fPixels; // Boolean value for every pixel 0=on, 1=blind
16
17public:
18 MBlindPixels(const char *name=NULL, const char *title=NULL);
19
20 void SetPixelBlind(UShort_t id, Bool_t val=kTRUE);
21 void AdoptPixels(Char_t pixels[577]) { fPixels.Adopt(577, pixels); }
22
23 void AdoptPixels(const TArrayC &pixels) { fPixels = pixels; }
24
25 void Clear(Option_t *o="") { fPixels.Reset(); }
26
27 Bool_t IsBlind(UShort_t id) const { return fPixels.GetSize() && ((TArrayC)fPixels)[id]; }
28
29 void InitSize(UShort_t i) { fPixels.Set(i); }
30
31 ClassDef(MBlindPixels, 1) // container to store blind pixels
32};
33
34#endif
35
Note: See TracBrowser for help on using the repository browser.