So, I have a code based on TPythia, but recently i have to use an .lhe file (input from another generator) which can only be done in Pythia.
The problem is I use the class TParticle from TPythia where I loop and fill histograms.
Pythia has a totally different stracture with other classes and members.
Also the code cant be compiled at all with included Pythia.h and TPythia.h, it is “confused”.
Is there any straightforward way to do it or I should rewrite the code from scratch?
If you are talking about PYTHIA6, see the [url=https://root-forum.cern.ch/t/select-a-pdfset-for-pythia6-inside-root/11649/2 a PDFset for pythia6 inside Root"[/url] topic and note the two additional ROOT configure options “–enable-pythia6 --with-pythia6-libdir=/your/pythia6/lib/subdirectory”.
I know this topic. I’ve probed the easest way, taking 2-3 minutes. Here is an example.
I wanted insert into TPythia6 EG wrapper my own upinit.f and upevnt.f doing showering and hadronization
of a few processes from NLO MCFM (that’s another story how I’v connected MCFM and Pythia). So I had several files:
pythia-6.4.12.f – needed version >6.3,at least, where I’ve removed dummy upevnt, upinit and upveto
upevnt.f
upinit.f
upveto.f
readevent.C – file which is a bridge to MCFM code, it requires ROOT libs