Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
UpperLimitMCSModule.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer, Lorenzo Moneta, Gregory Schott, Wouter Verkerke, Nils Ruthmann
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12#ifndef UPPER_LIMIT_MCS_MODULE
13#define UPPER_LIMIT_MCS_MODULE
14
15#include "RooAbsMCStudyModule.h"
16#include <string>
17
18class RooArgSet;
19class RooDataSet;
20class RooRealVar;
21class RooAbsPdf;
22
23namespace RooStats {
24
25 class ProfileLikelihoodCalculator;
26
28public:
29
30
31 UpperLimitMCSModule(const RooArgSet* poi, double CL=0.95) ;
33 ~UpperLimitMCSModule() override ;
34
35 bool initializeInstance() override ;
36
37 bool initializeRun(Int_t /*numSamples*/) override ;
38 RooDataSet* finalizeRun() override ;
39
40 //bool processAfterFit(Int_t /*sampleNum*/) ;
41 bool processBetweenGenAndFit(Int_t /*sampleNum*/) override ;
42
43private:
44
45 std::string _parName ; ///< Name of Nsignal parameter
48
49 const RooArgSet* _poi; ///< parameters of interest
50 RooDataSet* _data ; ///< Summary dataset to store results
51 double _cl;
53
54 ClassDefOverride(UpperLimitMCSModule,0) // MCStudy module to calculate upper limit of a given poi
55};
56
57}
58
59#endif
60
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Base class for add-on modules to RooMCStudy that can perform additional calculations on each generate...
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Container class to hold unbinned data.
Definition RooDataSet.h:57
Variable that can be changed from the outside.
Definition RooRealVar.h:37
The ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface cla...
This class allow to compute in the ToyMcStudy framework the ProfileLikelihood upper limit for each to...
const RooArgSet * _poi
parameters of interest
RooDataSet * finalizeRun() override
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
~UpperLimitMCSModule() override
Destructor.
bool processBetweenGenAndFit(Int_t) override
Method called after generation of toy data sample and resetting of fit parameters to initial values a...
RooStats::ProfileLikelihoodCalculator * _plc
bool initializeRun(Int_t) override
Initialize module at beginning of RooCMStudy run.
std::string _parName
Name of Nsignal parameter.
RooDataSet * _data
Summary dataset to store results.
bool initializeInstance() override
Initialize module after attachment to RooMCStudy object.
Namespace for the RooStats classes.
Definition Asimov.h:19