10 void padRefresh(
TPad *pad,
int flag=0);
14 c1 =
new TCanvas(
"c1",
"Dynamic Filling Example",200,10,600,900);
19 hpx[0] =
new TH1F(
"hp0",
"Normal histogram",1000,-4,4);
20 hpx[1] =
new TH1K(
"hk1",
"Nearest Neighbour of order 3",1000,-4,4);
21 hpx[2] =
new TH1K(
"hk2",
"Nearest Neighbour of order 16",1000,-4,4,16);
26 gPad->SetFrameFillColor(33);
34 const Int_t kUPDATE = 10;
35 for (
Int_t i = 0; i <= 300; i++) {
37 for (j=0;j<3;j++) {hpx[j]->
Fill(px);}
38 if (i && (i%kUPDATE) == 0) {
43 for (j=0;j<3;j++) hpx[j]->
Fit(
"gaus");
46 void padRefresh(
TPad *pad,
int flag)
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.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Update()
Update pad.
virtual void SetSeed(UInt_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)
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.
TList * GetListOfPrimitives() const
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)