-
Notifications
You must be signed in to change notification settings - Fork 3
/
mainLightcurve.h
executable file
·45 lines (40 loc) · 1.06 KB
/
mainLightcurve.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _mainLightcurve_h_ // prevent multiple includes
#define _mainLightcurve_h_
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#if defined(__APPLE_CC__)
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "Application.h"
#define MAX_CHANNEL 1024
#define NUM_DETECTORS 7
class mainLightcurve : public Fl_Gl_Window {
public:
mainLightcurve(int x,int y,int w,int h,const char *l=0);
void draw();
void set_xmax(int newxmax);
void set_ymax(int newymax);
void add_count(int detector_number);
void reset(float binsize);
void flush(int detector_number);
private:
float binsize[MAX_CHANNEL];
unsigned int current_timebin;
long long total_counts;
unsigned int current_timebin_detectors[NUM_DETECTORS];
unsigned int CountcurveFunction[MAX_CHANNEL];
float CountRatecurveFunction[MAX_CHANNEL];
unsigned int CountcurveDetectors[MAX_CHANNEL][NUM_DETECTORS];
float CountRatecurveDetectors[MAX_CHANNEL][NUM_DETECTORS];
int xmax;
int xmin;
int ymin;
int ymax;
};
#endif