Difference: EmbedParticles (3 vs. 4)

Revision 42006-05-30 - GergelyPatay

Line: 1 to 1
 
META TOPICPARENT name="TrackerSoftware"
In the following we will generate manually a 'single kaon' event, which can be fed into OSCAR and ORCA.
Line: 30 to 30
 

Writing ntuples

Writing such an ntuple is straightforward in Fortran [TODO: C/C++ interface via cfortran.h], see the attached example program writehbook.f.
  1. Define the data blocks as Fortran COMMON's.
Changed:
<
<
  1. 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...
  2. Do a loop over the events, generate some particles, etc; at the end of the loop call hfnt(ID)
>
>
  1. 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...
  2. Do a loop over the events, generate some particles, etc; at the end of the loop call hfnt(ID)
 
  1. Close the ntuple.

Compile the program with g77 -c writehbook.f and link with g77 -o writehbook.run writehbook.o `cernlib packlib,mathlib`

 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback