Logo ROOT  
Reference Guide
No Matches
RooStats::NuisanceParametersSampler Class Reference

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=nullptr, const RooArgSet *parameters=nullptr, Int_t nToys=1000, bool asimov=false)
virtual ~NuisanceParametersSampler ()=default
void NextPoint (RooArgSet &nuisPoint, double &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 fExpected
Int_t fIndex
Int_t fNToys
const RooArgSetfParams
std::unique_ptr< RooAbsDatafPoints

#include <RooStats/ToyMCSampler.h>

Constructor & Destructor Documentation

◆ NuisanceParametersSampler()

RooStats::NuisanceParametersSampler::NuisanceParametersSampler ( RooAbsPdf prior = nullptr,
const RooArgSet parameters = nullptr,
Int_t  nToys = 1000,
bool  asimov = false 

Definition at line 41 of file ToyMCSampler.h.

◆ ~NuisanceParametersSampler()

virtual RooStats::NuisanceParametersSampler::~NuisanceParametersSampler ( )

Member Function Documentation

◆ NextPoint()

void RooStats::NuisanceParametersSampler::NextPoint ( RooArgSet nuisPoint,
double weight 

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.

◆ Refresh()

void RooStats::NuisanceParametersSampler::Refresh ( )

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.

Member Data Documentation

◆ fExpected

bool RooStats::NuisanceParametersSampler::fExpected

Definition at line 61 of file ToyMCSampler.h.

◆ fIndex

Int_t RooStats::NuisanceParametersSampler::fIndex

Definition at line 64 of file ToyMCSampler.h.

◆ fNToys

Int_t RooStats::NuisanceParametersSampler::fNToys

Definition at line 60 of file ToyMCSampler.h.

◆ fParams

const RooArgSet* RooStats::NuisanceParametersSampler::fParams

Definition at line 59 of file ToyMCSampler.h.

◆ fPoints

std::unique_ptr<RooAbsData> RooStats::NuisanceParametersSampler::fPoints

Definition at line 63 of file ToyMCSampler.h.

◆ fPrior

RooAbsPdf* RooStats::NuisanceParametersSampler::fPrior

Definition at line 58 of file ToyMCSampler.h.

Libraries for RooStats::NuisanceParametersSampler:

The documentation for this class was generated from the following files: