source: trunk/MagicSoft/Mars/mhist/MHFadcCam.h@ 967

Last change on this file since 967 was 887, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MHFADCCAM_H
2#define MHFADCCAM_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TObjArray
9#include <TObjArray.h>
10#endif
11
12#ifndef MH_H
13#include "MH.h"
14#endif
15#ifndef MHFADCPIX_H
16#include "MHFadcPix.h"
17#endif
18
19class TH1F;
20
21class MHFadcCam : public MH
22{
23private:
24 TObjArray *fArray; // List of Lo/Hi gain Histograms
25
26 void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); }
27 void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); }
28
29public:
30 MHFadcCam(const char *name=NULL, const char *title=NULL);
31 ~MHFadcCam();
32
33 // void SaveHist(char *name);
34
35 MHFadcPix *operator[](UInt_t i) { return (MHFadcPix*)(fArray->At(i)); }
36
37 TH1F *GetHistHi(UInt_t i) { return (*this)[i]->GetHistHi(); }
38 TH1F *GetHistLo(UInt_t i) { return (*this)[i]->GetHistLo(); }
39
40 void Fill(const MParContainer *par);
41
42 //
43 // FIXME! This should be replaced by a Draw(Option_t)-function
44 //
45 void DrawHi(UInt_t i) { GetHistHi(i)->Draw(); }
46 void DrawLo(UInt_t i) { GetHistLo(i)->Draw(); }
47
48 void DrawPix(UInt_t i) { (*this)[i]->Draw(); }
49
50 Int_t GetEntries() { return fArray->GetEntries(); }
51
52 ClassDef(MHFadcCam, 1) // A list of histograms storing the Fadc spektrum of one pixel
53};
54
55#endif
56
Note: See TracBrowser for help on using the repository browser.