You are here

How to check if a file is already open?

   if (gROOT->GetListOfFiles()->FindObject(filename) ) {
      // do not open the file
   } else {
      // open the file
   }