22 TF1 *gam =
new TF1(
"gam",
"1/(1+0.1*x*0.1*x)", -100., 100.);
23 TF1 *gam1 =
new TF1(
"gam",
"1/(1+0.1*x*0.1*x)", -1., .25);
24 TF1 *iga =
new TF1(
"inv gam",
"1.-1/(1+0.1*x*0.1*x)", -100., 100.);
25 TF1 *iga1 =
new TF1(
"inv gam",
"1.-1/(1+0.1*x*0.1*x)", -.5, 1.);
27 void fillhistosauto2p(
unsigned opt = 1,
unsigned n = 1001)
36 auto href =
new TH1D(
"myhref",
"current", 50, 0., -1.);
37 href->SetBuffer(bsize);
40 auto href2 =
new TH1D(
"myhref",
"Auto P2, sequential", 50, 0., -1.);
42 href2->SetBuffer(bsize);
49 for (
UInt_t j = 0; j < nh; ++j) {
53 auto hw =
new TH1D(hname.
Data(),
"Auto P2, merged", nbins, 0., -1.);
60 for (
UInt_t i = 0; i <
n; ++i) {
64 case 1: xx = rndm.Gaus(3, 1);
break;
65 case 2: xx = rndm.Rndm() * 100. - 50.;
break;
70 default: xx = rndm.Gaus(0, 1);
83 if (!hw->GetBuffer()) {
105 if (!h0->
Merge(hlist))
110 if (
gROOT->GetListOfCanvases()->FindObject(
"c3"))
111 delete gROOT->GetListOfCanvases()->FindObject(
"c3");
119 href2->StatOverflows();
123 href->StatOverflows();
126 std::cout <<
" ent: " << h0->
GetEntries() <<
"\n";
static void StatOverflows(Bool_t flag=kTRUE)
if flag=kTRUE, underflows and overflows are used by the Fill functions in the computation of statisti...
virtual void Print(Option_t *option="") const
Print some global quantities for this histogram.
virtual Double_t GetRandom()
Return a random number following this function shape.
Random number generator class based on M.
virtual TObject * DrawClone(Option_t *option="") const
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad...
R__EXTERN TStyle * gStyle
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Use Power(2)-based algorithm for autobinning.
Statistical variable, defined by its mean and variance (RMS).
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
1-D histogram with a double per channel (see TH1 documentation)}
virtual Double_t GetEntries() const
Return the current number of entries.
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.
virtual void Add(TObject *obj)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
virtual void Update()
Update canvas pad buffers.
virtual Long64_t Merge(TCollection *list)
Add all histograms in the collection to this histogram.
const char * Data() const