Logo ROOT  
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
21class RooArgList;
22
23
25 public:
26 // Constructors, assignment etc
28 }
29
30 RooMultiBinomial(const char *name, const char *title, const RooArgList& effFuncList, const RooArgList& catList, Bool_t ignoreNonVisible);
31 RooMultiBinomial(const RooMultiBinomial& other, const char* name=0);
32 virtual TObject* clone(const char* newname) const { return new RooMultiBinomial(*this,newname); }
33 virtual ~RooMultiBinomial();
34
35 protected:
36
37 // Function evaluation
38 virtual Double_t evaluate() const ;
39
40 private:
41
42 RooListProxy _catList ; // Accept/reject categories
43 RooListProxy _effFuncList ; // Efficiency functions per category
44 Bool_t _ignoreNonVisible ; // Ignore combination of only rejects (since invisible)
45
46 ClassDef(RooMultiBinomial,1) // Simultaneous pdf of N Binomial distributions with associated efficiency functions
47 };
48
49#endif
bool Bool_t
Definition: RtypesCore.h:63
double Double_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:325
char name[80]
Definition: TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:61
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:22
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:24
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