GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » modifications of simpleEvtGen
modifications of simpleEvtGen [message #10338] Thu, 04 March 2010 18:46
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *gsi.de
Hi all,


due to discussions concerning random numbers and granularity of EvtGen I modified simpleEvtGen accordingly and also added a version creating ROOT output instead of ASCII output and a new EvtGen reader PndEvtGenGenerator. In addition I patched PndDpmDirect to also accept a random seed and theta min as parameters.

Modifications are:

- pgenerators/EvtGen/simpleEvtGen.cc

Usage is as before, but as an additional parameter after the beam momentum you can now specify a random seed which is passed to TRandom3 as

./simpleEvtGen <particle> <decfile> <#events> <pbarmom> <seed>

The default value is -1 which actually uses the default built-in random function w/o seed (backward compatibility).


- pgenerators/EvtGen/simpleEvtGenRO.cc

Can be build with 'make; make simpleRO'. Same interface as above, but creates a ROOT file 'evtOutput.root' as output. This is very handy to quickly plot the distributions coming directly from the generator in CINT. In addition it is way faster than the upper one (for whatever reason).


- pgenerators/PndEvtGenGenetor.cxx/h

The EvtGen 'Reader' which digest both ASCII and ROOT output files. Used as:

PndEvtGenGenerator* evtGen = new PndEvtGenGenerator(infile.Data());
primGen->AddGenerator(evtGen);



- pgenerators/PndDpmDirect.cxx/h

Accepts also a random seed and a theta min (relevant for modes 1 and 2 with elastic scattering).


Best wishes,
Klaus

 
Read Message
Previous Topic: UrQMD - SMM
Next Topic: fluka pbarp events (test purposes)
Goto Forum:
  


Current Time: Thu Mar 28 18:43:14 CET 2024

Total time taken to generate the page: 0.00762 seconds