ROOT  6.06/09
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 
27 /**
28 
29  This class allow to compute in the ToyMcStudy framework the ProfileLikelihood upper limit for each toy-MC sample generated
30 
31 */
32 
34 public:
35 
36 
37  UpperLimitMCSModule(const RooArgSet* poi, Double_t CL=0.95) ;
39  virtual ~UpperLimitMCSModule() ;
40 
42 
43  Bool_t initializeRun(Int_t /*numSamples*/) ;
45 
46  //Bool_t processAfterFit(Int_t /*sampleNum*/) ;
47  Bool_t processBetweenGenAndFit(Int_t /*sampleNum*/) ;
48 
49 private:
50 
51  std::string _parName ; // Name of Nsignal parameter
54 
55  const RooArgSet* _poi; // parameters of interest
56  RooDataSet* _data ; // Summary dataset to store results
59 
60  ClassDef(UpperLimitMCSModule,0) // MCStudy module to calculate upperlimit of a given poi
61 };
62 
63 }
64 
65 #endif
66 
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:254
virtual ~UpperLimitMCSModule()
Destructor.
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
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)