22 TFile *file =
TFile::Open(
"mergedClient.root?pmerge=localhost:1095",
"RECREATE");
41 tree->SetAutoFlush(4000000);
42 tree->Branch(
"px",&px);
50 for (
int i = 0;
i < 25000000; ) {
56 if(tree)
tree->Fill();
R__EXTERN TBenchmark * gBenchmark
R__EXTERN TRandom * gRandom
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
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.
Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsiz=0) override
Write memory objects to this file.
1-D histogram with a float per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
A TTree represents a columnar dataset.