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 nullHypoValue=0.0) ;
27 RooDLLSignificanceMCSModule(const char* parName, double nullHypoValue=0.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 std::unique_ptr<RooDataSet> _data; ///< Summary dataset to store results
42 std::unique_ptr<RooRealVar> _nll0h; ///< Container variable for NLL result on null hypothesis
43 std::unique_ptr<RooRealVar> _dll0h; ///< Container variable for delta NLL
44 std::unique_ptr<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
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Base class for add-on modules to RooMCStudy that can perform additional calculations on each generate...
Add-on module to RooMCStudy that calculates the significance of a signal by comparing the likelihood ...
std::unique_ptr< RooRealVar > _nll0h
Container variable for NLL result on null hypothesis.
std::unique_ptr< RooRealVar > _sig0h
Container variable for NLL result with signal.
double _nullValue
Numeric value of Nsignal parameter representing the null hypothesis.
~RooDLLSignificanceMCSModule() override
std::unique_ptr< RooRealVar > _dll0h
Container variable for delta NLL.
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.
bool initializeInstance() override
Initialize module after attachment to RooMCStudy object.
bool initializeRun(Int_t) override
Initialize module at beginning of RooCMStudy run.
std::unique_ptr< RooDataSet > _data
Summary dataset to store results.
bool processAfterFit(Int_t) override
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
Container class to hold unbinned data.
Definition RooDataSet.h:33
Variable that can be changed from the outside.
Definition RooRealVar.h:37