33void httpserver(
const char* jobname =
"job1",
Long64_t maxcnt = 0)
36 TFile *hfile =
new TMemFile(filename,
"RECREATE",
"Demo ROOT file with histograms");
39 TH1F *hpx =
new TH1F(
"hpx",
"This is the px distribution",100,-4,4);
41 TH2F *hpxpy =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
42 TProfile *hprof =
new TProfile(
"hprof",
"Profile of pz versus px",100,-4,4,0,20);
43 TNtuple *ntuple =
new TNtuple(
"ntuple",
"Demo ntuple",
"px:py:pz:random:i");
68 c1->GetFrame()->SetFillColor(21);
69 c1->GetFrame()->SetBorderSize(6);
70 c1->GetFrame()->SetBorderMode(-1);
87 if (i<25000) ntuple->
Fill(px,py,pz,rnd,i);
97 if ((maxcnt>0) && (i>=maxcnt))
break;
R__EXTERN TBenchmark * gBenchmark
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
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.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
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)}
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.
void SetReadOnly(Bool_t readonly=kTRUE)
Set read-only mode for the server (default on) In read-only server is not allowed to change any ROOT ...
A TMemFile is like a normal TFile except that it reads and writes only from memory.
A simple TTree restricted to a list of float variables only.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
Int_t Fill(const Double_t *v)
Random number generator class based on M.
virtual Double_t Rndm()
Machine independent random number generator.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).