[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hddm string type, hddm library documentation
My answers are below, -rtj
Mark M. Ito wrote:
> Richard,
>
> Two questions:
>
> 1. What is meant by the "string" type in HDDM? Is is supposed to be a
> C++ string? Something else? There is no native string type in C, as
> far as I know.
It corresponds to the xml schema built-in type "xs:string" - see
http://www.w3schools.com/Schema/schema_dtypes_string.asp
>
> 2. Is there some documentation or examples on the use of the library
> that is generated by hddm-c?
It seems to me that I gave some tutorials to the offline software group
on it back when it was introduced. For examples, I would propose that
you look at the file stdhep2hddm.c (in folder stdhep_translators) for
how to open, write, close an output hddm file. For input, the programs
bcal2nt.c and cdc2nt.c are simple examples of how to open a hddm file,
extract some data from it into a ntuple, and close it. The structure of
the functions closely follows the data model hierarchy, you should be
able to get most of what you need from these simple examples and looking
at the header file.
>
> -- Mark
>
>
>