[root] / trunk / roofit / roostats / src / ToyMCImportanceSampler.cxx Repository:
ViewVC logotype

Log of /trunk/roofit/roostats/src/ToyMCImportanceSampler.cxx

Parent Directory Parent Directory


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

Revision 48992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 28 15:26:26 2013 UTC (21 months, 3 weeks ago) by rdm
File length: 20033 byte(s)
Diff to previous 46081
From Lifeng Sun:
The attached patchset fixes a bunch of typo in the source:
0001-succes-success.patch
0002-preceed-preced.patch
0003-informations-information.patch
0004-childs-children.patch
0005-avaliable-available.patch
0006-writeable-writable.patch
0007-comand-command.patch
0008-unkown-unknown.patch
0009-wierd-weird.patch
0010-wheter-whether.patch
0011-unecessary-unnecessary.patch
0012-splitted-split.patch
0013-registerd-registered.patch
0014-recieve-receive.patch
0015-processsing-processing.patch
0016-ouput-output.patch
0017-mutiple-multiple.patch
0018-lenght-length.patch
0019-interupted-interrupted.patch
0020-independant-independent.patch
0021-inconsistant-inconsistent.patch
0022-expresion-expression.patch
0023-explicitely-explicitly.patch
0024-enviroment-environment.patch
0025-deafult-default.patch
0026-continous-continuous.patch
0027-completly-completely.patch
0028-commited-committed.patch
0029-choosen-chosen.patch
0030-backgroud-background.patch
0031-auxilliary-auxiliary.patch
0032-authentification-authentication.patch
0033-appropiate-appropriate.patch
0034-an-other-another.patch
0035-environement-environment.patch
0036-targetting-targeting.patch
0037-suppported-supported.patch
0038-paramater-parameter.patch

Revision 46081 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 13:34:46 2012 UTC (2 years, 4 months ago) by moneta
File length: 20034 byte(s)
Diff to previous 44449
implement the possibility to pass the ConditionalObservables when creating the NLL or doing a fit
In this case the NLL will be computed by normalizing only on the observables and excluding the fglobal observables. 
See http://root.cern.ch/phpBB3/viewtopic.php?f=15&t=15312

Revision 44449 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 1 10:05:19 2012 UTC (2 years, 7 months ago) by moneta
File length: 19824 byte(s)
Diff to previous 44428
another attempt to fix Windows (use get/setDefaultStorageType )

Revision 44428 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 1 08:08:39 2012 UTC (2 years, 7 months ago) by moneta
File length: 19814 byte(s)
Diff to previous 44366
apply patch provided by Tim Adye: 


1) Save fit errors in detailed outputs' RooRealVars, rather than as separate
variables. If withErrorsAndPulls is specified, the asymmetric errors are also
saved. Work round bug #94908 by using RooTreeDataStore in
DetailedOutputAggregator and ToyMCImportanceSampler (can be removed when #94908
is fixed).

2) Fix detailed output dataset name and variable order (dsname_TS0 should be
first variable). Previously SamplingDistributions from importance sampling were
wrong (taken from the first global observable!).

3) Make detailed output for data available via
HypoTestResult::GetAllTestStatisticsData().

4) Don't save detailed output in HypoTestResult if it was not requested.

5) Rationalised the saving and restoring of parameters in ToyMCSampler. The POI
value in the workspace is not overwritten before calling the test stat (restores
behaviour from 5.32).

6) Remove unnecessary dataset copy in ToyMCImportanceSampler.

7) Fix ToyMCImportanceSampler double->int compiler warnings.

8) Fix minor memory leaks in HypoTestCalculatorGeneric, ToyMCSampler, and
ProfileLikelihoodTestStat.

9) Update streamer so PiecewiseInterpolation::setAllInterpCodes works for
objects created with ROOT 5.30.

Revision 44366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 30 15:32:27 2012 UTC (2 years, 7 months ago) by axel
File length: 19495 byte(s)
Diff to previous 44266
Remove #include "Riostream.h" from roofitcore/inc/RooCacheManager.h, which pulls in using namespace std.
Deal with the consequences.

Revision 44266 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 16 12:32:18 2012 UTC (2 years, 8 months ago) by moneta
File length: 19474 byte(s)
Diff to previous 44034
apply some Coverity fixes
improve some error messaging in AsymptoticCalculator and automatically set onesideddiscovery if null snapshot is equal to minimum of parameter at construction time

