DAS  3.0
Das Analysis System
main.cc File Reference
#include <boost/test/included/unit_test.hpp>
#include <boost/exception/all.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include "test.h"
#include "exceptions.h"
#include "Options.h"
#include "UserInfo.h"
#include "MetaInfo.h"
#include "example01.cc"
#include "example02.cc"
#include "example03.cc"
#include "example04.cc"
#include "../bin/getMetaInfo.cc"
#include "../bin/printMetaInfo.cc"
#include "../bin/printEntries.cc"
#include "../bin/printBranches.cc"
#include "../bin/forceMetaInfo.cc"
+ Include dependency graph for main.cc:

Namespaces

 Darwin
 
 Darwin::Physics
 

Macros

#define DOXYGEN_SHOULD_SKIP_THIS
 
#define BOOST_TEST_MODULE   test
 
#define DARWIN_GIT_REPO   DARWIN
 

Functions

template<bool DARWIN_TEST_EXCEPTIONS = false>
void example02 (const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
template<bool DARWIN_TEST_EXCEPTIONS = false>
void example03 (const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
void example04 (const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
 BOOST_AUTO_TEST_CASE (output)
 
 BOOST_AUTO_TEST_CASE (getters)
 
 BOOST_AUTO_TEST_CASE (ntuple_producer)
 
 BOOST_AUTO_TEST_CASE (ntuple_weight_modifier)
 
 BOOST_AUTO_TEST_CASE (ntuple_JEC_modifier)
 
 BOOST_AUTO_TEST_CASE (projection)
 
 BOOST_AUTO_TEST_CASE (all_steps)
 
 BOOST_AUTO_TEST_CASE (getBool)
 
 BOOST_AUTO_TEST_CASE (forceMetaInfo)
 
 BOOST_AUTO_TEST_CASE (GetFirstTreeLocation)
 
 BOOST_AUTO_TEST_CASE (printEntries)
 
 BOOST_AUTO_TEST_CASE (printBranches)
 
 BOOST_AUTO_TEST_CASE (printMetaInfo)
 
 BOOST_AUTO_TEST_CASE (closure)
 
 BOOST_AUTO_TEST_CASE (exceptions)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   test

◆ DARWIN_GIT_REPO

#define DARWIN_GIT_REPO   DARWIN

◆ DOXYGEN_SHOULD_SKIP_THIS

#define DOXYGEN_SHOULD_SKIP_THIS

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( all_steps  )
238  {
239  pt::ptree config;
240  BOOST_REQUIRE_NO_THROW( pt::read_info("example.info", config) );
241  BOOST_REQUIRE_NO_THROW( DT::Options::parse_config(config) );
242  const int steering = DT::fill | DT::syst;
243  BOOST_REQUIRE_NO_THROW( DP::example01("ntuple01.root", config, steering) );
244  BOOST_REQUIRE_NO_THROW( DP::example02("ntuple01.root", "ntuple02.root", config, steering) );
245  BOOST_REQUIRE_NO_THROW( DP::example03("ntuple02.root", "ntuple03.root", config, steering) );
246  BOOST_REQUIRE_NO_THROW( DP::example04("ntuple03.root", "hists04.root", config, steering) );
247  }

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( closure  )
311  {
312  {
313  unique_ptr<TFile> f(TFile::Open("ntuple02.root"));
314  f->ls();
315  }
316 
317  vector<string> exts {"info", "xml", "json"};
318  for (string ext: exts) {
319  fs::path file = "out1." + ext;
320  vector<fs::path> inputs = {"ntuple02.root"};
321  BOOST_REQUIRE_NO_THROW( DT::getMetaInfo(inputs, file) );
322  }
323 
324  auto getHash = [](const fs::path& ntuple) {
325  auto rootfile = unique_ptr<TFile>(TFile::Open(ntuple.c_str(), "READ"));
326  auto events = unique_ptr<TTree>(rootfile->Get<TTree>("events"));
327  size_t Hash = hash<TTree*>{}(events.get());
328  return Hash;
329  };
330 
331  size_t Hash = getHash("ntuple02.root");
332 
333  pt::ptree config;
334  auto chain = [&config,&getHash](const fs::path& fOut, bool isMC) {
335  fs::remove("ntuple02.root");
336  fs::remove("ntuple03.root");
337  config.put<bool>("flags.isMC", isMC);
338  const int steering = DT::fill | DT::syst;
339  BOOST_REQUIRE_NO_THROW( DT::Options::parse_config(config) );
340  DP::example01("ntuple01.root", config, steering);
341  DP::example02("ntuple01.root", "ntuple02.root", config, steering);
342  DP::example02("ntuple02.root", "ntuple03.root", config, steering);
343  DP::example04("ntuple03.root", "hists04.root", config, steering);
344  vector<fs::path> inputs = {"hists04.root"};
345  DT::getMetaInfo(inputs, fOut);
346  size_t Hash = getHash("ntuple02.root");
347  fs::remove("ntuple01.root");
348  fs::rename("hists04.root", Form("hists04_%s_%s.root", &(fOut.extension().c_str()[1]), isMC ? "true" : "false"));
349  return Hash;
350  };
351 
352  pt::read_info("out1.info", config);
353  int oldseed = config.get<int>("preseed");
354  config.put<int>("preseed", 2*oldseed);
355  BOOST_TEST( Hash != chain("out2.info", true ) );
356  config.put<int>("preseed", oldseed);
357  BOOST_TEST( Hash == chain("out2.info", true ) );
358  BOOST_TEST( Hash != chain("out2.info", false) );
359 
360  pt::read_json("out1.json", config);
361  BOOST_TEST( Hash == chain("out2.json", true ) );
362  BOOST_TEST( Hash != chain("out2.json", false) );
363 
364  pt::read_xml("out1.xml", config);
365  config = config.get_child("userinfo");
366  BOOST_TEST( Hash == chain("out2.xml", true ) );
367  BOOST_TEST( Hash != chain("out2.xml", false) );
368 
369  vector<fs::path> inputs = {"hists04_info_true.root" , "hists04_json_true.root" , "hists04_xml_true.root" };
370  BOOST_TEST( DT::getMetaInfo(inputs, "true.info" ) == EXIT_SUCCESS );
371  inputs = {"hists04_info_false.root", "hists04_json_false.root", "hists04_xml_false.root"};
372  BOOST_TEST( DT::getMetaInfo(inputs, "false.info" ) == EXIT_SUCCESS );
373  inputs = {"hists04_info_true.root" , "hists04_info_false.root"};
374  BOOST_TEST( DT::getMetaInfo(inputs, "failure.info") == EXIT_FAILURE );
375 
376  for (string name: {"true", "false", "failure"})
377  fs::remove(name + ".info");
378 
379  for (string ext: exts) {
380  fs::remove("out1." + ext);
381  fs::remove("out2." + ext);
382  for (string b: {"true", "false"})
383  fs::remove("hists04_" + ext + "_" + b + ".root");
384  }
385  }

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( exceptions  )
388  {
389  // testing raw exception object
390  auto f = unique_ptr<TFile>(TFile::Open("ntuple02.root", "READ"));
391  auto t = unique_ptr<TTree>(f->Get<TTree>("events"));
392  DT::MetaInfo metainfo(t);
393  cout << DE::BadInput("Here is a bad input", metainfo).what() << endl;
394  t->GetEntry(5);
395  cout << DE::AnomalousEvent("Here is an anomally (just for the example)", t).what() << endl;
396 
397  // testing in real context
398  pt::ptree config;
399  BOOST_REQUIRE_NO_THROW( pt::read_info(DARWIN "/test/example.info", config) );
400  BOOST_REQUIRE_NO_THROW( DT::Options::parse_config(config) );
401  const int steering = DT::fill | DT::syst;
402  DP::example01("ntuple01.root", config, steering);
403  BOOST_REQUIRE_THROW( DP::example02<true>("ntuple01.root", "ntuple02.root", config, steering), boost::wrapexcept<DE::AnomalousEvent> );
404  BOOST_REQUIRE_THROW( DP::example01<true>("ntuple01.root", config, steering), boost::wrapexcept<DE::BadInput > );
405 
406  fs::remove("inexistent.out");
407  fs::remove("ntuple01.root");
408  }

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( forceMetaInfo  )
260  {
261  vector<fs::path> input = {"ntuple02.root"};
262  DT::getMetaInfo(input, "force02.info");
263  DT::forceMetaInfo("force02.info", "ntuple01.root", DT::verbose);
264  input = {"ntuple01.root"};
265  DT::getMetaInfo(input, "force01.info");
266  unique_ptr<TFile> f(TFile::Open("ntuple01.root", "READ"));
267  auto events = unique_ptr<TTree>(f->Get<TTree>("events"));
268  DT::MetaInfo metainfo(events);
269  BOOST_TEST( !metainfo.Find("history") );
270  BOOST_TEST( !metainfo.Get<bool>("git", "reproducible") );
271  }

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( getBool  )
250  {
251  BOOST_TEST( !DT::getBool("this will not work").has_value());
252  BOOST_TEST( DT::getBool("yes").has_value());
253  BOOST_TEST( DT::getBool("true" ).value() == true );
254  BOOST_TEST( DT::getBool("kTRUE").value() == true );
255  BOOST_TEST( DT::getBool("off" ).value() == false );
256  BOOST_TEST( DT::getBool("NO" ).value() == false );
257  }

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( GetFirstTreeLocation  )
274  {
275  BOOST_TEST( DT::GetFirstTreeLocation("ntuple01.root") == "events" );
276  BOOST_REQUIRE_NO_THROW( DT::GetFirstTreeLocation("ntuple01.root") );
277 
278  TFile::Open("GetFirstTreeLocation.root", "RECREATE")->Close();
279  BOOST_REQUIRE_THROW( DT::GetFirstTreeLocation("GetFirstTreeLocation.root"), boost::wrapexcept<DE::BadInput> );
280  }

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( getters  )
76  {
77  vector<fs::path> files;
78  BOOST_REQUIRE_THROW( DT::GetHist<TH1>(files, "h"), boost::wrapexcept<fs::filesystem_error> ); // bc empty
79  BOOST_REQUIRE_THROW( DT::GetChain (files, {0, 1}, "t"), boost::wrapexcept<fs::filesystem_error> ); // bc empty
80 
81  for (int i = 1; i < 4; ++i) {
82  fs::path name = Form("getters_%d.root", i);
83  cout << name << endl;
84  files.push_back(name);
85  unique_ptr<TFile> f(TFile::Open(name.c_str(), "RECREATE"));
86  auto h = make_unique<TH1F>("h", "h", 1, 0., 1.);
87  auto t = make_unique<TTree>("t", "t");
88  h->SetDirectory(f.get());
89  t->SetDirectory(f.get());
90  h->Write();
91  t->Write();
92  }
93 
94  BOOST_REQUIRE_THROW( DT::GetChain (files, {0, 1}, "t" ), boost::wrapexcept<invalid_argument> );
95  BOOST_REQUIRE_THROW( DT::GetHist<TH1>(files, "thisHistDoesNotExist"), boost::wrapexcept<DE::BadInput> );
96  BOOST_REQUIRE_THROW( DT::GetChain (files, {0, 1}, "thisTreeDoesNotExist"), boost::wrapexcept<DE::BadInput> );
97 
98  BOOST_REQUIRE_NO_THROW( DT::GetHist<TH1>(files, "h") );
99  }

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( ntuple_JEC_modifier  )
167  {
168  fs::path input, output;
169 
170  DT::Options options("Toy example to modify a n-tuple (JES corrections).",
172  options.input ("input" , &input , "input ROOT file" )
173  .output("output", &output, "output ROOT file");
174 
175  for (string mode: {"f", "F"}) {
176  string cmd = "example03 ntuple02_" + mode + ".root ntuple03_" + mode + ".root -j 3 -k 1 -" + mode + " -s";
177  auto const args = tokenize(cmd.c_str());
178  options(args.size(), args.data());
179  BOOST_REQUIRE_NO_THROW( options(args.size(), args.data()) );
180 
181  const auto& config = options(args.size(), args.data());
182  const auto& slice = options.slice();
183  const int steering = options.steering();
184 
185  DP::example03(input, output, config, steering, slice);
186  BOOST_REQUIRE_NO_THROW( DP::example03(input, output, config, steering, slice) );
187  }
188 
189  unique_ptr<TChain> tIn_f = DT::GetChain(vector<fs::path>{"ntuple03_f.root"}),
190  tIn_F = DT::GetChain(vector<fs::path>{"ntuple03_F.root"});
191 
192  vector<DP::RecJet> * recs_f = nullptr,
193  * recs_F = nullptr;
194  BOOST_REQUIRE_NO_THROW( recs_f = DT::GetBranchReadOnly(tIn_f, "recJets", &recs_f, DT::verbose) );
195  BOOST_REQUIRE_NO_THROW( recs_F = DT::GetBranchReadOnly(tIn_F, "recJets", &recs_F, DT::verbose | DT::Friend) );
196  BOOST_TEST( tIn_f->GetEntries() == tIn_F->GetEntries() );
197 
198  for (long long i = 0; i < tIn_f->GetEntries(); ++i) {
199  tIn_f->GetEntry(i);
200  tIn_F->GetEntry(i);
201  BOOST_TEST( recs_f->size() == recs_F->size() );
202  for (size_t j = 0; j < recs_f->size(); ++j)
203  BOOST_TEST( recs_f->at(j).CorrPt() == recs_F->at(j).CorrPt() );
204  }
205 
206  fs::remove("ntuple02_f.root");
207  fs::remove("ntuple03_f.root");
208  }

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( ntuple_producer  )
106  {
107  fs::path output;
108 
109  DT::Options options("This is just a toy example to generate a n-tuple.", DT::config | DT::fill);
110  options.output("output" , &output, "output ROOT file")
111  .arg<bool> ("isMC" , "flags.isMC" , "flag" )
112  .arg<float> ("R" , "flags.R" , "R parameter in jet clustering algorithm")
113  .arg<int > ("year" , "flags.year" , "year (20xx)" );
114 
115  auto const args = tokenize("example01 ntuple01.root -c example.info -f");
116  BOOST_REQUIRE_NO_THROW( options(args.size(), args.data()) );
117 
118  const auto& config = options(args.size(), args.data());
119  const int steering = options.steering();
120 
121  BOOST_REQUIRE_NO_THROW( DP::example01(output, config, steering) );
122  }

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( ntuple_weight_modifier  )
125  {
126  fs::path input, output;
127 
128  DT::Options options("Toy example to modify a n-tuple (filter application).",
130  options.input ("input" , &input , "input ROOT file" )
131  .output("output", &output, "output ROOT file")
132  .arg<fs::path>("filters", "corrections.filters", "location of list of MET filters to apply");
133 
134  for (string mode: {"f", "F"}) {
135  string cmd = "example02 ntuple01.root ntuple02_" + mode + ".root -c example.info -j 2 -k 1 -" + mode;
136  auto const args = tokenize(cmd.c_str());
137  options(args.size(), args.data());
138  BOOST_REQUIRE_NO_THROW( options(args.size(), args.data()) );
139 
140  const auto& config = options(args.size(), args.data());
141  const auto& slice = options.slice();
142  const int steering = options.steering();
143 
144  DP::example02(input, output, config, steering, slice);
145  BOOST_REQUIRE_NO_THROW( DP::example02(input, output, config, steering, slice) );
146  }
147 
148  unique_ptr<DT::ChainSlice> tIn_f = DT::GetChain(vector<fs::path>{"ntuple02_f.root"}),
149  tIn_F = DT::GetChain(vector<fs::path>{"ntuple02_F.root"});
150 
151  DP::RecEvent * event_f = nullptr,
152  * event_F = nullptr;
153  BOOST_TEST( DT::GetBranchReadOnly(tIn_f, "event", &event_f, DT::verbose, false) == nullptr );
154  BOOST_REQUIRE_THROW( event_f = DT::GetBranchReadOnly(tIn_f, "event", &event_f, DT::verbose, true ), boost::wrapexcept<DE::BadInput> );
155  BOOST_REQUIRE_NO_THROW( event_f = DT::GetBranchReadOnly(tIn_f, "recEvent", &event_f, DT::verbose) );
156  BOOST_REQUIRE_NO_THROW( event_F = DT::GetBranchReadOnly(tIn_F, "recEvent", &event_F, DT::verbose | DT::Friend) );
157  BOOST_TEST( tIn_f->GetEntries() == tIn_F->GetEntries() );
158 
159  for (long long i = 0; i < tIn_f->GetEntries(); ++i) {
160  tIn_f->GetEntry(i);
161  tIn_F->GetEntry(i);
162  BOOST_TEST( event_f->weights.front() == event_F->weights.front() );
163  }
164  }

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( output  )
70  {
71  BOOST_REQUIRE_THROW( DT_GetOutput("/this/file/does/not/exists.root"), boost::wrapexcept<fs::filesystem_error> );
72  BOOST_REQUIRE_NO_THROW( DT_GetOutput("this_file_is_allowed.root") );
73  }

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( printBranches  )
297  {
298  vector<fs::path> inputs {"ntuple01.root"};
299  BOOST_REQUIRE_NO_THROW( DT::printBranches(inputs) );
300  }

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( printEntries  )
283  {
284  auto f = TFile::Open("printEntries.root", "RECREATE");
285  f->mkdir("dir1");
286  auto d = f->mkdir("dir2"); d->cd();
287  auto dd = d->mkdir("subdir"); dd->cd();
288  auto t = new TTree("one_tree", "");
289  t->SetDirectory(dd);
290  t->Write();
291  f->Close();
292  BOOST_REQUIRE_NO_THROW( DT::printEntries({"printEntries.root"}) );
293  fs::remove("printEntries.root");
294  }

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( printMetaInfo  )
303  {
304  vector<fs::path> inputs {"ntuple01.root"};
305  pt::ptree tree;
306  tree.put<string>("path", "preseed");
307  BOOST_REQUIRE_NO_THROW( DT::printMetaInfo(inputs, tree) );
308  }

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( projection  )
211  {
212  fs::path input, output;
213 
214  DT::Options options("Toy example to project a n-tuple.", DT::split);
215  options.input ("input" , &input , "input ROOT file" )
216  .output("output", &output, "output ROOT file");
217 
218  auto const args = tokenize("example04 ntuple02_F.root hists04.root");
219  BOOST_REQUIRE_NO_THROW( options(args.size(), args.data()) );
220 
221  const auto& config = options(args.size(), args.data());
222  const auto& slice = options.slice();
223  const int steering = options.steering();
224 
225  BOOST_REQUIRE_NO_THROW( DP::example04(input, output, config, steering, slice) );
226 
227  fs::remove("ntuple01.root");
228  fs::remove("ntuple02_F.root");
229  fs::remove("ntuple03_F.root");
230  fs::remove("hists04.root");
231  }
Darwin::Tools::GetFirstTreeLocation
std::string GetFirstTreeLocation(const std::filesystem::path &input)
one input ROOT file
Definition: FileUtils.cc:98
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
Darwin::Tools::printEntries
void printEntries(vector< fs::path > inputs)
Definition: printEntries.cc:22
Darwin::Tools::fill
@ fill
activate -f to fill the tree
Definition: Options.h:27
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.options
options
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:41
Darwin::Physics::example03
void example03(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: main.cc:49
Step::verbose
static bool verbose
Definition: Step.h:40
Darwin::Tools::ChainSlice::GetEntries
Long64_t GetEntries() const override
Return the total number of entries in the chain, taking the restrictions set by GetBegin and GetEnd i...
Definition: FriendUtils.h:118
Darwin::Tools::Friend
@ Friend
activate -F to only fill the new branches
Definition: Options.h:28
Ntupliser_cfg.args
args
Definition: Ntupliser_cfg.py:11
Darwin::Tools::GetChain
std::unique_ptr< ChainSlice > GetChain(std::vector< std::filesystem::path > inputs, const Slice slice={1, 0}, const std::string &name="events")
Load chain from a list of files.
Definition: FileUtils.cc:67
BOOST_TEST
BOOST_TEST(gendijet.Rapidity()==1.3573785791881385)
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
std::hash< TTree * >
Hash from TTree obtained by combination of different elements.
Definition: UserInfo.h:286
Ntupliser_cfg.f
f
Definition: Ntupliser_cfg.py:252
Darwin::Physics::example02
void example02(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: main.cc:41
Darwin::Tools::syst
@ syst
activate -s to systematic uncertainties
Definition: Options.h:29
Darwin::Physics::example04
void example04(const fs::path &input, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: main.cc:56
compareFiles.files
files
Definition: compareFiles.py:125
Darwin::Tools::Options::parse_config
static void parse_config(boost::property_tree::ptree &, std::string="")
Parse config if given. This method calls itself to parse the tree structure.
Darwin::Tools::MetaInfo
Generic meta-information for n-tuple (including speficities to Darwin).
Definition: MetaInfo.h:65
Darwin::Tools::forceMetaInfo
void forceMetaInfo(const fs::path &input, const fs::path &output, const int steering)
Definition: forceMetaInfo.cc:92
cmd
cmd
Definition: Core-cfgcmd.txt:1
Darwin::Tools::GetBranchReadOnly
T * GetBranchReadOnly(const TTreePtr &tIn, const std::string &name, T **t, const int steering=0, bool raise_exception=true)
Wrapper to initialise read-only branches.
Definition: FileUtils.h:121
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:260
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.input
input
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:35
Darwin::Tools::Options
Common class to interpret the command line, based on Boost Program Options.
Definition: Options.h:58
Darwin::Physics::RecEvent
Generic detector-level event.
Definition: Event.h:64
Darwin::Tools::ChainSlice::GetEntry
Int_t GetEntry(Long64_t entry, Int_t getall=0) override
Get entry from the chain to memory.
Definition: FriendUtils.h:135
Ntupliser_cfg.isMC
string isMC
Definition: Ntupliser_cfg.py:59
Darwin::Tools::printMetaInfo
int printMetaInfo(vector< fs::path > inputs, const pt::ptree &config)
Definition: printMetaInfo.cc:33
jercExample.inputs
def inputs
Definition: jercExample.py:118
Darwin::Exceptions::AnomalousEvent
Generic exception for problematic event (during event loop).
Definition: exceptions.h:48
Darwin::Tools::tokenize
std::vector< const char * > tokenize(const char *str)
Definition: test.h:15
DT_GetOutput
#define DT_GetOutput(output)
Definition: FileUtils.h:222
Darwin::Exceptions::BadInput
Generic exception for ill-defined input (before the event loop).
Definition: exceptions.h:68
Darwin::Tools::printBranches
void printBranches(vector< fs::path > inputs)
Adapted from ROOT example
Definition: printBranches.cc:88
Darwin::Tools::getBool
optional< bool > getBool(string s)
Translates a string into a boolean if possible.
Definition: forceMetaInfo.cc:32
Darwin::Tools::getMetaInfo
int getMetaInfo(vector< fs::path > inputs, const fs::path &output)
Print content of the first TTree::UserInfo() found in the root file.
Definition: getMetaInfo.cc:25