17 void parallelMergeTest(UInt_t nhist, UInt_t ndims = 1, UInt_t nbins = 100)
20 gBenchmark->Start(
"parallelMergeTest");
22 TFile *file = TFile::Open(
"mergedClient.root?pmerge=localhost:1095",
"RECREATE");
28 for(UInt_t h = 0 ; h < nhist; ++h) {
29 new TH1F(TString::Format(
"hpx%d",h),
"This is the px distribution",nbins,-4,4);
34 for(UInt_t h = 0 ; h < nhist; ++h) {
35 new TH2F(TString::Format(
"hpxy%d",h),
"py vs px",nbins,-4,4,nbins,-4,-4);
40 tree =
new TTree(
"tree",
"tree");
41 tree->SetAutoFlush(4000000);
42 tree->Branch(
"px",&px);
43 tree->Branch(
"py",&py);
49 const int kUPDATE = 1000000;
50 for (
int i = 0; i < 25000000; ) {
56 if(tree) tree->Fill();
58 if (i && (i%kUPDATE) == 0) {
65 gBenchmark->Show(
"parallelMergeTest");