Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooDLLSignificanceMCSModule.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooDLLSignificanceMCSModule.h,v 1.2 2007/05/11 09:11:30 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16
17#ifndef ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
18#define ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
19
20#include "RooAbsMCStudyModule.h"
21#include <string>
22
24public:
25
26 RooDLLSignificanceMCSModule(const RooRealVar& param, Double_t nullHypoValue=0) ;
27 RooDLLSignificanceMCSModule(const char* parName, Double_t nullHypoValue=0) ;
30
32
33 Bool_t initializeRun(Int_t /*numSamples*/) ;
35
36 Bool_t processAfterFit(Int_t /*sampleNum*/) ;
37
38private:
39
40 std::string _parName ; // Name of Nsignal parameter
41 RooDataSet* _data ; // Summary dataset to store results
42 RooRealVar* _nll0h ; // Container variable for NLL result on null hypothesis
43 RooRealVar* _dll0h ; // Container variable for delta NLL
44 RooRealVar* _sig0h ; // Container variable for NLL result with signal
45 Double_t _nullValue ; // Numeric value of Nsignal parameter representing the null hypothesis
46
47 ClassDef(RooDLLSignificanceMCSModule,0) // MCStudy module to calculate Delta(-logL) significance w.r.t given null hypothesis
48} ;
49
50
51#endif
52
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
RooDLLSignificanceMCSModule is an add-on modules to RooMCStudy that calculates the significance of a ...
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
Bool_t processAfterFit(Int_t)
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
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:39