-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcobolddata.h
More file actions
61 lines (46 loc) · 1.67 KB
/
cobolddata.h
File metadata and controls
61 lines (46 loc) · 1.67 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef COBOLDDATA_H
#define COBOLDDATA_H
#define NUM_CHANNELS 32
#define NUM_IONS 16
#include "Read_lmf/LMF_IO.h"
class LMF_IO;
class Cobolddata
{
public:
Cobolddata(const char *LMF_Filename, int regime);
~Cobolddata();
int read_lmf_size(const char*);
int read_lmf(const char*, int);
void zeros(double*, int);
//int iTDC[NUM_CHANNELS][NUM_IONS];
//double dTDC[NUM_CHANNELS][NUM_IONS];
unsigned int number_of_hits[NUM_CHANNELS];
double* data_array; // structure: number of events -> number of channels -> number of hits
int array_size;
double* array_x;
double* array_y;
int* hits_histo[NUM_IONS]; // distribution of hits
double points_var[10];
int stat_counts;
double* array_tofx; // not in use
double* array_tofy; // not in use
double* array_corx; // not in use
double* array_cory; // not in use
//double* ch1; // channel 1
//double* ch2; // channel 2
//double* ch3; // channel 3
//double* ch4; // channel 4
int events_number;
int error_code;
double correction; // coefficient to correct ellipticity where y = y*correction
////////////////// Flags to choose data set and discard data points ////////////////
int datatype;
bool double_zero;
bool ToFselect;
bool ToFbandwidth; // if it is 1 you must set maxToF and minToF !!!!!!
double maxToF;
double minToF;
bool any_zero;
bool resorting;
};
#endif // COBOLDDATA_H