All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 }
* file
Definition: file_to_url.sh:69
BEGIN_PROLOG could also be dds filename