Logo ROOT  
Reference Guide
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_t CL=0.95) ;
33 virtual ~UpperLimitMCSModule() ;
34
36
37 Bool_t initializeRun(Int_t /*numSamples*/) ;
39
40 //Bool_t processAfterFit(Int_t /*sampleNum*/) ;
41 Bool_t processBetweenGenAndFit(Int_t /*sampleNum*/) ;
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
53
54 ClassDef(UpperLimitMCSModule,0) // MCStudy module to calculate upper limit of a given poi
55};
56
57}
58
59#endif
60
int Int_t
Definition: RtypesCore.h:43
bool Bool_t
Definition: RtypesCore.h:61
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:33
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:35
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...
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
UpperLimitMCSModule(const RooArgSet *poi, Double_t CL=0.95)
virtual ~UpperLimitMCSModule()
Destructor.
RooStats::ProfileLikelihoodCalculator * _plc
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
Namespace for the RooStats classes.
Definition: Asimov.h:19