Hi,
When I use the TPythia class to generate events, I seem to get
uninitialized variables instead of actual values. Here is an example...
TPythia myPythia;
TParticle *myParticle;
// Assume I've completed all initialization
myPythia.GenerateEvent();
int numParticles = myPythia.GetNumberOfParticles();
for(int i = 0; i < numParticles; i++) {
myParticle = myPythia.GetParticle(i);
float px = myParticle->Px();
}
Now, if I look at px, py, pz, etc, they all seem to be uninitialized.
Same for Vx, Vy, Vz, and so on. Is there something simple I'm missing?
Thanks,
Joe
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET