source: trunk/MagicSoft/Mars/mdatacheck/MHFadcCam.h@ 703

Last change on this file since 703 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.1 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 void DrawHi(UInt_t i) { GetHistHi(i)->Draw(); }
41 void DrawLo(UInt_t i) { GetHistLo(i)->Draw(); }
42
43 void Draw(UInt_t i) { (*this)[i]->Draw(); }
44
45 Int_t GetEntries()
46 {
47 return fArray->GetEntries() ;
48 }
49
50 ClassDef(MHFadcCam, 1) // list of Histograms with ADC spectra
51};
52
53#endif
54
Note: See TracBrowser for help on using the repository browser.