CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TestProposal.h
Go to the documentation of this file.
1 #ifndef HiggsAnalysis_CombinedLimit_TestProposal_h
2 #define HiggsAnalysis_CombinedLimit_TestProposal_h
3 
4 #include <Rtypes.h>
5 
6 struct RooRealVar;
7 
8 #include <RooArgSet.h>
9 
10 #include <RooStats/ProposalFunction.h>
11 
12 class TestProposal : public RooStats::ProposalFunction {
13 
14  public:
15  TestProposal() : RooStats::ProposalFunction() {}
16  TestProposal(double divisor, const RooRealVar *alwaysStepMe=0) ;
17  TestProposal(double divisor, const RooArgList &alwaysStepMe) ;
18 
19  // Populate xPrime with a new proposed point
20  virtual void Propose(RooArgSet& xPrime, RooArgSet& x);
21 
22  // Determine whether or not the proposal density is symmetric for
23  // points x1 and x2 - that is, whether the probabilty of reaching x2
24  // from x1 is equal to the probability of reaching x1 from x2
25  virtual Bool_t IsSymmetric(RooArgSet& x1, RooArgSet& x2) ;
26 
27  // Return the probability of proposing the point x1 given the starting
28  // point x2
29  virtual Double_t GetProposalDensity(RooArgSet& x1, RooArgSet& x2);
30 
31  virtual ~TestProposal() {}
32 
33  ClassDef(TestProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
34 
35  private:
36  double divisor_, poiDivisor_;
37  RooArgList alwaysStepMe_;
38 };
39 
40 #endif
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)
Definition: TestProposal.cc:28
virtual ~TestProposal()
Definition: TestProposal.h:31
ClassDef(TestProposal, 1) private RooArgList alwaysStepMe_
Definition: TestProposal.h:33
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)
Definition: TestProposal.cc:56
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
Definition: TestProposal.cc:62
#define private
Definition: FWFileEntry.h:18
x
Definition: VDTMath.h:216