Helper class for ToyMCSampler.
Handles all of the nuisance parameter related functions. Once instantiated, it gives a new nuisance parameter point at each call to nextPoint(...).
Definition at line 38 of file ToyMCSampler.h.
Public Member Functions | |
NuisanceParametersSampler (RooAbsPdf *prior=NULL, const RooArgSet *parameters=NULL, Int_t nToys=1000, Bool_t asimov=kFALSE) | |
virtual | ~NuisanceParametersSampler ()=default |
void | NextPoint (RooArgSet &nuisPoint, Double_t &weight) |
Assigns new nuisance parameter point to members of nuisPoint. | |
Protected Member Functions | |
void | Refresh () |
Creates the initial set of nuisance parameter points. | |
Private Attributes | |
Bool_t | fExpected |
Int_t | fIndex |
Int_t | fNToys |
const RooArgSet * | fParams |
std::unique_ptr< RooAbsData > | fPoints |
RooAbsPdf * | fPrior |
#include <RooStats/ToyMCSampler.h>
|
inline |
Definition at line 41 of file ToyMCSampler.h.
|
virtualdefault |
Assigns new nuisance parameter point to members of nuisPoint.
nuisPoint can be more objects than just the nuisance parameters.
Definition at line 67 of file ToyMCSampler.cxx.
|
protected |
Creates the initial set of nuisance parameter points.
It also refills the set with new parameter points if called repeatedly. This helps with adaptive sampling as the required number of nuisance parameter points might increase during the run.
Definition at line 92 of file ToyMCSampler.cxx.
|
private |
Definition at line 61 of file ToyMCSampler.h.
|
private |
Definition at line 64 of file ToyMCSampler.h.
|
private |
Definition at line 60 of file ToyMCSampler.h.
|
private |
Definition at line 59 of file ToyMCSampler.h.
|
private |
Definition at line 63 of file ToyMCSampler.h.
|
private |
Definition at line 58 of file ToyMCSampler.h.