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++) {
 
  422   TH1F* b_hist  = 
new TH1F(
"b_hist", 
"-2lnQ",50,
h.GetXaxis()->GetXmin(),
h.GetXaxis()->GetXmax());
 
  423   TH1F* sb_hist = 
new TH1F(
"sb_hist",
"-2lnQ",50,
h.GetXaxis()->GetXmin(),
h.GetXaxis()->GetXmax());
 
  424   for (i=0; i<
fNMC; i++) {
 
  429   sb_hist->
Draw(
"Same");
 
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
 
Class to compute 95% CL limits.
 
static const Double_t fgMCL5S2S
 
void SetTSS(Double_t *in)
Set the TSS.
 
static const Double_t fgMCLM2S
 
Double_t GetExpectedCLb_sb(Int_t sigma=0) const
Get the expected Confidence Level for the background only if there is signal and background.
 
void SetTSB(Double_t *in)
Set the TSB.
 
Double_t Get3sProbability() const
Get 3s probability.
 
static const Double_t fgMCLP2S
 
static const Double_t fgMCL3S2S
 
Double_t GetExpectedStatistic_b(Int_t sigma=0) const
Get the expected statistic value in the background only hypothesis.
 
static const Double_t fgMCLP1S
 
static const Double_t fgMCLMED
 
TConfidenceLevel()
Default constructor.
 
Double_t GetExpectedStatistic_sb(Int_t sigma=0) const
Get the expected statistic value in the signal plus background hypothesis.
 
Double_t GetAverageCLs() const
Get average CLs.
 
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 fgMCLM1S
 
Double_t CLsb(bool use_sMC=kFALSE) const
Get the Confidence Level for the signal plus background hypothesis.
 
static const Double_t fgMCL3S1S
 
Double_t Get5sProbability() const
Get 5s probability.
 
virtual ~TConfidenceLevel()
The destructor.
 
Double_t CLb(bool use_sMC=kFALSE) const
Get the Confidence Level for the background only.
 
static const Double_t fgMCL5S1S
 
Double_t GetAverageCLsb() const
Get average CLsb.
 
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...
 
Double_t CLs(bool use_sMC=kFALSE) const
Get the Confidence Level defined by CLs = CLsb/CLb.
 
void Draw(const Option_t *option="")
Display sort of a "canonical" -2lnQ plot.
 
1-D histogram with a float per channel (see TH1 documentation)}
 
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
virtual void Draw(Option_t *option="")
Draw this histogram with options.
 
Short_t Max(Short_t a, Short_t b)
 
Short_t Min(Short_t a, Short_t b)
 
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)