Loading [MathJax]/extensions/tex2jax.js
 |
Darwin
1.0
Event loop based prototype framework
|
Go to the documentation of this file.
19 std::unique_ptr<TFile>
GetOutput (std::filesystem::path output,
34 (std::vector<std::filesystem::path> inputs);
39 (std::vector<std::filesystem::path> inputs,
40 const char * name =
"events");
44 template<
typename THX = TH1>
46 (std::vector<std::filesystem::path> inputs,
47 const char * name =
"h")
50 namespace fs = filesystem;
54 for (
auto const& input: inputs) {
55 auto fIn = make_unique<TFile>(input.c_str(),
"READ");
57 unique_ptr<THX> h(fIn->Get<THX>(name));
60 BOOST_THROW_EXCEPTION(
DE::BadInput(Form(
"`%s` cannot be found in (one of) the "
61 " file(s).", name), fIn));
67 sum->SetDirectory(
nullptr);
79 (
const std::filesystem::path& input);
90 std::unique_ptr<TTree>
NewTree (
const std::unique_ptr<TChain>& chain,
91 const bool makeFriend,
92 const char * thisFunc);
96 #define DT_GetOutput(output) Darwin::Tools::GetOutput(output, __func__)
97 #define DT_NewTree(input,makeFriend) Darwin::Tools::NewTree(input, makeFriend, __func__)
Handling of exceptions.
Definition: darwin.h:34