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

Last change on this file since 867 was 713, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.2 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 MPARCONTAINER_H
13#include "MParContainer.h"
14#endif
15#ifndef MHFADCPIX_H
16#include "MHFadcPix.h"
17#endif
18
19class TH1F;
20
21class MHFadcCam : public MParContainer
22{
23private:
24 TObjArray *fArray; // List of Lo/Hi gain Histograms
25
26public:
27 MHFadcCam(const char *name=NULL, const char *title=NULL);
28 ~MHFadcCam();
29
30 void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); }
31 void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); }
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 //
41 // FIXME! This should be replaced by a Draw(Option_t)-function
42 //
43 void DrawHi(UInt_t i) { GetHistHi(i)->Draw(); }
44 void DrawLo(UInt_t i) { GetHistLo(i)->Draw(); }
45
46 void DrawPix(UInt_t i) { (*this)[i]->Draw(); }
47
48 Int_t GetEntries() { return fArray->GetEntries(); }
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.