Logo ROOT   6.12/07
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 
18 class RooArgSet;
19 class RooDataSet;
20 class RooRealVar;
21 class RooAbsPdf;
22 
23 namespace RooStats {
24 
25  class ProfileLikelihoodCalculator;
26 
28 public:
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 
43 private:
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 
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface class f...
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
This class allow to compute in the ToyMcStudy framework the ProfileLikelihood upper limit for each to...
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual ~UpperLimitMCSModule()
Destructor.
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:29
RooStats::ProfileLikelihoodCalculator * _plc
Namespace for the RooStats classes.
Definition: Asimov.h:20
double Double_t
Definition: RtypesCore.h:55
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
UpperLimitMCSModule(const RooArgSet *poi, Double_t CL=0.95)