|
META TOPICPARENT |
name="TrackerSoftware" |
In the following we will generate manually a 'single kaon' event, which can be fed into OSCAR and ORCA. |
| Writing ntuples
Writing such an ntuple is straightforward in Fortran [TODO: C/C++ interface via cfortran.h], see the attached example program writehbook.f.
- Define the data blocks as Fortran COMMON's.
|
|
< < |
- Create an ntuple with the
HROPEN procedure (say test.ntpl), and define its structure with HBNAME . Note: ntuple's ID must be 100 (unpacked) or 101 (packed; a bit tricky). Additonal note: Ntuple variable names has to be in capital letters. Don't ask why...
- Do a loop over the events, generate some particles, etc; at the end of the loop
call hfnt(ID)
|
> > |
- Create an ntuple with the
HROPEN procedure (say test.ntpl), and define its structure with HBNAME . Note: ntuple's ID must be 100 (unpacked) or 101 (packed; a bit tricky). Additonal note: Ntuple variable names have to be in capital letters. Don't ask why...
- Do a loop over the events, generate some particles, etc; at the end of the loop
call hfnt(ID)
|
|
- Close the ntuple.
Compile the program with g77 -c writehbook.f and link with g77 -o writehbook.run writehbook.o `cernlib packlib,mathlib` |