192 if(clb==0) { std::cout <<
"Warning: clb = 0 !" << std::endl;
return 0;}
193 else return clsb/clb;
307 result = (i + 1) /
double (fNMC);
314 result = (i + 1) / double (fNMC);
321 result = (i + 1) /
double (fNMC);
328 result = (i + 1) / double (fNMC);
335 result = (i + 1) /
double (fNMC);
352 result += psumsb /
fNMC;
367 result += ((psumsb /
fNMC) / ((i + 1) /
fNMC));
416 TH1F h(
"TConfidenceLevel_Draw",
"",50,0,0);
418 for (i=0; i<
fNMC; i++) {
424 for (i=0; i<
fNMC; i++) {
429 sb_hist->Draw(
"Same");
430 sb_hist->SetLineStyle(3);
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
static const Double_t fgMCL5S1S
Double_t GetExpectedCLb_b(Int_t sigma=0) const
Get the expected Confidence Level for the background only if there is only background.
static const Double_t fgMCL3S1S
Double_t GetAverageCLs() const
Get average CLs.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
Double_t Get3sProbability() const
Get 3s probability.
tomato 1-D histogram with a float per channel (see TH1 documentation)}
Short_t Min(Short_t a, Short_t b)
static const Double_t fgMCLMED
static const Double_t fgMCLM2S
Double_t GetExpectedCLsb_b(Int_t sigma=0) const
Get the expected Confidence Level for the signal plus background hypothesis if there is only backgrou...
static const Double_t fgMCLM1S
static const Double_t fgMCLP1S
Double_t Get5sProbability() const
Get 5s probability.
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
static const Double_t fgMCL5S2S
TConfidenceLevel()
Default constructor.
Double_t GetExpectedCLb_sb(Int_t sigma=0) const
Get the expected Confidence Level for the background only if there is signal and background.
Class to compute 95% CL limits.
void SetTSS(Double_t *in)
Set the TSS.
void SetTSB(Double_t *in)
Set the TSB.
static const Double_t fgMCLP2S
Double_t CLb(bool use_sMC=kFALSE) const
Get the Confidence Level for the background only.
void Draw(const Option_t *option="")
Display sort of a "canonical" -2lnQ plot.
Double_t CLsb(bool use_sMC=kFALSE) const
Get the Confidence Level for the signal plus background hypothesis.
Double_t CLs(bool use_sMC=kFALSE) const
Get the Confidence Level defined by CLs = CLsb/CLb.
virtual ~TConfidenceLevel()
The destructor.
static const Double_t fgMCL3S2S
Short_t Max(Short_t a, Short_t b)
Double_t GetAverageCLsb() const
Get average CLsb.
Double_t GetExpectedStatistic_sb(Int_t sigma=0) const
Get the expected statistic value in the signal plus background hypothesis.
Double_t GetExpectedStatistic_b(Int_t sigma=0) const
Get the expected statistic value in the background only hypothesis.