Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooEffProd.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitModels *
4 * File: $Id: RooEffProd.h,v 1.2 2007/05/11 10:14:56 verkerke Exp $
5 * Authors: *
6 * GR, Gerhard Raven, NIKHEF/VU *
7 * *
8 * Redistribution and use in source and binary forms, *
9 * with or without modification, are permitted according to the terms *
10 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
11 *****************************************************************************/
12#ifndef ROO_EFF_PROD
13#define ROO_EFF_PROD
14
15#include "RooAbsPdf.h"
16#include "RooRealProxy.h"
17#include "RooObjCacheManager.h"
18
19class RooEffProd: public RooAbsPdf {
20public:
21 // Constructors, assignment etc
23 RooEffProd(const char *name, const char *title, RooAbsPdf& pdf, RooAbsReal& efficiency);
24 RooEffProd(const RooEffProd& other, const char* name=0);
25
26 virtual TObject* clone(const char* newname) const { return new RooEffProd(*this,newname); }
27
28 virtual RooAbsGenContext* genContext(const RooArgSet &vars, const RooDataSet *prototype,
29 const RooArgSet* auxProto, Bool_t verbose) const;
30
31protected:
32
33 // Function evaluation
34 virtual Double_t evaluate() const ;
35
36 RooRealProxy _pdf ; ///< Probability Density function
37 RooRealProxy _eff; ///< Efficiency function
38
39 ClassDef(RooEffProd,2) // Product operator p.d.f of (PDF x efficiency) implementing optimized generator context
40};
41
42#endif
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:64
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:35
RooDataSet is a container class to hold unbinned data.
Definition RooDataSet.h:36
The class RooEffProd implements the product of a PDF with an efficiency function.
Definition RooEffProd.h:19
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype, const RooArgSet *auxProto, Bool_t verbose) const
Return specialized generator context for RooEffProds that implements generation in a more efficient w...
virtual Double_t evaluate() const
Calculate and return 'raw' unnormalized value of p.d.f.
RooRealProxy _pdf
Probability Density function.
Definition RooEffProd.h:36
virtual TObject * clone(const char *newname) const
Definition RooEffProd.h:26
RooRealProxy _eff
Efficiency function.
Definition RooEffProd.h:37
Mother of all ROOT objects.
Definition TObject.h:41