source: trunk/MagicSoft/Cosy/main/MCaos.h@ 4256

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