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

Last change on this file since 4096 was 4076, 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
46public:
47 MCaos() : fFile(NULL), fHistpr(NULL)
48 {
49 fLeds = new Leds;
50 }
51 ~MCaos()
52 {
53 CloseFile();
54 DeleteHistograms();
55 delete fLeds;
56 }
57
58 void AddPosition(Float_t x, Float_t y, Float_t dx, Float_t dy)
59 {
60 fPositions.Add(x, y, dx, dy);
61 }
62
63 void ReadResources(const char *name="leds.txt");
64
65 void OpenFile();
66 void CloseFile();
67
68 void InitHistograms();
69 void DeleteHistograms();
70 void ShowHistograms();
71 void ResetHistograms();
72
73 Ring Run(byte *img, bool printl, bool printr, const ZdAz &pos, const MTime &t);
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.