Since I could not restore the pointer to particleDateEntry class, I could not get the name of a particle.
I would be glad if anyone could help me how to get the name of 5th particle (e.g) in saved event vector( from Pythia8219).
The following link might be useful: home.thep.lu.se/~torbjorn/doxyge … 6b357ce636
[quote]
Since I could not restore the pointer to particleDateEntry class, I could not get the name of a particle. [/quote]What do you mean? How did it fail?
[quote=“pcanal”][quote]
Since I could not restore the pointer to particleDateEntry class, I could not get the name of a particle. [/quote]What do you mean? How did it fail?[/quote]
Sorry for unclear statement. As explained in the online manual of Pythia8, home.thep.lu.se/~torbjorn/pythia … elcome.php Study Output/ Event Record. I guessed I need to have a pointer to ParticleDataEntry Class. May be I am wrong. I wish to get the name of the particle ( e.g. W-). In the macro above, “event->at(i).name()” returns null instead the name of the ith particle.
[quote]In the macro above, “event->at(i).name()” returns null instead the name of the ith particle.[/quote]From the look of it, you have done ‘right’ things to load the Event objects, you would need to confirm with the Pythia developer whether this use case is supported by their Event class.