Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hddm_t.h
Go to the documentation of this file.
1 /*
2  * hddm_t.h - DO NOT EDIT THIS FILE
3  *
4  * This file was generated automatically from the file ex1.xml by hddm-c.
5  * This header file defines the c structures that hold the data described
6  * in the data model (from ex1.xml). Any program that needs access to the
7  * data described in the model can include this header file, and make use
8  * of the input/output services provided inhddm_t.c
9  *
10  * The hddm data model tool set was written by
11  * Richard Jones, University of Connecticut.
12  *
13  * For more information see the following web site
14  *
15  * http://zeus.phys.uconn.edu/halld/datamodel/doc
16  *
17  */
18 
19 #include <stdlib.h>
20 #include <stdio.h>
21 #include <string.h>
22 #include <particleType.h>
23 
24 #ifndef SAW_t_Hit_t
25 #define SAW_t_Hit_t
26 
27 typedef struct {
28  float t;
29  float dE;
30 } t_Hit_t;
31 
32 typedef struct {
33  int mult;
34  t_Hit_t in[1];
35 } t_Hits_t;
36 #endif /* t_Hit_t */
37 
38 #ifndef SAW_t_Side_t
39 #define SAW_t_Side_t
40 
41 typedef struct {
42  int end;
44 } t_Side_t;
45 
46 typedef struct {
47  int mult;
48  t_Side_t in[1];
49 } t_Sides_t;
50 #endif /* t_Side_t */
51 
52 #ifndef SAW_t_Slab_t
53 #define SAW_t_Slab_t
54 
55 typedef struct {
56  float y;
58 } t_Slab_t;
59 
60 typedef struct {
61  int mult;
62  t_Slab_t in[1];
63 } t_Slabs_t;
64 #endif /* t_Slab_t */
65 
66 #ifndef SAW_t_ForwardTOF_t
67 #define SAW_t_ForwardTOF_t
68 
69 typedef struct {
72 #endif /* t_ForwardTOF_t */
73 
74 #ifndef SAW_t_HDDM_t
75 #define SAW_t_HDDM_t
76 
77 typedef struct {
79 } t_HDDM_t;
80 #endif /* t_HDDM_t */
81 
82 t_Hits_t* make_t_Hits(int n);
83 
84 t_Sides_t* make_t_Sides(int n);
85 
86 t_Slabs_t* make_t_Slabs(int n);
87 
89 
91 
92 #ifndef t_DocumentString
93 #define t_DocumentString
94 
95 extern char HDDM_t_DocumentString[];
96 
97 #endif /* t_DocumentString */
98 
99 #ifndef HDDM_STREAM_INPUT
100 #define HDDM_STREAM_INPUT -91
101 #define HDDM_STREAM_OUTPUT -92
102 
103 typedef struct {
104  FILE* fd;
105  int iomode;
106  char* hddm;
107  char* filename;
108  int sections;
109  void* (*unpacker[10000])();
110  int modelLevel[10000];
111  int ptrOffset[10000];
112 } t_iostream;
113 
114 #endif /* HDDM_STREAM_INPUT */
115 
117 
118 int flush_t_HDDM(t_HDDM_t* p,t_iostream* fp);
119 
121 
123 
124 void close_t_HDDM(t_iostream* fp);
t_Sides_t * make_t_Sides(int n)
Definition: hddm_t.c:29
int end
Definition: hddm_t.h:42
t_Slabs_t * slabs
Definition: hddm_t.h:70
t_iostream * open_t_HDDM(char *filename)
Definition: hddm_t.c:434
char * hddm
Definition: hddm_t.h:106
t_Hits_t * hits
Definition: hddm_t.h:43
Definition: hddm_t.h:27
char * filename
Definition: hddm_t.h:107
float dE
Definition: hddm_t.h:29
TString filename
t_Sides_t * sides
Definition: hddm_t.h:57
t_iostream * init_t_HDDM(char *filename)
Definition: hddm_t.c:476
t_Slabs_t * make_t_Slabs(int n)
Definition: hddm_t.c:38
int flush_t_HDDM(t_HDDM_t *p, t_iostream *fp)
Definition: hddm_t.c:309
t_ForwardTOF_t * forwardTOF
Definition: hddm_t.h:78
FILE * fd
Definition: hddm_t.h:104
void close_t_HDDM(t_iostream *fp)
Definition: hddm_t.c:502
float y
Definition: hddm_t.h:56
float t
Definition: hddm_t.h:28
t_HDDM_t * read_t_HDDM(t_iostream *fp)
Definition: hddm_t.c:170
t_ForwardTOF_t * make_t_ForwardTOF()
Definition: hddm_t.c:47
int sections
Definition: hddm_t.h:108
int mult
Definition: hddm_t.h:47
int mult
Definition: hddm_t.h:61
int mult
Definition: hddm_t.h:33
int iomode
Definition: hddm_t.h:105
t_Hits_t * make_t_Hits(int n)
Definition: hddm_t.c:20
char HDDM_t_DocumentString[]
Definition: hddm_t.c:63
t_HDDM_t * make_t_HDDM()
Definition: hddm_t.c:55