It uses a set of randomly created histograms.
#include <iostream>
using std::cout;
using std::endl;
void limit() {
TH1D* dataHist =
new TH1D(
"data",
"some fake data points",30,-4,4);
for (
Int_t i = 0; i < 25000; i++) {
}
for (
Int_t i = 0; i < 500; i++) {
}
dataHist->
Draw(
"PE1,Same");
c1->GetFrame()->SetFillColor(21);
c1->GetFrame()->SetBorderSize(6);
c1->GetFrame()->SetBorderMode(-1);
cout << "Computing limits... " << endl;
cout <<
"< CLs > : " <<
myconfidence->GetExpectedCLs_b() << endl;
cout <<
"< CLsb > : " <<
myconfidence->GetExpectedCLsb_b() << endl;
cout <<
"< CLb > : " <<
myconfidence->GetExpectedCLb_b() << endl;
cout << endl << "Computing limits with stat systematics... " << endl;
cout << endl << "Computing limits with systematics... " << endl;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TSystem * gSystem
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Class to compute 95% CL limits.
1-D histogram with a double per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
The Histogram stack class.
This class serves as input for the TLimit::ComputeLimit method.
static TConfidenceLevel * ComputeLimit(TLimitDataSource *data, Int_t nmc=50000, bool stat=false, TRandom *generator=nullptr)
void AddLast(TObject *obj) override
Add object in the next empty slot in the array.
Collectable string class.
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).