Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooTable.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooTable.h,v 1.15 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_TABLE
17#define ROO_TABLE
18
19#include "TNamed.h"
20#include "RooAbsCategory.h"
21#include "RooPrintable.h"
22
23/**
24\class RooTable
25\ingroup Roofitcore
26
27Abstract interface for table objects.
28Table objects are the category equivalent of RooPlot objects
29(which are used for real-valued objects)
30**/
31
32class RooTable : public TNamed, public RooPrintable {
33public:
34
35 // Constructors, cloning and assignment
37 RooTable(const char *name, const char *title) : TNamed{name, title} {}
38 RooTable(const RooTable& other) = default;
39
40 virtual void fill(RooAbsCategory& cat, double weight=1.0) = 0 ;
41
42 virtual bool isIdentical(const RooTable& other, bool verbose) = 0 ;
43
44protected:
45
46 ClassDefOverride(RooTable,1) // Abstract interface for tables
47};
48
49#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
A space to attach TBranches.
A 'mix-in' base class that define the standard RooFit plotting and printing methods.
Abstract interface for table objects.
Definition RooTable.h:32
RooTable()
Definition RooTable.h:36
virtual bool isIdentical(const RooTable &other, bool verbose)=0
RooTable(const RooTable &other)=default
virtual void fill(RooAbsCategory &cat, double weight=1.0)=0
RooTable(const char *name, const char *title)
Definition RooTable.h:37
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29