PYTHIA in PANDAROOT [message #12258] |
Thu, 14 July 2011 09:52 |
Yuri Naryshkin
Messages: 42 Registered: August 2008
|
continuous participant |
From: *desy.de
|
|
Dear Colleagues,
I try to use generated events, generated with PYTHIA6
I produce ascii txt file in ~/pandaroot/pgenerators/Pythia6
(name is genevent1.txt in attachment).
Then I change my code according to advice done in:
http://panda-wiki.gsi.de/cgi-bin/view/Computing/PythiaGen6
add lines:
gSystem->Load("libPGen");
PndPythia6Generator* pythiaGen = new PndPythia6Generator("genevent1.txt");
primGen->AddGenerator(pythiaGen);
run code but I've got an error message:
====================================================================
### Run 0 start.
[INFO ] FairPrimaryGenerator: (Event 1) 0 primary tracks from vertex (0.000000, 0.000000, 0.000000 ) Event Time = 0.000000 (ns)
TG4PrimaryGeneratorAction::TransformPrimaries:
No primary particles found on the stack.
*** TG4Exception: Aborting execution ***
What could be wrong?
Best Regards, Yuri.
|
|
|
Re: PYTHIA in PANDAROOT [message #12293 is a reply to message #12258] |
Tue, 19 July 2011 11:38 |
StefanoSpataro
Messages: 2736 Registered: June 2005 Location: Torino
|
first-grade participant |
From: *to.infn.it
|
|
Hi,
I have seen that in your file you have floating numbers with D instead of E. I am not sure if this can be digested by fscanf and how.
I have opened your .txt file and substitute with emacs all the D with E... and I could run your file.
The problem was in the "format". I have just updated in svn the example.f with the correct syntax.
[Updated on: Tue, 19 July 2011 11:54] Report message to a moderator
|
|
|