Hi Marc,
This problem has been resolved in the trunk a few week ago by revision 33354 of the trunk.
Cheers,
Philippe.
PS. Alternatively remove the file delete fChain->GetCurrentFile(); from the desctructor of PAUReco.
On 5/27/10 3:26 PM, Marc Escalier wrote:
> Hello,
>
> i have the following problem :
>
> i) open a given ntuple .root
> ii) create a class using MakeClass(NameOfTheClass)
> (let's call the class "PAUReco")
>
> iii)
> let's consider two chains (TChain) : chain A and chain B
>
> PAUReco a(mychain_A)
> a.Loop();
> PAUReco b(mychain_B)
> b.Loop()
>
> =>it works
>
> now a variant : use the same TChain for the two instances of the
> classes :
>
> iii)
> PAUReco a(mychain_A)
> a.Loop();
> PAUReco b(mychain_A)
> b.Loop()
>
> it works, but when i quit root, there is a segmentation fault
>
> would you have an idea ? sounds like root "remembers" that the
> previous chain was used and affected to an another instance of the class
>
>
> thanks
>
Received on Thu May 27 2010 - 22:31:22 CEST
This archive was generated by hypermail 2.2.0 : Thu May 27 2010 - 23:50:02 CEST