Logo ROOT  
Reference Guide
RooDataProjBinding.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooDataProjBinding.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_DATA_PROJ_BINDING
17#define ROO_DATA_PROJ_BINDING
18
19#include "RooRealBinding.h"
20class RooAbsReal ;
21class RooAbsData ;
22class RooSuperCategory ;
23class Roo1DTable ;
24
26public:
27 RooDataProjBinding(const RooAbsReal &real, const RooAbsData& data, const RooArgSet &vars, const RooArgSet* normSet=0) ;
28 virtual ~RooDataProjBinding() ;
29
30 virtual Double_t operator()(const Double_t xvector[]) const;
31
32protected:
33
34 mutable Bool_t _first ; // Bit indicating if operator() has been called yet
35 const RooAbsReal* _real ; // Real function to be projected
36 const RooAbsData* _data ; // Dataset used for projection
37 const RooArgSet* _nset ; // Normalization set for real function
38
39 RooSuperCategory* _superCat ; // Supercategory constructed from _data's category variables
40 Roo1DTable* _catTable ; // Supercategory table generated from _data
41
42 ClassDef(RooDataProjBinding,0) // RealFunc/Dataset binding for data projection of a real function
43};
44
45#endif
46
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
Roo1DTable implements a one-dimensional table.
Definition: Roo1DTable.h:23
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:44
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:60
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
adaptor that projects a real function via summation of states provided in a dataset.
virtual ~RooDataProjBinding()
Destructor, delete owned objects.
RooDataProjBinding(const RooAbsReal &real, const RooAbsData &data, const RooArgSet &vars, const RooArgSet *normSet=0)
Constructor of a data weighted average function binding with variables 'vars' for function 'real' and...
const RooArgSet * _nset
const RooAbsReal * _real
RooSuperCategory * _superCat
const RooAbsData * _data
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate data-projected values of the bound real function.
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
The RooSuperCategory can join several RooAbsCategoryLValue objects into a single category.