31 Error(
"treeClient",
"Could not establish a connection with the server %s:%d.",
"localhost",9090);
38 sock->
Recv(status, kind);
41 Error(
"treeClient",
"Unexpected server message: kind=%d status=%d\n",kind,status);
45 sock->
Recv(version, kind);
48 Fatal(
"treeClient",
"Unexpected server message: kind=%d status=%d\n",kind,status);
50 Info(
"treeClient",
"Connected to fastMergeServer version %d\n",version);
62 hpx =
new TH1F(
"hpx",
"This is the px distribution",100,-4,4);
65 hpx =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
79 for (
int i = 0; i < 25000000; ) {
87 if (i && (i%kUPDATE) == 0) {
102 sock->
Send(
"Finished");
105 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 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...
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
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 Bool_t IsValid() const
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.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
1-D histogram with a float per channel (see TH1 documentation)}
virtual Long64_t GetEND() const
virtual void SetSeed(UInt_t seed=0)
Set the random generator seed.
void treeClient(Bool_t evol=kFALSE)
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...
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
virtual void WriteTString(const TString &s)
Write TString to TBuffer.
void Reset()
Reset the message buffer so we can use (i.e. fill) it again.
virtual void Close(Option_t *opt="")
Close the socket.
virtual void SetFillColor(Color_t fcolor)
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
2-D histogram with a float per channel (see TH1 documentation)}
virtual const char * GetName() const
Returns name of object.
virtual void WriteInt(Int_t i)
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
R__EXTERN TRandom * gRandom
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
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.
virtual void WriteLong64(Long64_t l)
A TTree object has a header with a name and a title.