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 
24 public:
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 
38 private:
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 
RooDLLSignificanceMCSModule::initializeInstance
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
Definition: RooDLLSignificanceMCSModule.cxx:114
RooDLLSignificanceMCSModule::~RooDLLSignificanceMCSModule
virtual ~RooDLLSignificanceMCSModule()
Destructor.
Definition: RooDLLSignificanceMCSModule.cxx:93
RooDLLSignificanceMCSModule::_nullValue
Double_t _nullValue
Definition: RooDLLSignificanceMCSModule.h:59
RooDLLSignificanceMCSModule::_data
RooDataSet * _data
Definition: RooDLLSignificanceMCSModule.h:55
RooDLLSignificanceMCSModule::_parName
std::string _parName
Definition: RooDLLSignificanceMCSModule.h:54
RooDLLSignificanceMCSModule::_nll0h
RooRealVar * _nll0h
Definition: RooDLLSignificanceMCSModule.h:56
RooDLLSignificanceMCSModule::initializeRun
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
Definition: RooDLLSignificanceMCSModule.cxx:148
RooDLLSignificanceMCSModule::processAfterFit
Bool_t processAfterFit(Int_t)
Save likelihood from nominal fit, fix chosen parameter to its null hypothesis value and rerun fit Sav...
Definition: RooDLLSignificanceMCSModule.cxx:173
bool
RooDLLSignificanceMCSModule
Definition: RooDLLSignificanceMCSModule.h:23
RooAbsMCStudyModule.h
RooAbsMCStudyModule
Definition: RooAbsMCStudyModule.h:30
RooDLLSignificanceMCSModule::finalizeRun
RooDataSet * finalizeRun()
Return auxiliary dataset with results of delta(-log(L)) calculations of this module so that it is mer...
Definition: RooDLLSignificanceMCSModule.cxx:161
Double_t
double Double_t
Definition: RtypesCore.h:59
RooDLLSignificanceMCSModule::_sig0h
RooRealVar * _sig0h
Definition: RooDLLSignificanceMCSModule.h:58
RooDLLSignificanceMCSModule::_dll0h
RooRealVar * _dll0h
Definition: RooDLLSignificanceMCSModule.h:57
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooDLLSignificanceMCSModule::RooDLLSignificanceMCSModule
RooDLLSignificanceMCSModule(const RooRealVar &param, Double_t nullHypoValue=0)
Constructor of module with parameter to be interpreted as nSignal and the value of the null hypothesi...
Definition: RooDLLSignificanceMCSModule.cxx:56
RooDataSet
Definition: RooDataSet.h:33
RooRealVar
Definition: RooRealVar.h:35
int