Passing TFile* as reference problem

From: Alexander Mann <amann_at_uni-goettingen.de>
Date: Fri, 18 Mar 2011 11:06:50 +0100

Hi,

I have a problem with ROOT which I have not been able to solve. A minimal code example is attached.

I am passing a TFile pointer f1 to a procedure called files() to load a file. The result of the procedure (the contents of f1) apparently depends on whether files() is called within a loop or directly.

To see the difference, change the line with the comment {1}. You will also need to put a valid path in lines markes with {2}.

Maybe you have an explanation and / or workaround, thanks,
Alexander

Received on Fri Mar 18 2011 - 11:06:54 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 18 2011 - 11:50:01 CET