Log of /trunk/hist/hist/src/TConfidenceLevel.cxx
Parent Directory
Revision
44507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by
axel
File length: 13970 byte(s)
Diff to
previous 36150
Remove
using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.
Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.
Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.
Revision
27706 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 6 17:44:57 2009 UTC (5 years, 10 months ago) by
brun
File length: 14204 byte(s)
Diff to
previous 22694
From Chad Johnson:
I think there might be a bug in the way the CLs method is implemented in TLimit. Refer to the plot that I've attached in which the red line is the observed value of -2LnQ, the dashed histogram is the signal + background distribution (sb_hist) and the solid histogram is the background distribution (b_hist). In TLimit, the function CLb returns the normalized integral of b_hist from 0 to the observed value of -2LnQ (non-inclusive). However, I think it should return -2LnQ inclusive since 1-CLb should be the p-value. In my example, nobs=1, nsig=.693 and nbkg=.1 One would expect a p-value of about 7.5% (from a Poisson distribution) but if you do not include the bin in which -2LnQ sits you only get .5%. If you do include the bin, then you get 9.5%. This is only an issue when the number of background events is small.
This can be rectified in TConfidenceLevel::CLb. The comparisons,
"if (fTSB[fISB[i]] <= fTSD)" and " if (fTSS[fISS[i]] <= fTSD)" should just have "<" instead of "<=".
Revision
6754 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 23 06:11:01 2003 UTC (11 years, 7 months ago) by
brun
Original Path:
trunk/hist/src/TConfidenceLevel.cxx
File length: 12312 byte(s)
Diff to
previous 5284
dd a new function TConfidenceLevel::Draw suggested by Christophe Delaere.
// Display sort of a "canonical" -2lnQ plot.
// This results in a plot with 2 elements:
// - The histogram of -2lnQ for background hypothesis (full)
// - The histogram of -2lnQ for signal and background hypothesis (dashed)
// The 2 histograms are respectively named b_hist and sb_hist.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.