36 hpx->SetFillColor(48);
37 hpx->SetDirectory(
nullptr);
38 TH2D *hpxpy =
new TH2D(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
41 if (
gSystem->AccessPathName(
"auth.txt") != 0) {
42 printf(
"Please start macro from directory where auth.txt file is available\n");
43 printf(
"It required to supply authentication information for the http server\n");
73 serv->
RegisterCommand(
"/ResetHPX",
"/hpx/->Reset();",
"button;rootsys/icons/ed_delete.png");
75 serv->
RegisterCommand(
"/ResetHPXPY",
"/hpxpy/->Reset();",
"button;rootsys/icons/bld_delete.png");
76 serv->
SetItemField(
"/ResetHPXPY",
"_update_item",
"hpxpy");
78 serv->
RegisterCommand(
"/RebinHPX",
"/hpx/->Rebin(%arg1%);",
"button;rootsys/icons/ed_execute.png");
83 serv->
Restrict(
"/ResetHPX",
"visible=admin");
84 serv->
Restrict(
"/ResetHPXPY",
"visible=admin");
88 serv->
Restrict(
"/RebinHPX",
"allow=admin");
102 if (
gSystem->ProcessEvents())
break;
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
float Float_t
Float 4 bytes (float).
1-D histogram with a double per channel (see TH1 documentation)
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
2-D histogram with a double per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
Online http server for arbitrary ROOT application.
Bool_t RegisterCommand(const char *cmdname, const char *method, const char *icon=nullptr)
Register command which can be executed from web interface.
Bool_t Register(const char *subfolder, TObject *obj)
Register object in subfolder.
Bool_t SetItemField(const char *fullname, const char *name, const char *value)
Set item field in sniffer.
void Restrict(const char *path, const char *options)
Restrict access to specified object.
Random number generator class based on M.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.