Re: [ROOT] TPythia6::ImportParticles

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Oct 21 2002 - 18:38:34 MEST


Hi Constantin,

Sorry for this late reply.
Thanks for reporting AND fixing the problem.
Your diagnostic is correct and your fix too.
The fix is now in CVS.

Rene Brun

On Sun, 13 Oct 2002, Constantin Loizides wrote:

> 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:15 MET