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 
21 class RooArgList;
22 
23 
24 class RooMultiBinomial : public RooAbsReal {
25  public:
26  // Constructors, assignment etc
27  inline RooMultiBinomial() {
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
RooMultiBinomial::~RooMultiBinomial
virtual ~RooMultiBinomial()
Destructor.
Definition: RooMultiBinomial.cxx:82
RooMultiBinomial::RooMultiBinomial
RooMultiBinomial()
Definition: RooMultiBinomial.h:27
RooAbsReal.h
RooArgList
Definition: RooArgList.h:21
RooAbsReal
Definition: RooAbsReal.h:61
RooMultiBinomial::_ignoreNonVisible
Bool_t _ignoreNonVisible
Definition: RooMultiBinomial.h:44
bool
RooMultiBinomial
Definition: RooMultiBinomial.h:24
RooListProxy
Definition: RooListProxy.h:24
RooListProxy.h
Double_t
double Double_t
Definition: RtypesCore.h:59
RooMultiBinomial::evaluate
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...
Definition: RooMultiBinomial.cxx:90
RooMultiBinomial::_catList
RooListProxy _catList
Definition: RooMultiBinomial.h:42
TObject
Definition: TObject.h:37
RooMultiBinomial::clone
virtual TObject * clone(const char *newname) const
Definition: RooMultiBinomial.h:32
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
RooMultiBinomial::_effFuncList
RooListProxy _effFuncList
Definition: RooMultiBinomial.h:43