28 void parallelMergeClient()
30 gBenchmark->Start(
"treeClient");
32 TParallelMergingFile *file = (TParallelMergingFile*)TFile::Open(
"mergedClient.root?pmerge=localhost:1095",
"RECREATE");
35 file->UploadAndReset();
36 UInt_t idx = file->fServerIdx;
41 hpx =
new TH1F(
"hpx",
"This is the px distribution",100,-4,4);
42 hpx->SetFillColor(48);
44 hpx =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
47 TTree *tree =
new TTree(
"tree",
"tree");
48 tree->SetAutoFlush(4000000);
49 tree->Branch(
"px",&px);
50 tree->Branch(
"py",&py);
54 const int kUPDATE = 1000000;
55 for (
int i = 0; i < 25000000; ) {
56 gRandom->Rannor(px,py);
63 if (i && (i%kUPDATE) == 0) {
70 gBenchmark->Show(
"treeClient");