- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
HOWTO: Use pythia 6xx in ROOT
Root's TPythia6 interface allows the user to run pythia only simulations within root. By default, root will load a given version of the pythia library. At present it is version 6.4.16. In order to run other versions of the library, one must load them by hand before creating an instance of the TPythia6 class. Below is an example for how to download, compile and install
$ wget http://home.thep.lu.se/~torbjorn/pythia/pythia6319.f
$ cvs co pams/gen
$ mkdir pams/gen/pythia6319
$ mv pythia6319.f pams/gen/pythia6319/pythia6319.F # note capitalization
$ cons
$ root4star
[0] .L .sl53_gcc432/lib/libpythia6319.so
[1] TPythia6 *pythia6 = new TPythia6();
[2] pythia6 -> Pyinit( "FIXT", "p", "p", 38.8 ); // or your favorite configration
Caution:
TPythia6's author did something very very very bad. As a consequence, the GetParticle(i)
method (defined in TGenerator) returns a pointer to TMCParticle, not the TParticle pointer which one would expect from the documentation in the base class.
TPythia6's author did something very very very bad. As a consequence, the GetParticle(i)
method (defined in TGenerator) returns a pointer to TMCParticle, not the TParticle pointer which one would expect from the documentation in the base class.
Groups:
- jwebb's blog
- Login or register to post comments