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);
83 for (
int i = 0; i < 25000000; ) {
91 if (i && (i%kUPDATE) == 0) {
95 mess.WriteTString(file->
GetName());
96 mess.WriteLong64(file->
GetEND());
99 messlen += mess.Length();
100 cmesslen += mess.CompLength();
106 sock->
Send(
"Finished");
109 printf(
"Average compression ratio: %g\n", messlen/cmesslen);
void ResetAfterMerge(TFileMergeInfo *)
Wipe all the data from the permanent buffer but keep, the in-memory object alive. ...
virtual const char * GetName() const
Returns name of object.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual Bool_t IsValid() const
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
void Fatal(const char *location, const char *msgfmt,...)
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
virtual Int_t Fill()
Fill all branches.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
A TMemFile is like a normal TFile except that it reads and writes only from memory.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void SetAutoFlush(Long64_t autof=-30000000)
This function may be called at the start of a program to change the default value for fAutoFlush...
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
virtual void Close(Option_t *opt="")
Close the socket.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0)
Write memory objects to this file.
R__EXTERN TBenchmark * gBenchmark
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
R__EXTERN TRandom * gRandom
virtual Long64_t GetEND() const
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
A TTree object has a header with a name and a title.
virtual Long64_t CopyTo(void *to, Long64_t maxsize) const
Copy the binary representation of the TMemFile into the memory area starting at 'to' and of length at...
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F