Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
326 f9daq 1
#ifndef _H1D_H_
2
#define _H1D_H_
3
 
4
/* 2d histogramming */
5
#define H1D_ID 0x11
6
#pragma pack(4)
7
typedef struct {
8
  unsigned int id,len;
9
  unsigned int nx;
10
  int nentries;
11
  unsigned int size;
12
  double min;
13
  double max;
14
  double minx;
15
  double stepx;
16
 
17
  char name[20];
18
  char title[100];
19
  char titlex[40];
20
  char titley[40];
21
 
22
  double *data;
23
} H1D;
24
#pragma pack()
25
 
26
 
27
 
28
 
29
double H1DGetYBinCenter(int h2d,int ybin);
30
double H1DGetYBinCenter(int h2d,int xbin);
31
 
32
int H1DClear(int h2d);
33
int H1DPrint(int h2d);
34
int H1DExist(int h2d);
35
int H1DGetBin(int h2d, double value);
36
int H1DFill(int h2d,double x, double val);
37
int H1DFillBin(int h2d,int x, double val);
38
int H1DSetBinContent(int h2d,int x, double val);
39
double H1DGetBinContent(int h2d,int atx);
40
int H1DInit(int h2d,char *name, char *title,int nx, double minx, double stepx);
41
int H1DWrite(int h2d,const char *fname,const char*opt);
42
int H1DWrite2File(int h2d,FILE *fp);
43
int H1DSetTitle(int h2d,char *title);
44
int H1DSetTitleX(int h2d,char *title);
45
int H1DSetTitleY(int h2d,char *title);
46
int H1DSetName(int h2d,char *title);
47
 
48
char * H1DGetTitleX(int h1d);
49
 
50
char * H1DGetTitleY(int h1d);
51
 
52
char * H1DGetTitle(int h1d);
53
 
54
 
55
 
56
int H1DGetNbinsX(int h);
57
 
58
double H1DGetMinX(int h);
59
 
60
double H1DGetStepX(int h);
61
double H1DGetMin(int h);
62
double H1DGetMax(int h);
63
double * H1DGetData(int h);
64
 
65
#endif /* _H1D_H_ */