Last change
on this file since 676 was 665, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifndef MHISTOSADC_H
|
---|
2 | #define MHISTOSADC_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TH1
|
---|
9 | #include <TH1.h>
|
---|
10 | #endif
|
---|
11 | #ifndef ROOT_TObjArray
|
---|
12 | #include <TObjArray.h>
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #ifndef MPARCONTAINER_H
|
---|
16 | #include "MParContainer.h"
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | class MHistosAdc : public MParContainer
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TObjArray *fHistHi; // List of High gain Histograms
|
---|
23 | TObjArray *fHistLo; // List of Low gain Histograms
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MHistosAdc(const char *name=NULL, const char *title=NULL);
|
---|
27 | ~MHistosAdc();
|
---|
28 |
|
---|
29 | void FillAdcHistHi (Int_t iPix, Byte_t data);
|
---|
30 | void FillAdcHistLo (Int_t iPix, Byte_t data);
|
---|
31 |
|
---|
32 | void SaveHist(char *name);
|
---|
33 |
|
---|
34 | void Print(Option_t *t = NULL);
|
---|
35 |
|
---|
36 | TH1F *GetHistHi(Int_t i) { return (TH1F*)(fHistHi->At(i)); }
|
---|
37 | TH1F *GetHistLo(Int_t i) { return (TH1F*)(fHistLo->At(i)); }
|
---|
38 |
|
---|
39 | void DrawHi(Int_t i) { GetHistHi(i)->Draw(); }
|
---|
40 | void DrawLo(Int_t i) { GetHistHi(i)->Draw(); }
|
---|
41 |
|
---|
42 | /*
|
---|
43 | TObjArray* GetHiList()
|
---|
44 | {
|
---|
45 | return fHistHi ;
|
---|
46 | }
|
---|
47 |
|
---|
48 | TObjArray* GetLoList()
|
---|
49 | {
|
---|
50 | return fHistLo ;
|
---|
51 | }
|
---|
52 | */
|
---|
53 | Int_t GetHiEntries()
|
---|
54 | {
|
---|
55 | return fHistHi->GetEntries() ;
|
---|
56 | }
|
---|
57 |
|
---|
58 | Int_t GetLoEntries()
|
---|
59 | {
|
---|
60 | return fHistLo->GetEntries() ;
|
---|
61 | }
|
---|
62 |
|
---|
63 |
|
---|
64 | ClassDef(MHistosAdc, 1) // list of Histograms with ADC spectra
|
---|
65 | };
|
---|
66 |
|
---|
67 | #endif
|
---|
68 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.