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

Last change on this file since 2304 was 1967, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 717 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 Clear(Option_t *o="") { fPixels.Reset(); }
24
25 Bool_t IsBlind(UShort_t id) const { return fPixels.GetSize() && ((TArrayC)fPixels)[id]; }
26
27 ClassDef(MBlindPixels, 1) // container to store blind pixels
28};
29
30#endif
31
Note: See TracBrowser for help on using the repository browser.