Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hddm_t.c File Reference
#include "hddm_t.h"

Go to the source code of this file.

Functions

t_Hits_tmake_t_Hits (int n)
 
t_Sides_tmake_t_Sides (int n)
 
t_Slabs_tmake_t_Slabs (int n)
 
t_ForwardTOF_tmake_t_ForwardTOF ()
 
t_HDDM_tmake_t_HDDM ()
 
static t_Hits_tunpack_t_Hits ()
 
static t_Sides_tunpack_t_Sides ()
 
static t_Slabs_tunpack_t_Slabs ()
 
static t_ForwardTOF_tunpack_t_ForwardTOF ()
 
static t_HDDM_tunpack_t_HDDM ()
 
void * unpack_NULL ()
 
t_HDDM_tread_t_HDDM (t_iostream *fp)
 
static int pack_t_Hits (t_Hits_t *pp, t_iostream *fp)
 
static int pack_t_Sides (t_Sides_t *pp, t_iostream *fp)
 
static int pack_t_Slabs (t_Slabs_t *pp, t_iostream *fp)
 
static int pack_t_ForwardTOF (t_ForwardTOF_t *pp, t_iostream *fp)
 
static int pack_t_HDDM (t_HDDM_t *pp, t_iostream *fp)
 
int flush_t_HDDM (t_HDDM_t *p, t_iostream *fp)
 
static int getTag (char *d, char *tag)
 
static char * getEndTag (char *d, char *tag)
 
static int matches (char *d, char *c, t_iostream *fp)
 
t_iostreamopen_t_HDDM (char *filename)
 
t_iostreaminit_t_HDDM (char *filename)
 
void close_t_HDDM (t_iostream *fp)
 

Variables

char HDDM_t_DocumentString []
 
int * sp
 
int * dp
 

Function Documentation

void close_t_HDDM ( t_iostream fp)

Definition at line 502 of file hddm_t.c.

References t_iostream::fd, t_iostream::filename, and t_iostream::hddm.

int flush_t_HDDM ( t_HDDM_t p,
t_iostream fp 
)

Definition at line 309 of file hddm_t.c.

References dp, t_iostream::fd, HDDM_STREAM_OUTPUT, t_iostream::iomode, pack_t_HDDM(), and sp.

static char* getEndTag ( char *  d,
char *  tag 
)
static

Definition at line 339 of file hddm_t.c.

References sprintf().

Referenced by matches().

static int getTag ( char *  d,
char *  tag 
)
static

Definition at line 328 of file hddm_t.c.

Referenced by matches().

t_iostream* init_t_HDDM ( char *  filename)
t_ForwardTOF_t* make_t_ForwardTOF ( )

Definition at line 47 of file hddm_t.c.

References size.

Referenced by unpack_t_ForwardTOF().

t_HDDM_t* make_t_HDDM ( )

Definition at line 55 of file hddm_t.c.

References size.

Referenced by unpack_t_HDDM().

t_Hits_t* make_t_Hits ( int  n)

Definition at line 20 of file hddm_t.c.

References size.

Referenced by unpack_t_Hits().

t_Sides_t* make_t_Sides ( int  n)

Definition at line 29 of file hddm_t.c.

References size.

Referenced by unpack_t_Sides().

t_Slabs_t* make_t_Slabs ( int  n)

Definition at line 38 of file hddm_t.c.

References size.

Referenced by unpack_t_Slabs().

static int pack_t_ForwardTOF ( t_ForwardTOF_t pp,
t_iostream fp 
)
static

Definition at line 279 of file hddm_t.c.

References dp, and pack_t_Slabs().

Referenced by pack_t_HDDM().

static int pack_t_HDDM ( t_HDDM_t pp,
t_iostream fp 
)
static

Definition at line 294 of file hddm_t.c.

References dp, and pack_t_ForwardTOF().

Referenced by flush_t_HDDM().

static int pack_t_Hits ( t_Hits_t pp,
t_iostream fp 
)
static

Definition at line 219 of file hddm_t.c.

References dp.

Referenced by pack_t_Sides().

static int pack_t_Sides ( t_Sides_t pp,
t_iostream fp 
)
static

Definition at line 239 of file hddm_t.c.

References dp, and pack_t_Hits().

Referenced by pack_t_Slabs().

static int pack_t_Slabs ( t_Slabs_t pp,
t_iostream fp 
)
static

Definition at line 259 of file hddm_t.c.

References dp, and pack_t_Sides().

Referenced by pack_t_ForwardTOF().

void* unpack_NULL ( )

Definition at line 163 of file hddm_t.c.

References size, and sp.

Referenced by matches().

static t_ForwardTOF_t* unpack_t_ForwardTOF ( )
static

Definition at line 135 of file hddm_t.c.

References dp, make_t_ForwardTOF(), size, and sp.

Referenced by matches().

static t_HDDM_t* unpack_t_HDDM ( )
static

Definition at line 149 of file hddm_t.c.

References dp, make_t_HDDM(), size, and sp.

Referenced by matches().

static t_Hits_t* unpack_t_Hits ( )
static

Definition at line 77 of file hddm_t.c.

References dp, make_t_Hits(), t_Hits_t::mult, size, and sp.

Referenced by matches().

static t_Sides_t* unpack_t_Sides ( )
static

Definition at line 97 of file hddm_t.c.

References dp, make_t_Sides(), t_Sides_t::mult, size, and sp.

Referenced by matches().

static t_Slabs_t* unpack_t_Slabs ( )
static

Definition at line 116 of file hddm_t.c.

References dp, make_t_Slabs(), t_Slabs_t::mult, size, and sp.

Referenced by matches().

Variable Documentation

char HDDM_t_DocumentString[]
Initial value:
=
"<HDDM class=\"t\" version=\"1.0\">\n"
" <forwardTOF>\n"
" <slab y=\"float\" repeat=\"*\">\n"
" <side end=\"int\" repeat=\"*\">\n"
" <hit t=\"float\" dE=\"float\" repeat=\"*\" />\n"
" </side>\n"
" </slab>\n"
" </forwardTOF>\n"
"</HDDM>\n"

Definition at line 63 of file hddm_t.c.

Referenced by init_t_HDDM(), and open_t_HDDM().