35 Error(
"treeClient",
"Could not establish a connection with the server %s:%d.",
"localhost",9090);
41 Int_t status, version, kind;
42 sock->
Recv(status, kind);
45 Error(
"treeClient",
"Unexpected server message: kind=%d status=%d\n",kind,status);
49 sock->
Recv(version, kind);
52 Fatal(
"treeClient",
"Unexpected server message: kind=%d status=%d\n",kind,status);
54 Info(
"treeClient",
"Connected to fastMergeServer version %d\n",version);
66 hpx =
new TH1F(
"hpx",
"This is the px distribution",100,-4,4);
69 hpx =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
73 tree->SetAutoFlush(4000000);
74 tree->Branch(
"px",&px);
75 tree->Branch(
"py",&py);
83 for (
int i = 0; i < 25000000; ) {
95 mess.WriteTString(
file->GetName());
96 mess.WriteLong64(
file->GetEND());
99 messlen += mess.Length();
100 cmesslen += mess.CompLength();
102 file->ResetAfterMerge(
nullptr);
106 sock->
Send(
"Finished");
109 printf(
"Average compression ratio: %g\n", messlen/cmesslen);
R__EXTERN TBenchmark * gBenchmark
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
R__EXTERN TRandom * gRandom
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
1-D histogram with a float per channel (see TH1 documentation)}
TH1 is the base class of all histogram classes in ROOT.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
2-D histogram with a float per channel (see TH1 documentation)}
A TMemFile is like a normal TFile except that it reads and writes only from memory.
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
virtual void Close(Option_t *opt="")
Close the socket.
virtual Bool_t IsValid() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
A TTree represents a columnar dataset.