11 void padRefresh(
TPad *pad,
int flag=0)
33 hpx[0] =
new TH1F(
"hp0",
"Normal histogram",1000,-4,4);
34 hpx[1] =
new TH1K(
"hk1",
"Nearest Neighbour of order 3",1000,-4,4);
35 hpx[2] =
new TH1K(
"hk2",
"Nearest Neighbour of order 16",1000,-4,4,16);
48 for (
Int_t i = 0; i <= 300; i++) {
50 for (j=0;j<3;j++) {hpx[j]->
Fill(px);}
51 if (i && (i%kUPDATE) == 0) {
56 for (j=0;j<3;j++) hpx[j]->
Fit(
"gaus");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
TList * GetListOfPrimitives() const
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Update()
Update pad.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
The most important graphics class in the ROOT system.
R__EXTERN TRandom * gRandom
TH1K class supports the nearest K Neighbours method, widely used in cluster analysis.
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Mother of all ROOT objects.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
void Modified(Bool_t flag=1)