Log of /trunk/hist/hist/inc/TEfficiency.h
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: 10037 byte(s)
Diff to
previous 40548
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
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: 10032 byte(s)
Diff to
previous 39365
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
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: 9793 byte(s)
Diff to
previous 38005
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
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: 9788 byte(s)
Diff to
previous 37134
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
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: 9492 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: 9509 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: 9233 byte(s)
Diff to
previous 36250
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
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: 7427 byte(s)
Diff to
previous 36094
- 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
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: 7426 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
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.