20const auto file0 =
"http://root.cern.ch/files/h1/dstarmb.root";
21const std::vector<std::string> files = {file0,
22 "http://root.cern.ch/files/h1/dstarp1a.root",
23 "http://root.cern.ch/files/h1/dstarp1b.root",
24 "http://root.cern.ch/files/h1/dstarp2.root"};
26int mp103_processSelector()
33 selectorPath +=
"/tree/h1analysis.C+";
34 std::cout <<
"selector used is: " << selectorPath <<
"\n";
43#if defined(__reproduce_davix)
44 auto fp = std::make_unique<TTree>(
TFile::Open(file0));
51#if defined(__reproduce_davix)
53 out = pool.Process(*
tree, *sel);
54 sel->GetOutputList()->
Delete();
59 out = pool.Process(file0, *sel,
"h42");
60 sel->GetOutputList()->
Delete();
65 for (
auto &&
file : files) {
72 out = pool.Process(files, *sel,
"h42");
73 sel->GetOutputList()->
Delete();
76 out = pool.Process(
fc, *sel);
77 sel->GetOutputList()->
Delete();
80 out = pool.Process(ch, *sel);
81 sel->GetOutputList()->
Delete();
static struct mg_connection * fc(struct mg_context *ctx)
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.
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::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
virtual void Delete(Option_t *option="")
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.