|
DAS
3.0
Das Analysis System
|
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;
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__)
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
Handling of exceptions.
Definition: darwin.h:34
input
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:35
def inputs
Definition: jercExample.py:118