Logo ROOT   6.16/01
Reference Guide
RooMultiBinomial.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id$
5 * Author: *
6 * Tristan du Pree, Nikhef, Amsterdam, tdupree@nikhef.nl *
7 * *
8 * Copyright (c) 2000-2005, Regents of the University of California *
9 * and Stanford University. All rights reserved. *
10 * *
11 * Redistribution and use in source and binary forms, *
12 * with or without modification, are permitted according to the terms *
13 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
14 *****************************************************************************/
15#ifndef ROO_MULTIBINOMIAL
16#define ROO_MULTIBINOMIAL
17
18#include "RooAbsReal.h"
19#include "RooListProxy.h"
20#include "TString.h"
21
22class RooArgList ;
23
24
26 public:
27 // Constructors, assignment etc
28 inline RooMultiBinomial() {
29 }
30
31 RooMultiBinomial(const char *name, const char *title, const RooArgList& effFuncList, const RooArgList& catList, Bool_t ignoreNonVisible);
32 RooMultiBinomial(const RooMultiBinomial& other, const char* name=0);
33 virtual TObject* clone(const char* newname) const { return new RooMultiBinomial(*this,newname); }
34 virtual ~RooMultiBinomial();
35
36 protected:
37
38 // Function evaluation
39 virtual Double_t evaluate() const ;
40
41 private:
42
43 RooListProxy _catList ; // Accept/reject categories
44 RooListProxy _effFuncList ; // Efficiency functions per category
45 Bool_t _ignoreNonVisible ; // Ignore combination of only rejects (since invisible)
46
47 ClassDef(RooMultiBinomial,1) // Simultaneous pdf of N Binomial distributions with associated efficiency functions
48 };
49
50#endif
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
RooMultiBinomial is an efficiency function which makes all combinations of efficiencies given as inpu...
virtual Double_t evaluate() const
Calculate the raw value of the function which is the effFunc value if cat==1 and it is (1-effFunc) if...
virtual ~RooMultiBinomial()
Destructor.
RooListProxy _effFuncList
virtual TObject * clone(const char *newname) const
RooListProxy _catList
Mother of all ROOT objects.
Definition: TObject.h:37