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

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

Parent Directory Parent Directory


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

Revision 48325 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 10:32:26 2013 UTC (2 years ago) by moneta
File length: 136296 byte(s)
Diff to previous 44651
fix for Coverity

Revision 44651 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 11 15:48:56 2012 UTC (2 years, 7 months ago) by moneta
File length: 136345 byte(s)
Diff to previous 44507
fix a bug in computing efficiency and its erros in case the histograms are weighted and have zero errors

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: 136291 byte(s)
Diff to previous 44011
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 44011 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 06:14:15 2012 UTC (2 years, 8 months ago) by moneta
File length: 136286 byte(s)
Diff to previous 43828
fixes for Coverity (UNINIT and memory leak)

Revision 43828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 18 16:48:30 2012 UTC (2 years, 9 months ago) by moneta
File length: 136266 byte(s)
Diff to previous 43827
update comments and remove a debug line

Revision 43827 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 18 16:39:09 2012 UTC (2 years, 9 months ago) by moneta
File length: 136162 byte(s)
Diff to previous 43691
- add always the option "P" when drawing TEfficiency objects 
 (and also "A" when the option "same" is not used")

see https://savannah.cern.ch/bugs/index.php?91223

- fix setting of the TEfficiency title when one uses as title string also the axis titles

see https://savannah.cern.ch/bugs/index.php?91224

Revision 43691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 10 18:34:14 2012 UTC (2 years, 9 months ago) by moneta
File length: 135726 byte(s)
Diff to previous 40845
use TH1::kNstat  (fix for bug https://savannah.cern.ch/bugs/index.php?93001

Revision 40845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 12 13:36:57 2011 UTC (3 years, 4 months ago) by moneta
File length: 135690 byte(s)
Diff to previous 40548
fix a bug in deleting function lists in TEfficiency destructor

Revision 40548 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 11 10:34:29 2011 UTC (3 years, 5 months ago) by moneta
File length: 135451 byte(s)
Diff to previous 39389
from Christian Gumpert: 

 -  new version of TEfficiency class with support for weights (histograms with non-integer counts)
 - update TEfficiency::SavePrimitive to store also the set bits
 - list holding the associated functions is created only on demand
 - default constructor creates two dummy histograms

 - add in TGraphAsymErrors::Divide support for intervals in case  of ratio of two Poisson variables

Revision 39389 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 26 09:20:24 2011 UTC (3 years, 8 months ago) by moneta
File length: 127749 byte(s)
Diff to previous 39369
- Add support for weighted likelihood fit of histogram (new option WL) and suppress old option LL 
 https://savannah.cern.ch/bugs/?79754

- fix a bug in TEfficiency::BetaShortestInterval when a=b=1

- remove in TH1::FindNewAxisLimits condition added in http://root.cern.ch/viewvc?view=rev&revision=11117
 which does not seem to make sense. Some tests of merging histogram was failing in some particular cases due to that 
 code

Revision 39369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 20:52:30 2011 UTC (3 years, 8 months ago) by pcanal
File length: 127748 byte(s)
Diff to previous 39365
Fix compiler warning

Revision 39365 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 19:53:19 2011 UTC (3 years, 8 months ago) by pcanal
File length: 127738 byte(s)
Diff to previous 39087
Remove hard dependencies of TFileMerger on TH1 and TTree.
(Soft dependencies still exist to be able to disable the
merging of TTrees and to be able to disable the AutoAdd
behavior of TH1).

Introduce new explicit interface for providing merging 
capability.  If a class has a method with the name and 
signature:

   Long64_t Merge(TCollection *input, TFileMergeInfo*);

it will be used by a TFileMerger to merge one or more
other objects into the current object.   Merge should
return a negative value if the merging failed.

If this method does not exist, the TFileMerger will use
a method with the name and signature:

   Long64_t Merge(TColletion *input);

TClass now provides a quick access to these merging 
function via TClass::GetMerge.   The wrapper function
is automatically created by rootcint and can be installed
via TClass::SetMerge.   The wrapper function should have
the signature/type ROOT::MergeFunc_t:

   Long64_t (*)(void *thisobj, TCollection *input, TFileMergeInfo*);

Added the new Merge function to TTree and THStack.
Also add the new Merge function to TQCommand as the
existing TQCommand::Merge does _not_ have the right
semantic (in part because TQCommand is a collection). 
Fix the return value of TEfficiency::Merge

In TFileMerger, add a PrintLevel to allow hadd to request
more output than regular TFileMerger.

The object TFileMergeInfo can be used inside the Merge
function to pass information between runs of the Merge
(see below).  In particular it contains:

   TDirectory  *fOutputDirectory;  // Target directory where the merged object will be written.
   Bool_t       fIsFirst;          // True if this is the first call to Merge for this series of object.
   TString      fOptions;          // Additional text based option being passed down to customize the merge.
   TObject     *fUserData;         // Place holder to pass extra information.  This object will be deleted at the end of each series of objects.
   
The default in TFileMerger is to call Merge for every object
in the series (i.e the collection has exactly one element) in
order to save memory (by not having all the object in memory 
at the same time).

However for histograms, the default is to first load all the
objects and then merge them in one go ; this is customizable
when creating the TFileMerger object.

Revision 39087 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 4 09:57:59 2011 UTC (3 years, 8 months ago) by moneta
File length: 127656 byte(s)
Diff to previous 38826
improve a Info message

Revision 38826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 15:22:56 2011 UTC (3 years, 9 months ago) by moneta
File length: 127653 byte(s)
Diff to previous 38822
remove implicity dependency on a MathMore header file

Revision 38822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 13:38:58 2011 UTC (3 years, 9 months ago) by moneta
File length: 127673 byte(s)
Diff to previous 38821
fix a comment

Revision 38821 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 13:37:25 2011 UTC (3 years, 9 months ago) by moneta
File length: 127674 byte(s)
Diff to previous 38014
- add a message explaining reason why consistency check failed for the histogram

- fix a numerical problem in the Chi2Test observed on 32 bits

Revision 38014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 9 09:32:53 2011 UTC (3 years, 11 months ago) by moneta
File length: 127026 byte(s)
Diff to previous 37982
fix a problem in the documentation

Revision 37982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 4 15:07:02 2011 UTC (3 years, 11 months ago) by moneta
File length: 127026 byte(s)
Diff to previous 37701
update TEfficiency class to implement: 

 DistanceToPrimitvie
 ExecuteEvent

- add also methods to returned the drawn graph (1D) or histogram (2D)

- fix the TEfficiency::Paint to not re-compute and re-create the axis each time. In this way the axis 
range can be set externally by the user. 
Clicking on the object now also works

Revision 37701 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 4 10:01:40 2011 UTC (4 years ago) by moneta
File length: 124115 byte(s)
Diff to previous 37571
fix a bug in TEfficiency::Draw for 2D histograms

see http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=11858

Revision 37571 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 13 16:02:43 2010 UTC (4 years, 1 month ago) by moneta
File length: 123228 byte(s)
Diff to previous 37134
fix bug in TEfficienc::FeldmanCousinsInterval : the returned lower/upper value were inverted

Revision 37134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 1 08:50:51 2010 UTC (4 years, 1 month ago) by moneta
File length: 123227 byte(s)
Diff to previous 36767
fix using default "AP" in TEfficiency::Draw. 
Cannot re-defined default argument in TEfficiency.h since it is already defined in TObject.h

Revision 36767 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 19 10:22:55 2010 UTC (4 years, 2 months ago) by moneta
File length: 123166 byte(s)
Diff to previous 36510
add new method TEfficiency::FeldmanCousins  which computes the binomial interval using the FC method
 - impelmentation is done in the file TEfficiencyHelper.h which uses the classes from Luca Lista and Jordan Tucker imported from CMSSW

Revision 36510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 5 09:35:46 2010 UTC (4 years, 2 months ago) by moneta
File length: 120340 byte(s)
Diff to previous 36282
new version of TEfficiency calss which can compute in the case of Bayesian statistics the shortest interval. 
Add also possibility (as requested by Diego) to have bet aprior parameters different bin by bin

modify TGraphAsymmErrors to have BayesDivide returning mode+shortest interval as it was previously 
(before 5.27.06)
This should fix https://savannah.cern.ch/bugs/?74056

Revision 36282 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 11 09:10:37 2010 UTC (4 years, 3 months ago) by moneta
File length: 111163 byte(s)
Diff to previous 36252
fix last three Coverity defects, coming from the last commits

Revision 36252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 10:41:47 2010 UTC (4 years, 3 months ago) by moneta
File length: 110627 byte(s)
Diff to previous 36250
fix coverity issue 22837

Revision 36250 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 10:32:04 2010 UTC (4 years, 3 months ago) by moneta
File length: 110627 byte(s)
Diff to previous 36238
 - use option E0 instead of empty for drawing empty bins (to be compatible with TH1 options)
   and fix its usage. Return also [0,1] as error interval in case of total=0
 - plot in BayesDivide the mode instead of the mean
 - remove option "N" in Combine. It is not needed aanymore

Revision 36238 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 08:57:51 2010 UTC (4 years, 3 months ago) by moneta
File length: 111326 byte(s)
Diff to previous 36220
from Axel: 
Coverity fix: options != 0 was checked in PrintEntries() but not in PrintBin().

Revision 36220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 9 11:01:05 2010 UTC (4 years, 3 months ago) by moneta
File length: 111318 byte(s)
Diff to previous 36193
fix problem with documentation.
Remove code for ald Combine method which was appearing still in the doc

Revision 36193 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 8 12:57:24 2010 UTC (4 years, 3 months ago) by moneta
File length: 115584 byte(s)
Diff to previous 36099
- fix operator += in case default constructor was previously used.  
- update documentation for combination

Revision 36099 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 6 07:43:25 2010 UTC (4 years, 3 months ago) by moneta
File length: 114733 byte(s)
Diff to previous 36095
fix documentation of the class

Revision 36095 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 20:48:26 2010 UTC (4 years, 3 months ago) by moneta
File length: 114205 byte(s)
Diff to previous 36094
add missing include file

Revision 36094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 20:44:26 2010 UTC (4 years, 3 months ago) by moneta
File length: 114185 byte(s)
Diff to previous 35824
improve TEfficiency class by adding: 
 - option to display mode instead of expected value for Bayesian statistics
 - skip display of bins with total=0 by default (as requested by Diego)
   Empty bins can be displayed with option "empty"
 - add same options also in TGraphAsymErrors

 - fix Combination using weights. Use a new method based on the weighted  likelihood combination and obtain the resulting posterior function

Revision 35824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 28 09:13:10 2010 UTC (4 years, 3 months ago) by moneta
File length: 109364 byte(s)
Diff to previous 35318
from Christian: fixes in Combine  and add SaveAsPrimitive method

Revision 35318 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 08:54:25 2010 UTC (4 years, 4 months ago) by moneta
File length: 99269 byte(s)
Diff to previous 35292
fix for bug https://savannah.cern.ch/bugs/?72672
when using Divide without specifying an ioption. Use now by default Clopper Pearson with 0.683 CL 

Fix various bugs find by coverity in manipulating strings. 
Modify code to use  TString class instead of C strings

Revision 35292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 15 07:47:52 2010 UTC (4 years, 4 months ago) by moneta
File length: 99649 byte(s)
Diff to previous 35272
update THtml doc: add link to images in Drupal

Revision 35272 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 12:43:10 2010 UTC (4 years, 4 months ago) by moneta
File length: 99271 byte(s)
Diff to previous 35227
from Christian: create always a list of functions

Revision 35227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 14:29:14 2010 UTC (4 years, 4 months ago) by moneta
File length: 99273 byte(s)
Copied from: branches/dev/mathDev/hist/hist/src/TEfficiency.cxx revision 35151
Diff to previous 35149
merge from development branch new TEfficiency class from Christian Gumpert

and : 

 - make TH1::FindFixBin const

Revision 35149 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Sep 6 07:26:25 2010 UTC (4 years, 4 months ago) by moneta
Original Path: branches/dev/mathDev/hist/hist/src/TEfficiency.cxx
File length: 59331 byte(s)
add new efficiency class from Christian Gumpert

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