Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
23 class RooDLLSignificanceMCSModule : public RooAbsMCStudyModule {
24 public:
25 
26  RooDLLSignificanceMCSModule(const RooRealVar& param, Double_t nullHypoValue=0) ;
27  RooDLLSignificanceMCSModule(const char* parName, Double_t nullHypoValue=0) ;
28  RooDLLSignificanceMCSModule(const RooDLLSignificanceMCSModule& other) ;
29  virtual ~RooDLLSignificanceMCSModule() ;
30 
31  Bool_t initializeInstance() ;
32 
33  Bool_t initializeRun(Int_t /*numSamples*/) ;
34  RooDataSet* finalizeRun() ;
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