22const auto file0 =
"root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root";
23const std::vector<std::string> files = {file0,
24 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp1a.root",
25 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp1b.root",
26 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp2.root"};
28int mp_processSelector()
35 selectorPath +=
"/analysis/tree/h1analysis.C+";
36 std::cout <<
"selector used is: " << selectorPath <<
"\n";
45#if defined(__reproduce_davix)
46 auto fp = std::make_unique<TTree>(
TFile::Open(file0));
47 auto tree = fp->Get<
TTree>(
"h42");
53#if defined(__reproduce_davix)
55 out = pool.Process(*tree, *sel);
56 sel->GetOutputList()->
Delete();
61 out = pool.Process(file0, *sel,
"h42");
62 sel->GetOutputList()->
Delete();
67 for (
auto &&file : files) {
74 out = pool.Process(files, *sel,
"h42");
75 sel->GetOutputList()->
Delete();
78 out = pool.Process(fc, *sel);
79 sel->GetOutputList()->
Delete();
82 out = pool.Process(ch, *sel);
83 sel->GetOutputList()->
Delete();
This class provides an interface to process a TTree dataset in parallel with multi-process technology...
A chain is a collection of files containing TTree objects.
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
Class describing a generic file including meta information.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
static TSelector * GetSelector(const char *filename)
The code in filename is loaded (interpreted or compiled, see below), filename must contain a valid cl...
A TTree represents a columnar dataset.