|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
25 [[deprecated(
"Use Darwin::Tools::Flow.")]]
26 std::unique_ptr<TFile>
GetOutput (std::filesystem::path output,
27 const std::string&
name);
41 (std::vector<std::filesystem::path>
inputs);
47 [[deprecated(
"Use Darwin::Tools::Flow::GetInputTree().")]]
49 (std::vector<std::filesystem::path>
inputs,
50 const char *
name =
"events");
54 template<
typename THX = TH1>
55 inline std::unique_ptr<THX>
GetHist
56 (std::vector<std::filesystem::path>
inputs,
57 const std::string&
name =
"h")
60 namespace fs = filesystem;
65 auto fIn = make_unique<TFile>(
input.c_str(),
"READ");
67 unique_ptr<THX> h(fIn->Get<THX>(
name.c_str()));
70 BOOST_THROW_EXCEPTION(
DE::BadInput(Form(
"`%s` cannot be found in (one of) the "
71 " file(s).",
name.c_str()), fIn));
77 sum->SetDirectory(
nullptr);
89 (
const std::filesystem::path&
input);
93 std::shared_ptr<TFile>
GetOutputFile (
const std::filesystem::path&,
94 const std::source_location = std::source_location::current());
101 [[deprecated(
"Use Darwin::Tools::Flow::GetOutputTree().")]]
102 std::unique_ptr<TTree>
NewTree (
const std::unique_ptr<TChain>& chain,
103 const std::string& thisFunc);
107 #define DT_GetOutput(output) Darwin::Tools::GetOutput(output, __func__)
108 #define DT_NewTree(input,makeFriend) Darwin::Tools::NewTree(input, __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:36
input
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:35
def inputs
Definition: jercExample.py:118