Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RooChi2MCSModule.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
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_CHI2_MCS_MODULE
18 #define ROO_CHI2_MCS_MODULE
19 
20 #include "RooAbsMCStudyModule.h"
21 #include <string>
22 
23 class RooChi2MCSModule : public RooAbsMCStudyModule {
24 public:
25 
26  RooChi2MCSModule() ;
27  RooChi2MCSModule(const RooChi2MCSModule& other) ;
28  virtual ~RooChi2MCSModule() ;
29 
30  Bool_t initializeInstance() ;
31  Bool_t initializeRun(Int_t /*numSamples*/) ;
32  RooDataSet* finalizeRun() ;
33  Bool_t processAfterFit(Int_t /*sampleNum*/) ;
34 
35 private:
36 
37  RooDataSet* _data ; // Summary dataset to store results
38  RooRealVar* _chi2 ; // Chi^2 of function w.r.t. data
39  RooRealVar* _ndof ; // Number of degrees of freedom
40  RooRealVar* _chi2red ; // Reduced Chi^2 w.r.t data
41  RooRealVar* _prob ; // Probability of chi^2,nDOF combination
42 
43  ClassDef(RooChi2MCSModule,0) // MCStudy module to calculate chi2 between binned data and fit
44 } ;
45 
46 
47 #endif
48