Logo ROOT  
Reference Guide
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 nullHypoValue=0) ;
27 RooDLLSignificanceMCSModule(const char* parName, double nullHypoValue=0) ;
30
31 bool initializeInstance() override ;
32
33 bool initializeRun(Int_t /*numSamples*/) override ;
34 RooDataSet* finalizeRun() override ;
35
36 bool processAfterFit(Int_t /*sampleNum*/) override ;
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 _nullValue ; ///< Numeric value of Nsignal parameter representing the null hypothesis
46
47 ClassDefOverride(RooDLLSignificanceMCSModule,0) // MCStudy module to calculate Delta(-logL) significance w.r.t given null hypothesis
48} ;
49
50
51#endif
52
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
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 ...
double _nullValue
Numeric value of Nsignal parameter representing the null hypothesis.
~RooDLLSignificanceMCSModule() override
Destructor.
RooDataSet * _data
Summary dataset to store results.
RooDataSet * finalizeRun() override
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
std::string _parName
Name of Nsignal parameter.
RooRealVar * _sig0h
Container variable for NLL result with signal.
bool initializeInstance() override
Initialize module after attachment to RooMCStudy object.
RooDLLSignificanceMCSModule(const RooRealVar &param, double nullHypoValue=0)
Constructor of module with parameter to be interpreted as nSignal and the value of the null hypothesi...
bool initializeRun(Int_t) override
Initialize module at beginning of RooCMStudy run.
bool processAfterFit(Int_t) override
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
RooRealVar * _nll0h
Container variable for NLL result on null hypothesis.
RooRealVar * _dll0h
Container variable for delta NLL.
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:55
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40