Revision 44034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 14:54:15 2012 UTC (2 years, 8 months ago) by moneta
File length: 19467 byte(s)
Diff to previous 43200
Verious fixes for outstanding Coverity issues (mainly add check of returned pointers to avoid  to dereference them)

Revision 43200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 20:31:10 2012 UTC (2 years, 10 months ago) by moneta
File length: 19325 byte(s)
Diff to previous 43199
try to fix some compilation errors in Solaris

Revision 43199 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 20:17:42 2012 UTC (2 years, 10 months ago) by moneta
File length: 19261 byte(s)
Copied from: branches/dev/roostats/roofit/roostats/src/ToyMCImportanceSampler.cxx revision 43195
Diff to previous 43026
merge from the roostats development branch the new developments from Sven Kreiss:

 new ToyMCImportanceSampler 
 new  version of the ToyMCSampler that can use multiple test statistics and "detailed output" of those test statistics.
 extension to the FrequentistCalculator that allows the user to manually specify the values for the signal nuisance parameters using SetConditionalMLEsNull/Alt().
 
 make  HypoTestResult managing now the  SamplingDIstribution for null and alt

Revision 43026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 16 11:40:31 2012 UTC (2 years, 11 months ago) by sven
Original Path: branches/dev/roostats/roofit/roostats/src/ToyMCImportanceSampler.cxx
File length: 19261 byte(s)
Diff to previous 42983
Use RooMsgService everywhere in ToyMCImportanceSampler. Increase debug level of some messages in ProfileLikelihoodTestStat.

Revision 42983 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Feb 13 12:49:05 2012 UTC (2 years, 11 months ago) by sven
Original Path: branches/dev/roostats/roofit/roostats/src/ToyMCImportanceSampler.cxx
File length: 19077 byte(s)
This is the second commit: adding ToyMCImportanceSampler and all related changes.

New: ToyMCImportanceSampler.cxx/h
Changed backend: ToyMCSampler.cxx/h, ToyMCStudy.cxx/h


TestStatistic.h:
- new function:
     // return detailed output: for fits this can be pulls, processing time, ...
      virtual const RooArgSet* GetDetailedOutput() const { return NULL; }

ProfileLikelihoodTestStat:
- OneSidedDiscovery option
- detailed output
- manually set TS label
- new functions:
     void SetOneSidedDiscovery(Bool_t flag=true)
     virtual void SetVarName(const char* name) { fVarName = name; }
     virtual const TString GetVarName() const {return fVarName;}
     virtual void EnableDetailedOutput( bool e=true )
     virtual const RooArgSet* GetDetailedOutput(void) const

SimpleLikelihoodRatioTestStat:
- new functions:
      virtual void EnableDetailedOutput( bool e=true )
      virtual const RooArgSet* GetDetailedOutput(void) const

ToyMCSampler:
- removed importance sampling methods from ToyMCSampler and moved to ToyMCImportanceSampler
- for multiple test statistics:
     virtual void SetTestStatistic(TestStatistic *testStatistic, unsigned int i)
     virtual TestStatistic* GetTestStatistic(unsigned int i) const
     virtual RooArgList* EvaluateAllTestStatistics(RooAbsData& data, RooArgSet& nullPOI)
     virtual Double_t EvaluateTestStatistic(RooAbsData& data, RooArgSet& nullPOI, int i )
     virtual void AddTestStatistic(TestStatistic* t = NULL)
     
     virtual RooDataSet* GetSamplingDistributions(RooArgSet& paramPoint);
     virtual RooDataSet* GetSamplingDistributionsSingleWorker(RooArgSet& paramPoint);

HybridCalculator and FrequentistCalculator:
- importance sampling options no longer required

HypoTestCalculatorGeneric.cxx:
- collect detailed output if present

HypoTestResult.cxx/h:
- new functions:
      // copy constructor
      HypoTestResult(const HypoTestResult& other);

      RooDataSet* GetNullDetailedOutput(void) const
      RooDataSet* GetAltDetailedOutput(void) const

      const RooArgList* GetAllTestStatisticsData(void) const

      void SetAltDetailedOutput(RooDataSet* d)
      void SetNullDetailedOutput(RooDataSet* d)
      void SetAllTestStatisticsData(const RooArgList* tsd)

FrequentistCalculator.cxx/h:
- new functions:
      void SetConditionalMLEsNull( const RooArgSet* c )
      void SetConditionalMLEsAlt( const RooArgSet* c )

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