pdf generator, bare bones complete

From: Chris Crawford (chris2@mitlns.mit.edu)
Date: Mon Oct 22 2001 - 08:52:55 EDT


hi tim,
  i got the generator working (only tested on the uniform
distribution). check it out; all you have to do is

cvs co -rpro userGen/pdf #or something like that
                                               #note the directory
change
cd userGen/epel
root
.L TPdf.cc
.x test.C

it is set to run in DEBUG mode, with all the diagnostics,
so you can see all the structures, and also the different
interpolations needed to come up with a multidimensional
random vector. uncomment first DEBUG macro in TPdf.h
to remove this.

could you please check out two lines in TPdf.h (140, 176)
where i had to use "\n" instead of endl? somehow the latter
choked up cint. i included the bad output as a comment
right there. do you have any idea why it would do this?
also, i found out the hard way you can't declare `int dbidx=0'
inside of a macro function with cint. ??

well, it should be ready soon for people include myself
to use in their event generators.

--chris

ps.
since i wrote this, it have also got it to compile (only on the lns
machines) and tested it out on a Gaussian generator. do a
    cvs up -A
    make
    root
    .x test.C
it is fast (30s for 1M events on 20x20x20 grid), but seems to have
a memory leak fatal before 2M events.



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:28 EST