Line | |
---|
1 | #ifndef CAOS_MCaos
|
---|
2 | #define CAOS_MCaos
|
---|
3 |
|
---|
4 | #ifndef CAOS_Leds
|
---|
5 | #include "Leds.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef COSY_PixClient
|
---|
9 | #include "PixClient.h" // byte
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class TFile;
|
---|
13 | class TH1F;
|
---|
14 | class TH2F;
|
---|
15 | class TGraph;
|
---|
16 |
|
---|
17 | class Timer;
|
---|
18 | class ZdAz;
|
---|
19 |
|
---|
20 | class MCaos
|
---|
21 | {
|
---|
22 | private:
|
---|
23 | TFile *fFile; // File we may write data to
|
---|
24 |
|
---|
25 | Leds fPositions;
|
---|
26 |
|
---|
27 | Leds *fLeds;
|
---|
28 | Double_t fEvtTime;
|
---|
29 | Double_t fZenithDist;
|
---|
30 | Double_t fAzimuth;
|
---|
31 |
|
---|
32 | TH1F *fHistpr;
|
---|
33 | TH2F **fHistled;
|
---|
34 | TH1F *fHistallw;
|
---|
35 | TH1F **fHistw;
|
---|
36 |
|
---|
37 | TH2F *fHistprxpry;
|
---|
38 |
|
---|
39 | TGraph *fGraphprx;
|
---|
40 | TGraph *fGraphpry;
|
---|
41 | TGraph **fGraphw;
|
---|
42 |
|
---|
43 | public:
|
---|
44 | MCaos() : fFile(NULL), fHistpr(NULL)
|
---|
45 | {
|
---|
46 | fLeds = new Leds;
|
---|
47 | }
|
---|
48 | ~MCaos()
|
---|
49 | {
|
---|
50 | CloseFile();
|
---|
51 | DeleteHistograms();
|
---|
52 | delete fLeds;
|
---|
53 | }
|
---|
54 |
|
---|
55 | void AddPosition(Float_t x, Float_t y, Float_t dx, Float_t dy)
|
---|
56 | {
|
---|
57 | fPositions.Add(x, y, dx, dy);
|
---|
58 | }
|
---|
59 |
|
---|
60 | void ReadResources(const char *name="leds.txt");
|
---|
61 |
|
---|
62 | void OpenFile();
|
---|
63 | void CloseFile();
|
---|
64 |
|
---|
65 | void InitHistograms();
|
---|
66 | void DeleteHistograms();
|
---|
67 | void ShowHistograms();
|
---|
68 | void ResetHistograms();
|
---|
69 |
|
---|
70 | void Run(byte *img, bool printl, bool printr, const ZdAz &pos, const Timer &t);
|
---|
71 | };
|
---|
72 |
|
---|
73 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.