Logo ROOT   6.16/01
Reference Guide
RooChi2Var.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooChi2Var.h,v 1.12 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_CHI2_VAR
18#define ROO_CHI2_VAR
19
21#include "RooCmdArg.h"
22#include "RooDataHist.h"
23#include "RooAbsPdf.h"
24
26public:
27
28 // Constructors, assignment etc
29 RooChi2Var(const char *name, const char* title, RooAbsReal& func, RooDataHist& data,
30 const RooCmdArg& arg1 , const RooCmdArg& arg2=RooCmdArg::none(),const RooCmdArg& arg3=RooCmdArg::none(),
31 const RooCmdArg& arg4=RooCmdArg::none(), const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none(),
32 const RooCmdArg& arg7=RooCmdArg::none(), const RooCmdArg& arg8=RooCmdArg::none(),const RooCmdArg& arg9=RooCmdArg::none()) ;
33
34 RooChi2Var(const char *name, const char* title, RooAbsPdf& pdf, RooDataHist& data,
35 const RooCmdArg& arg1 , const RooCmdArg& arg2=RooCmdArg::none(),const RooCmdArg& arg3=RooCmdArg::none(),
36 const RooCmdArg& arg4=RooCmdArg::none(), const RooCmdArg& arg5=RooCmdArg::none(),const RooCmdArg& arg6=RooCmdArg::none(),
37 const RooCmdArg& arg7=RooCmdArg::none(), const RooCmdArg& arg8=RooCmdArg::none(),const RooCmdArg& arg9=RooCmdArg::none()) ;
38
40
41 RooChi2Var(const char *name, const char *title, RooAbsPdf& pdf, RooDataHist& data,
42 Bool_t extended=kFALSE, const char* rangeName=0, const char* addCoefRangeName=0,
44
45 RooChi2Var(const char *name, const char *title, RooAbsReal& func, RooDataHist& data,
46 const RooArgSet& projDeps, FuncMode funcMode, const char* rangeName=0, const char* addCoefRangeName=0,
48
49 RooChi2Var(const RooChi2Var& other, const char* name=0);
50 virtual TObject* clone(const char* newname) const { return new RooChi2Var(*this,newname); }
51
52 virtual RooAbsTestStatistic* create(const char *name, const char *title, RooAbsReal& pdf, RooAbsData& dhist,
53 const RooArgSet& projDeps, const char* rangeName=0, const char* addCoefRangeName=0,
54 Int_t nCPU=1, RooFit::MPSplit interleave=RooFit::BulkPartition,Bool_t verbose=kTRUE, Bool_t splitCutRange=kTRUE, Bool_t = kFALSE) {
55 // Virtual constructor
56 return new RooChi2Var(name,title,(RooAbsPdf&)pdf,(RooDataHist&)dhist,projDeps,_funcMode,rangeName,
57 addCoefRangeName,nCPU,interleave,verbose, splitCutRange,_etype) ;
58 }
59
60 virtual ~RooChi2Var();
61
62 virtual Double_t defaultErrorLevel() const {
63 // The default error level for MINUIT error analysis for a chi^2 is 1.0
64 return 1.0 ;
65 }
66
67protected:
68
69 static RooArgSet _emptySet ; // Supports named argument constructor
70
71 RooDataHist::ErrorType _etype ; // Error type store in associated RooDataHist
72 FuncMode _funcMode ; // Function, P.d.f. or extended p.d.f?
73
74 virtual Double_t evaluatePartition(Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const ;
75
76 ClassDef(RooChi2Var,1) // Chi^2 function of p.d.f w.r.t a binned dataset
77};
78
79
80#endif
int Int_t
Definition: RtypesCore.h:41
const Bool_t kFALSE
Definition: RtypesCore.h:88
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:37
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooAbsTestStatistic is the abstract base class for all test statistics.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
virtual Double_t defaultErrorLevel() const
Definition: RooChi2Var.h:62
virtual RooAbsTestStatistic * create(const char *name, const char *title, RooAbsReal &pdf, RooAbsData &dhist, const RooArgSet &projDeps, const char *rangeName=0, const char *addCoefRangeName=0, Int_t nCPU=1, RooFit::MPSplit interleave=RooFit::BulkPartition, Bool_t verbose=kTRUE, Bool_t splitCutRange=kTRUE, Bool_t=kFALSE)
Definition: RooChi2Var.h:52
RooDataHist::ErrorType _etype
Definition: RooChi2Var.h:71
virtual TObject * clone(const char *newname) const
Definition: RooChi2Var.h:50
virtual Double_t evaluatePartition(Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const
Calculate chi^2 in partition from firstEvent to lastEvent using given stepSize.
Definition: RooChi2Var.cxx:218
FuncMode _funcMode
Definition: RooChi2Var.h:72
RooChi2Var(const char *name, const char *title, RooAbsReal &func, RooDataHist &data, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none(), const RooCmdArg &arg9=RooCmdArg::none())
Definition: RooChi2Var.cxx:55
static RooArgSet _emptySet
Definition: RooChi2Var.h:69
virtual ~RooChi2Var()
Destructor.
Definition: RooChi2Var.cxx:209
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:27
static const RooCmdArg & none()
Return reference to null argument.
Definition: RooCmdArg.cxx:50
RooDataSet is a container class to hold N-dimensional binned data.
Definition: RooDataHist.h:40
Mother of all ROOT objects.
Definition: TObject.h:37
@ BulkPartition
Definition: RooGlobalFunc.h:60