Hi, I had problems using ImportParticles with the "Final" option. When writing the "particle" branch with TTree::Fill it crashed whereas when using the "All" option the same macro work (macro is attached). Looping over the particles in the TClonesArray works perfectly in both cases (particles->Print()). I "solved" the problem changing the TPythia6::ImportParticles in the following way: The dummy index i is always incremented regardless whether a particle was "final" or not. Introducing a variable which actually counts the particles that were inserted into the TClonesArray apparently works (see the attached file with the changed function) But I am not convinced that I actually found the real bug. The reason is that I am not sure, why TTree::Fill crashed. I suspect the GetEntriesFast Method, which does not work on holes. Best regards, Constantin
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:14 MET