source: trunk/MagicSoft/Mars/mdatacheck/MHFadcPix.h@ 706

Last change on this file since 706 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1015 bytes
Line 
1#ifndef MHFADCPIX_H
2#define MHFADCPIX_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TH1
9#include <TH1.h>
10#endif
11
12class MHFadcPix : public TObject
13{
14private:
15 TH1F *fHistHi;
16 TH1F *fHistLo;
17
18public:
19 MHFadcPix(UInt_t pixid)
20 {
21 Char_t tmp1[40];
22 Char_t tmp2[40];
23
24 sprintf(tmp1, "high%d", pixid);
25 sprintf(tmp2, "high gain Pixel %d", pixid);
26
27 fHistHi = new TH1F(tmp1, tmp2, 256, 0, 255);
28
29 sprintf(tmp1, "low %d", pixid);
30 sprintf(tmp2, "low gain Pixel %d", pixid);
31
32 fHistLo = new TH1F(tmp1, tmp2, 256, 0, 255);
33 }
34 ~MHFadcPix()
35 {
36 delete fHistHi;
37 delete fHistLo;
38 }
39 TH1F *GetHistHi() { return fHistHi; }
40 TH1F *GetHistLo() { return fHistLo; }
41
42 void FillHi(Byte_t i) { fHistHi->Fill(i); }
43 void FillLo(Byte_t i) { fHistLo->Fill(i); }
44
45 void DrawHi() { fHistHi->Draw(); }
46 void DrawLo() { fHistLo->Draw(); }
47
48 void Draw(Option_t *opt=NULL);
49
50 ClassDef(MHFadcPix, 1)
51};
52
53#endif
54
Note: See TracBrowser for help on using the repository browser.