Checking that a file is already open

From: Alberto Pulvirenti <alberto.pulvirenti_at_ct.infn.it>
Date: Tue, 17 Feb 2009 09:50:23 +0100


Dear all,

usually, in the analysis macros I create to view histograms or any data from a ROOT file, it can happen that I put the instructions to open that file inside the macro. Then, if I run the macro many times (it happens if I tune parameters, for example), this file is opened several times.

If I want to avoid this, is there a way to check that a file is already opened, and "cd()" to it, instead of opening again many times?

Thanks, cheers

    Alberto Received on Tue Feb 17 2009 - 09:49:21 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 17 2009 - 11:50:02 CET