RooDLLSignificanceMCSModule.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooDLLSignificanceMCSModule.h,v 1.2 2007/05/11 09:11:30 verkerke Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 
00017 #ifndef ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
00018 #define ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
00019 
00020 #include "RooAbsMCStudyModule.h"
00021 #include <string>
00022 
00023 class RooDLLSignificanceMCSModule : public RooAbsMCStudyModule {
00024 public:
00025 
00026   RooDLLSignificanceMCSModule(const RooRealVar& param, Double_t nullHypoValue=0) ;
00027   RooDLLSignificanceMCSModule(const char* parName, Double_t nullHypoValue=0) ;
00028   RooDLLSignificanceMCSModule(const RooDLLSignificanceMCSModule& other) ;
00029   virtual ~RooDLLSignificanceMCSModule() ;
00030 
00031   Bool_t initializeInstance() ; 
00032 
00033   Bool_t initializeRun(Int_t /*numSamples*/) ; 
00034   RooDataSet* finalizeRun() ;
00035 
00036   Bool_t processAfterFit(Int_t /*sampleNum*/)  ;
00037         
00038 private:
00039 
00040   std::string _parName ;  // Name of Nsignal parameter
00041   RooDataSet* _data ;     // Summary dataset to store results
00042   RooRealVar* _nll0h ;    // Container variable for NLL result on null hypothesis
00043   RooRealVar* _dll0h ;    // Container variable for delta NLL 
00044   RooRealVar* _sig0h ;    // Container variable for NLL result with signal
00045   Double_t    _nullValue ;  // Numeric value of Nsignal parameter representing the null hypothesis
00046 
00047   ClassDef(RooDLLSignificanceMCSModule,0) // MCStudy module to calculate Delta(-logL) significance w.r.t given null hypothesis
00048 } ;
00049 
00050 
00051 #endif
00052 

Generated on Tue Jul 5 14:26:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1