30static std::string tutname =
"mp105_processEntryList: ";
31static std::string
logfile =
"mp105_processEntryList.log";
34std::vector<std::string> files = {
"http://root.cern.ch/files/h1/dstarmb.root",
35 "http://root.cern.ch/files/h1/dstarp1a.root",
36 "http://root.cern.ch/files/h1/dstarp1b.root",
37 "http://root.cern.ch/files/h1/dstarp2.root"};
39int mp105_processEntryList()
51 std::cout << tutname <<
"creating the entry list \n";
53 auto sumElist = pool.Process(files, doH1fillList,
"h42");
59 std::cout << tutname <<
" ERROR creating the entry list \n";
68 std::cout << tutname <<
"processing the entry list with a lambda \n";
71 auto hListFun = pool.Process(files, doH1useList, *sumElist,
"h42");
74 if (checkH1(hListFun) < 0)
78 if (doFit(hListFun,
logfile.c_str()) < 0)
86 selectorPath +=
"/tree/h1analysisTreeReader.C+";
87 std::cout << tutname <<
"processing the entry list with selector '" << selectorPath <<
"'\n";
91 sel->SetOption(
"useList");
93 auto hListSel = pool.Process(files, *
sel, *sumElist,
"h42");
97 if (checkH1(hListSel) < 0)
101 if (doFit(hListSel,
logfile.c_str()) < 0)
std::ofstream * logfile() const
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
R__EXTERN TSystem * gSystem
This class provides an interface to process a TTree dataset in parallel with multi-process technology...
static TSelector * GetSelector(const char *filename)
The code in filename is loaded (interpreted or compiled, see below), filename must contain a valid cl...
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Print(Option_t *option="") const override
Print the real and cpu time passed between the start and stop events.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=nullptr)
Redirect standard output (stdout, stderr) to the specified file.
<a href="https://nbviewer.jupyter.org/url/root.cern/doc/master/notebooks/mp_H1_lambdas....