ROOT  6.06/09
Reference Guide
TestStatistic.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id$
2 // Author: Kyle Cranmer, Lorenzo Moneta, Gregory Schott, Wouter Verkerke
3 /*************************************************************************
4  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOSTATS_TestStatistic
12 #define ROOSTATS_TestStatistic
13 
14 
15 
16 
17 #ifndef ROOT_Rtypes
18 #include "Rtypes.h"
19 #endif
20 
21 class RooArgSet;
22 class RooAbsData;
23 
24 namespace RooStats {
25 
26 /**
27  TestStatistic is an interface class to provide a facility for construction test statistics
28  distributions to the NeymanConstruction class. All the actual samplers inherit from this class.
29 
30  \ingroup Roostats
31 */
32 
34 
35  public:
36  //TestStatistic();
37  virtual ~TestStatistic() {
38  }
39 
40  /// Main interface to evaluate the test statistic on a dataset given the
41  /// values for the Null Parameters Of Interest.
42  virtual Double_t Evaluate(RooAbsData& data, RooArgSet& nullPOI) = 0;
43 
44  virtual const TString GetVarName() const = 0;
45 
46  /// Defines the sign convention of the test statistic. Overwrite function if necessary.
47  virtual bool PValueIsRightTail(void) const { return true; }
48 
49  /// return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate.
50  virtual const RooArgSet* GetDetailedOutput() const { return NULL; }
51 
52  protected:
53  ClassDef(TestStatistic,1) /// Interface for a TestStatistic
54 };
55 
56 } // end namespace RooStats
57 
58 
59 #endif
virtual bool PValueIsRightTail(void) const
Defines the sign convention of the test statistic. Overwrite function if necessary.
Definition: TestStatistic.h:47
Basic string class.
Definition: TString.h:137
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual const RooArgSet * GetDetailedOutput() const
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will no...
Definition: TestStatistic.h:50
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)=0
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
Namespace for the RooStats classes.
Definition: Asimov.h:20
double Double_t
Definition: RtypesCore.h:55
virtual const TString GetVarName() const =0
#define NULL
Definition: Rtypes.h:82
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Definition: TestStatistic.h:33