Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooDLLSignificanceMCSModule.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id: RooDLLSignificanceMCSModule.h,v 1.2 2007/05/11 09:11:30 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 
0017 #ifndef ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
0018 #define ROO_DELTA_LL_SIGNIFICANCE_MCS_MODULE
0019 
0020 #include "RooAbsMCStudyModule.h"
0021 #include <string>
0022 
0023 class RooDLLSignificanceMCSModule : public RooAbsMCStudyModule {
0024 public:
0025 
0026   RooDLLSignificanceMCSModule(const RooRealVar& param, double nullHypoValue=0.0) ;
0027   RooDLLSignificanceMCSModule(const char* parName, double nullHypoValue=0.0) ;
0028   RooDLLSignificanceMCSModule(const RooDLLSignificanceMCSModule& other) ;
0029   ~RooDLLSignificanceMCSModule() override ;
0030 
0031   bool initializeInstance() override ;
0032 
0033   bool initializeRun(Int_t /*numSamples*/) override ;
0034   RooDataSet* finalizeRun() override ;
0035 
0036   bool processAfterFit(Int_t /*sampleNum*/) override  ;
0037 
0038 private:
0039 
0040   std::string _parName ;   ///< Name of Nsignal parameter
0041   std::unique_ptr<RooDataSet> _data;      ///< Summary dataset to store results
0042   std::unique_ptr<RooRealVar> _nll0h;     ///< Container variable for NLL result on null hypothesis
0043   std::unique_ptr<RooRealVar> _dll0h;     ///< Container variable for delta NLL
0044   std::unique_ptr<RooRealVar> _sig0h;     ///< Container variable for NLL result with signal
0045   double    _nullValue ; ///< Numeric value of Nsignal parameter representing the null hypothesis
0046 
0047   ClassDefOverride(RooDLLSignificanceMCSModule,0) // MCStudy module to calculate Delta(-logL) significance w.r.t given null hypothesis
0048 } ;
0049 
0050 
0051 #endif