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 ignoreNonVisible);
31 RooMultiBinomial(const RooMultiBinomial& other, const char* name=nullptr);
32 TObject* clone(const char* newname) const override { return new RooMultiBinomial(*this,newname); }
33 ~RooMultiBinomial() override;
34
35 protected:
36
37 // Function evaluation
38 double evaluate() const override ;
39
40 private:
41
42 RooListProxy _catList ; // Accept/reject categories
43 RooListProxy _effFuncList ; // Efficiency functions per category
44 bool _ignoreNonVisible ; // Ignore combination of only rejects (since invisible)
45
46 ClassDefOverride(RooMultiBinomial,1) // Simultaneous pdf of N Binomial distributions with associated efficiency functions
47 };
48
49#endif
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
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:62
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:22
RooMultiBinomial is an efficiency function which makes all combinations of efficiencies given as inpu...
RooListProxy _effFuncList
~RooMultiBinomial() override
Destructor.
double evaluate() const override
Calculate the raw value of the function which is the effFunc value if cat==1 and it is (1-effFunc) if...
RooListProxy _catList
TObject * clone(const char *newname) const override
Mother of all ROOT objects.
Definition: TObject.h:41