[root] / trunk / hist / hist / src / TConfidenceLevel.cxx Repository:
ViewVC logotype

Log of /trunk/hist/hist/src/TConfidenceLevel.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

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 36150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 7 13:42:41 2010 UTC (4 years, 3 months ago) by rdm
File length: 13960 byte(s)
Diff to previous 27713
fix clang warning (switch condition has boolean value).

Revision 27713 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 7 08:12:02 2009 UTC (5 years, 10 months ago) by brun
File length: 14206 byte(s)
Diff to previous 27707
Revert some of the changes with "<=" instead of "<"

Revision 27707 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 6 19:49:28 2009 UTC (5 years, 10 months ago) by brun
File length: 14187 byte(s)
Diff to previous 27706
More "<=" replaced by "<"

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 22694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 20:23:21 2008 UTC (6 years, 10 months ago) by rdm
File length: 14208 byte(s)
Diff to previous 20882
move hist, histpainter, spectrum and spectrumpainter in the hist package.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 14208 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 14208 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 14265 byte(s)
Diff to previous 17642
remove :$ from tag line

Revision 17642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 2 19:08:39 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 14275 byte(s)
Diff to previous 15181
Move implementation of inline functions calling TMath to the implementation files.

Revision 15181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 15:13:03 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 13846 byte(s)
Diff to previous 15082
one more round of code cleanup: change NULL by 0 in all C++ code.

Revision 15082 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 17 16:37:26 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 13878 byte(s)
Diff to previous 13119
- Coding conventions.

Revision 13119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 3 17:08:32 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 12451 byte(s)
Diff to previous 6766
From Christophe Delaere:
I forgot to check-in this file in the previous fix.

Revision 6766 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 23 20:37:56 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 12312 byte(s)
Diff to previous 6754
Fix problem reported by hp-ux/aCC

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.

Revision 5284 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 13 15:23:56 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 11397 byte(s)
Diff to previous 5222
Patch from Philippe fixing iostream wrong declarations.

Revision 5222 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Sep 6 19:58:00 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/hist/src/TConfidenceLevel.cxx
File length: 11418 byte(s)
Add a new set of classes by Christophe.Delaere@cern.ch to compute 95% CL limits.
 adapted from the mclimit code from Tom Junk

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9