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

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