CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DebugProposal.h
Go to the documentation of this file.
1 #ifndef HiggsAnalysis_CombinedLimit_DebugProposal_h
2 #define HiggsAnalysis_CombinedLimit_DebugProposal_h
3 
4 #include <memory>
5 #include <Rtypes.h>
6 
7 class RooAbsData;
8 #include <RooArgSet.h>
9 #include <RooAbsReal.h>
10 #include <RooAbsPdf.h>
11 
12 #include <RooStats/ProposalFunction.h>
13 
14 class DebugProposal : public RooStats::ProposalFunction {
15 
16  public:
17  DebugProposal() : RooStats::ProposalFunction(), prop_(0), nll_(0), params_(), tries_(0) {}
18  DebugProposal(RooStats::ProposalFunction *p, RooAbsPdf *pdf, RooAbsData *data, int tries) ;
19 
20  // Populate xPrime with a new proposed point
21  virtual void Propose(RooArgSet& xPrime, RooArgSet& x);
22 
23  // Determine whether or not the proposal density is symmetric for
24  // points x1 and x2 - that is, whether the probabilty of reaching x2
25  // from x1 is equal to the probability of reaching x1 from x2
26  virtual Bool_t IsSymmetric(RooArgSet& x1, RooArgSet& x2) ;
27 
28  // Return the probability of proposing the point x1 given the starting
29  // point x2
30  virtual Double_t GetProposalDensity(RooArgSet& x1, RooArgSet& x2);
31 
32  virtual ~DebugProposal() {}
33 
34  ClassDef(DebugProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
35 
36  private:
37  RooStats::ProposalFunction *prop_;
38  std::auto_ptr<RooAbsReal> nll_;
39  RooAbsPdf *pdf_;
40  RooArgSet params_;
41  int tries_;
42  void tracePdf(RooAbsReal *pdf) ;
43 };
44 
45 #endif
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)
RooAbsPdf * pdf_
Definition: DebugProposal.h:39
virtual ~DebugProposal()
Definition: DebugProposal.h:32
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)
#define private
Definition: FWFileEntry.h:18
void tracePdf(RooAbsReal *pdf)
RooArgSet params_
Definition: DebugProposal.h:40
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
ClassDef(DebugProposal, 1) private std::auto_ptr< RooAbsReal > nll_
Definition: DebugProposal.h:34
Definition: DDAxes.h:10