LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
load_fixit_file.cxx
Go to the documentation of this file.
1 #include "TFile.h"
2 
3 #include "cetlib/search_path.h"
4 
5 namespace {
6  int load_fixit_file()
7  {
8  cet::search_path const sp{"FW_SEARCH_PATH", std::nothrow};
9  if (std::string filename; sp.find_file("simIDE_streamer_info.root", filename)) {
10  TFile file{filename.c_str()};
11  return 0;
12  }
13  return 1;
14  }
15 
16  auto rc = load_fixit_file();
17 }
TFile * file