ROOT  6.06/09
Reference Guide
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 
24 public:
25 
27  RooChi2MCSModule(const RooChi2MCSModule& other) ;
28  virtual ~RooChi2MCSModule() ;
29 
31  Bool_t initializeRun(Int_t /*numSamples*/) ;
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 
Bool_t initializeInstance()
Initialize module after attachment to RooMCStudy object.
Bool_t initializeRun(Int_t)
Initialize module at beginning of RooCMStudy run.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
RooRealVar * _prob
RooRealVar * _chi2red
#define ClassDef(name, id)
Definition: Rtypes.h:254
RooRealVar * _chi2
Bool_t processAfterFit(Int_t)
Bin dataset and calculate chi2 of p.d.f w.r.t binned dataset.
RooDataSet * _data
RooDataSet * finalizeRun()
Return auxiliary dataset with results of chi2 analysis calculations of this module so that it is merg...
virtual ~RooChi2MCSModule()
Destructor.
RooRealVar * _ndof