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

Last change on this file since 2568 was 2278, 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
8#ifndef COSY_PixClient
9#include "PixClient.h" // byte
10#endif
11
12class TFile;
13class TH1F;
14class TH2F;
15class TGraph;
16
17class Timer;
18class ZdAz;
19
20class MCaos
21{
22private:
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
43public:
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.