ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dhidas/DeanCLsExample/interface/StandardHypoTestInvDemo.h
(Generate patch)

Comparing UserCode/dhidas/DeanCLsExample/interface/StandardHypoTestInvDemo.h (file contents):
Revision 1.1.1.1 by dhidas, Thu Sep 29 14:52:09 2011 UTC vs.
Revision 1.2 by dhidas, Mon Oct 15 15:35:21 2012 UTC

# Line 28 | Line 28
28   #include "RooStats/HypoTestInverterResult.h"
29   #include "RooStats/HypoTestInverterPlot.h"
30  
31 < // internal routine to run the inverter
32 < RooStats::HypoTestInverterResult* RunInverter(RooWorkspace * w, const char * modelSBName, const char * modelBName, const char * dataName,
33 <                                     int type,  int testStatType, int npoints, double poimin, double poimax, int ntoys,
34 <                                     bool useCls, bool useNumberCounting, const char * nuisPriorName);
35 <
36 < void StandardHypoTestInvDemo(const char * fileName =0,
37 <                             const char * wsName = "combined",
38 <                             const char * modelSBName = "ModelConfig",
39 <                             const char * modelBName = "",
40 <                             const char * dataName = "obsData",                
41 <                             int calculatorType = 0,
42 <                             int testStatType = 3,
43 <                             bool useCls = true ,  
44 <                             int npoints = 5,  
45 <                             double poimin = 0,  
46 <                             double poimax = 5,
47 <                             int ntoys=1000,
48 <                             bool useNumberCounting = false,
49 <                             const char * nuisPriorName = 0);
50 < void ReadResult(const char * fileName, const char * resultName, bool useCLs);
31 > namespace RooStats {
32 >
33 >   class HypoTestInvTool{
34 >
35 >   public:
36 >      HypoTestInvTool();
37 >      ~HypoTestInvTool(){};
38 >
39 >      HypoTestInverterResult *
40 >      RunInverter(RooWorkspace * w,
41 >                  const char * modelSBName, const char * modelBName,
42 >                  const char * dataName,
43 >                  int type,  int testStatType,
44 >                  bool useCLs,
45 >                  int npoints, double poimin, double poimax, int ntoys,
46 >                  bool useNumberCounting = false,
47 >                  const char * nuisPriorName = 0);
48 >
49 >
50 >
51 >      void
52 >      AnalyzeResult( HypoTestInverterResult * r,
53 >                     int calculatorType,
54 >                     int testStatType,
55 >                     bool useCLs,  
56 >                     int npoints,
57 >                     const char * fileNameBase = 0 );
58 >
59 >      void SetParameter(const char * name, const char * value);
60 >      void SetParameter(const char * name, bool value);
61 >      void SetParameter(const char * name, int value);
62 >      void SetParameter(const char * name, double value);
63 >
64 >   private:
65 >
66 >      bool mPlotHypoTestResult;
67 >      bool mWriteResult;
68 >      bool mOptimize;
69 >      bool mUseVectorStore;
70 >      bool mGenerateBinned;
71 >      bool mUseProof;
72 >      bool mRebuild;
73 >      int     mNWorkers;
74 >      int     mNToyToRebuild;
75 >      int     mPrintLevel;
76 >      double  mNToysRatio;
77 >      double  mMaxPoi;
78 >      std::string mMassValue;
79 >      std::string mMinimizerType;                  // minimizer type (default is what is in ROOT::Math::MinimizerOptions::DefaultMinimizerType()
80 >
81 >   };
82 >
83 > } // end namespace RooStats
84  
85  
86   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines