Logo ROOT  
Reference Guide
RooDataHist.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooDataHist.h,v 1.37 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_HIST
17 #define ROO_DATA_HIST
18 
19 #include "RooAbsData.h"
20 #include "RooDirItem.h"
21 #include "RooArgSet.h"
22 #include "RooNameSet.h"
23 #include "RooCacheManager.h"
24 
25 #include <map>
26 #include <vector>
27 #include <string>
28 
29 class TObject ;
30 class RooAbsArg;
31 class RooAbsReal ;
32 class RooAbsCategory ;
33 class Roo1DTable ;
34 class RooPlot;
35 class RooArgSet ;
36 class RooLinkedList ;
37 class RooAbsLValue ;
38 
39 class RooDataHist : public RooAbsData, public RooDirItem {
40 public:
41 
42  // Constructors, factory methods etc.
43  RooDataHist() ;
44  RooDataHist(const char *name, const char *title, const RooArgSet& vars, const char* binningName=0) ;
45  RooDataHist(const char *name, const char *title, const RooArgSet& vars, const RooAbsData& data, Double_t initWgt=1.0) ;
46  RooDataHist(const char *name, const char *title, const RooArgList& vars, const TH1* hist, Double_t initWgt=1.0) ;
47  RooDataHist(const char *name, const char *title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,TH1*> histMap, Double_t initWgt=1.0) ;
48  RooDataHist(const char *name, const char *title, const RooArgList& vars, RooCategory& indexCat, std::map<std::string,RooDataHist*> dhistMap, Double_t wgt=1.0) ;
49  //RooDataHist(const char *name, const char *title, const RooArgList& vars, Double_t initWgt=1.0) ;
50  RooDataHist(const char *name, const char *title, const RooArgList& vars, const RooCmdArg& arg1, const RooCmdArg& arg2=RooCmdArg(), const RooCmdArg& arg3=RooCmdArg(),
51  const RooCmdArg& arg4=RooCmdArg(),const RooCmdArg& arg5=RooCmdArg(),const RooCmdArg& arg6=RooCmdArg(),const RooCmdArg& arg7=RooCmdArg(),const RooCmdArg& arg8=RooCmdArg()) ;
52  RooDataHist& operator=(const RooDataHist&) = delete;
53 
54  RooDataHist(const RooDataHist& other, const char* newname = 0) ;
55  virtual TObject* Clone(const char* newname="") const {
56  return new RooDataHist(*this, newname && newname[0] != '\0' ? newname : GetName());
57  }
58  virtual ~RooDataHist() ;
59 
60  virtual RooAbsData* emptyClone(const char* newName=0, const char* newTitle=0, const RooArgSet*vars=0, const char* /*wgtVarName*/=0) const {
61  // Return empty clone of this RooDataHist
62  return new RooDataHist(newName?newName:GetName(),newTitle?newTitle:GetTitle(),vars?*vars:*get()) ;
63  }
64 
65  // Add one ore more rows of data
66  virtual void add(const RooArgSet& row, Double_t wgt=1.0) {
67  // Increment weight of bin enclosing coordinate stored in row by wgt
68  add(row,wgt,-1.) ;
69  }
70  virtual void add(const RooArgSet& row, Double_t weight, Double_t sumw2) ;
71  void set(Double_t weight, Double_t wgtErr=-1) ;
72  void set(const RooArgSet& row, Double_t weight, Double_t wgtErr=-1) ;
73  void set(const RooArgSet& row, Double_t weight, Double_t wgtErrLo, Double_t wgtErrHi) ;
74 
75  void add(const RooAbsData& dset, const RooFormulaVar* cutVar=0, Double_t weight=1.0 ) ;
76  void add(const RooAbsData& dset, const char* cut, Double_t weight=1.0 ) ;
77 
78  virtual const RooArgSet* get() const {
79  // Return set with coordinates of center of current bin
80  return &_vars ;
81  }
82  virtual const RooArgSet* get(Int_t masterIdx) const ;
83  virtual const RooArgSet* get(const RooArgSet& coord) const ;
84  virtual Int_t numEntries() const ;
85  virtual Double_t sumEntries() const ;
86  virtual Double_t sumEntries(const char* cutSpec, const char* cutRange=0) const ;
87  virtual Bool_t isWeighted() const {
88  // Return true as all histograms have in principle events weight != 1
89  return kTRUE ;
90  }
91  virtual Bool_t isNonPoissonWeighted() const ;
92 
93  virtual RooSpan<const double> getWeightBatch(std::size_t, std::size_t) const {
94  //TODO
95  std::cerr << "Retrieving weights in batches not yet implemented for RooDataHist." << std::endl;
96  assert(false);
97 
98  return {};
99  }
100 
101  Double_t sum(Bool_t correctForBinSize, Bool_t inverseCorr=kFALSE) const ;
102  Double_t sum(const RooArgSet& sumSet, const RooArgSet& sliceSet, Bool_t correctForBinSize, Bool_t inverseCorr=kFALSE) ;
103  Double_t sum(const RooArgSet& sumSet, const RooArgSet& sliceSet, Bool_t correctForBinSize, Bool_t inverseCorr, const std::map<const RooAbsArg*, std::pair<Double_t, Double_t> >& ranges);
104 
105  virtual Double_t weight() const {
106  // Return weight of current bin
107  return get_curWeight();
108  }
109  Double_t weightSquared() const ;
110  Double_t weight(const RooArgSet& bin, Int_t intOrder=1, Bool_t correctForBinSize=kFALSE, Bool_t cdfBoundaries=kFALSE, Bool_t oneSafe=kFALSE) ;
111  Double_t binVolume() const { return _curVolume ; }
112  Double_t binVolume(const RooArgSet& bin) ;
113  virtual Bool_t valid() const ;
114 
115  TIterator* sliceIterator(RooAbsArg& sliceArg, const RooArgSet& otherArgs) ;
116 
117  virtual void weightError(Double_t& lo, Double_t& hi, ErrorType etype=Poisson) const ;
118  virtual Double_t weightError(ErrorType etype=Poisson) const {
119  // Return symmetric error on current bin calculated either from Poisson statistics or from SumOfWeights
120  Double_t lo,hi ;
121  weightError(lo,hi,etype) ;
122  return (lo+hi)/2 ;
123  }
124 
125  using RooAbsData::plotOn ;
126  virtual RooPlot *plotOn(RooPlot *frame, PlotOpt o) const;
127 
128  virtual void reset() ;
129  void dump2() ;
130 
131  virtual void printMultiline(std::ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
132  virtual void printArgs(std::ostream& os) const ;
133  virtual void printValue(std::ostream& os) const ;
134 
135  void SetName(const char *name) ;
136  void SetNameTitle(const char *name, const char* title) ;
137 
138  Int_t getIndex(const RooArgSet& coord, Bool_t fast=kFALSE) ;
139 
140  void removeSelfFromDir() { removeFromDir(this) ; }
141 
142 protected:
143 
144  friend class RooAbsCachedPdf ;
145  friend class RooAbsCachedReal ;
146  friend class RooDataHistSliceIter ;
147  friend class RooAbsOptTestStatistic ;
148 
149  Int_t calcTreeIndex() const ;
150  void cacheValidEntries() ;
151 
152  void setAllWeights(Double_t value) ;
153 
154  void initialize(const char* binningName=0,Bool_t fillTree=kTRUE) ;
155  RooDataHist(const char* name, const char* title, RooDataHist* h, const RooArgSet& varSubset,
156  const RooFormulaVar* cutVar, const char* cutRange, Int_t nStart, Int_t nStop, Bool_t copyCache) ;
157  RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange=0,
158  std::size_t nStart=0, std::size_t nStop=std::numeric_limits<std::size_t>::max(), Bool_t copyCache=kTRUE) ;
159  Double_t interpolateDim(RooRealVar& dim, const RooAbsBinning* binning, Double_t xval, Int_t intOrder, Bool_t correctForBinSize, Bool_t cdfBoundaries) ;
160  void calculatePartialBinVolume(const RooArgSet& dimSet) const ;
161  void checkBinBounds() const;
162 
163  void adjustBinning(const RooArgList& vars, const TH1& href, Int_t* offset=0) ;
164  void importTH1(const RooArgList& vars, const TH1& histo, Double_t initWgt, Bool_t doDensityCorrection) ;
165  void importTH1Set(const RooArgList& vars, RooCategory& indexCat, std::map<std::string,TH1*> hmap, Double_t initWgt, Bool_t doDensityCorrection) ;
166  void importDHistSet(const RooArgList& vars, RooCategory& indexCat, std::map<std::string,RooDataHist*> dmap, Double_t initWgt) ;
167 
168  virtual RooAbsData* cacheClone(const RooAbsArg* newCacheOwner, const RooArgSet* newCacheVars, const char* newName=0) ;
169 
170  Double_t get_wgt(const Int_t &idx) const { return _wgt[idx]; }
171  Double_t get_errLo(const Int_t &idx) const { return _errLo[idx]; }
172  Double_t get_errHi(const Int_t &idx) const { return _errHi[idx]; }
173  Double_t get_sumw2(const Int_t &idx) const { return _sumw2[idx]; }
174 
175  Double_t get_curWeight() const { return _curWeight; }
178  Double_t get_curSumW2() const { return _curSumW2; }
179 
180  Int_t get_curIndex() const { return _curIndex; }
181 
182  Int_t _arrSize ; // Size of the weight array
183  std::vector<Int_t> _idxMult ; // Multiplier jump table for index calculation
184 
185  Double_t* _wgt ; //[_arrSize] Weight array
186  Double_t* _errLo ; //[_arrSize] Low-side error on weight array
187  Double_t* _errHi ; //[_arrSize] High-side error on weight array
188  Double_t* _sumw2 ; //[_arrSize] Sum of weights^2
189  Double_t* _binv ; //[_arrSize] Bin volume array
190 
191  RooArgSet _realVars ; // Real dimensions of the dataset
192  Bool_t* _binValid ; //! Valid bins with current range definition
193 
194  mutable Double_t _curWeight{0.}; // Weight associated with the current coordinate
195  mutable Double_t _curWgtErrLo{0.}; // Error on weight associated with the current coordinate
196  mutable Double_t _curWgtErrHi{0.}; // Error on weight associated with the current coordinate
197  mutable Double_t _curSumW2{0.}; // Current sum of weights^2
198  mutable Double_t _curVolume{0.}; // Volume of bin enclosing current coordinate
199  mutable Int_t _curIndex{0}; // Current index
200 
201  mutable std::vector<Double_t>* _pbinv ; //! Partial bin volume array
202  mutable RooCacheManager<std::vector<Double_t> > _pbinvCacheMgr ; //! Cache manager for arrays of partial bin volumes
203  std::vector<RooAbsLValue*> _lvvars ; //! List of observables casted as RooAbsLValue
204  std::vector<const RooAbsBinning*> _lvbins ; //! List of used binnings associated with lvalues
205  mutable std::vector<std::vector<Double_t> > _binbounds; //! list of bin bounds per dimension
206 
207  mutable Int_t _cache_sum_valid{0}; //! Is cache sum valid
208  mutable Double_t _cache_sum{0.}; //! Cache for sum of entries ;
209 
210 
211 private:
212  void _adjustBinning(RooRealVar &theirVar, const TAxis &axis, RooRealVar *ourVar, Int_t *offset);
213 
214  ClassDef(RooDataHist,4) // Binned data set
215 };
216 
217 #endif
218 
RooDirItem::removeFromDir
void removeFromDir(TObject *obj)
Remove object from directory it was added to.
Definition: RooDirItem.cxx:43
RooDataHist::_binbounds
std::vector< std::vector< Double_t > > _binbounds
List of used binnings associated with lvalues.
Definition: RooDataHist.h:205
RooAbsReal::copyCache
virtual void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValDirty=kTRUE)
Copy the cached value of another RooAbsArg to our cache.
Definition: RooAbsReal.cxx:3226
RooDataHist::_curIndex
Int_t _curIndex
Definition: RooDataHist.h:199
RooDataHist::_pbinvCacheMgr
RooCacheManager< std::vector< Double_t > > _pbinvCacheMgr
Partial bin volume array.
Definition: RooDataHist.h:202
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
RooCmdArg
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:27
RooDataHist::_curWeight
Double_t _curWeight
Valid bins with current range definition.
Definition: RooDataHist.h:194
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
RooCacheManager.h
RooDataHist::setAllWeights
void setAllWeights(Double_t value)
Set all the event weight of all bins to the specified value.
Definition: RooDataHist.cxx:1833
RooDataHist::operator=
RooDataHist & operator=(const RooDataHist &)=delete
RooDataHist::get_curIndex
Int_t get_curIndex() const
Definition: RooDataHist.h:180
RooDataHist::~RooDataHist
virtual ~RooDataHist()
Destructor.
Definition: RooDataHist.cxx:934
RooAbsData
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:46
Roo1DTable
Roo1DTable implements a one-dimensional table.
Definition: Roo1DTable.h:23
RooDataHist::set
void set(Double_t weight, Double_t wgtErr=-1)
Set the weight and weight error of the bin enclosing the current (i.e.
Definition: RooDataHist.cxx:1332
RooDataHist::_curWgtErrHi
Double_t _curWgtErrHi
Definition: RooDataHist.h:196
RooArgSet.h
TNamed::GetTitle
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:48
RooDataHist::cacheClone
virtual RooAbsData * cacheClone(const RooAbsArg *newCacheOwner, const RooArgSet *newCacheVars, const char *newName=0)
Construct a clone of this dataset that contains only the cached variables.
Definition: RooDataHist.cxx:861
RooArgList
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:21
RooDirItem
RooDirItem is a utility base class for RooFit objects that are to be attached to ROOT directories.
Definition: RooDirItem.h:22
RooDataHist::importTH1Set
void importTH1Set(const RooArgList &vars, RooCategory &indexCat, std::map< std::string, TH1 * > hmap, Double_t initWgt, Bool_t doDensityCorrection)
Import data from given set of TH1/2/3 into this RooDataHist.
Definition: RooDataHist.cxx:438
RooDataHist::get
virtual const RooArgSet * get() const
Definition: RooDataHist.h:78
RooDataHist::weightSquared
Double_t weightSquared() const
Definition: RooDataHist.cxx:1046
RooDataHist::importTH1
void importTH1(const RooArgList &vars, const TH1 &histo, Double_t initWgt, Bool_t doDensityCorrection)
Import data from given TH1/2/3 into this RooDataHist.
Definition: RooDataHist.cxx:371
RooDataHist::weight
virtual Double_t weight() const
Definition: RooDataHist.h:105
RooDataHistSliceIter
RooDataHistSliceIter iterates over all bins in a RooDataHist that occur in a slice defined by the bin...
Definition: RooDataHistSliceIter.h:26
indent
static void indent(ostringstream &buf, int indent_level)
Definition: TClingCallFunc.cxx:87
RooNameSet.h
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:61
RooDataHist::_binValid
Bool_t * _binValid
Definition: RooDataHist.h:192
RooDataHist::getIndex
Int_t getIndex(const RooArgSet &coord, Bool_t fast=kFALSE)
Calculate bin number of the given coordinates.
Definition: RooDataHist.cxx:962
TString
Basic string class.
Definition: TString.h:136
RooDataHist::importDHistSet
void importDHistSet(const RooArgList &vars, RooCategory &indexCat, std::map< std::string, RooDataHist * > dmap, Double_t initWgt)
Import data from given set of TH1/2/3 into this RooDataHist.
Definition: RooDataHist.cxx:535
RooAbsData::ErrorType
ErrorType
Definition: RooAbsData.h:96
RooDataHist::getWeightBatch
virtual RooSpan< const double > getWeightBatch(std::size_t, std::size_t) const
Return event weights of all events in range [first, first+len).
Definition: RooDataHist.h:93
RooDataHist::_cache_sum
Double_t _cache_sum
Is cache sum valid.
Definition: RooDataHist.h:208
bool
TIterator
Iterator abstract base class.
Definition: TIterator.h:30
RooDataHist::add
virtual void add(const RooArgSet &row, Double_t wgt=1.0)
Definition: RooDataHist.h:66
RooAbsCategory
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
Definition: RooAbsCategory.h:38
RooDataHist::weightError
virtual void weightError(Double_t &lo, Double_t &hi, ErrorType etype=Poisson) const
Return the error on current weight.
Definition: RooDataHist.cxx:1169
RooDataHist::get_curWgtErrLo
Double_t get_curWgtErrLo() const
Definition: RooDataHist.h:176
RooDataHist::checkBinBounds
void checkBinBounds() const
Definition: RooDataHist.cxx:759
RooDataHist::_idxMult
std::vector< Int_t > _idxMult
Definition: RooDataHist.h:183
RooDataHist::_arrSize
Int_t _arrSize
Definition: RooDataHist.h:182
RooDataHist::_realVars
RooArgSet _realVars
Definition: RooDataHist.h:191
hi
float type_of_call hi(const int &, const int &)
RooDataHist::isWeighted
virtual Bool_t isWeighted() const
Definition: RooDataHist.h:87
RooDataHist::binVolume
Double_t binVolume() const
Definition: RooDataHist.h:111
RooDataHist::interpolateDim
Double_t interpolateDim(RooRealVar &dim, const RooAbsBinning *binning, Double_t xval, Int_t intOrder, Bool_t correctForBinSize, Bool_t cdfBoundaries)
Perform boundary safe 'intOrder'-th interpolation of weights in dimension 'dim' at current value 'xva...
Definition: RooDataHist.cxx:1221
RooAbsData::_vars
RooArgSet _vars
Definition: RooAbsData.h:280
RooDataHist::calcTreeIndex
Int_t calcTreeIndex() const
Calculate the index for the weights array corresponding to to the bin enclosing the current coordinat...
Definition: RooDataHist.cxx:980
RooDataHist::get_errHi
Double_t get_errHi(const Int_t &idx) const
Definition: RooDataHist.h:172
RooDataHist
The RooDataHist is a container class to hold N-dimensional binned data.
Definition: RooDataHist.h:39
RooFormulaVar
A RooFormulaVar is a generic implementation of a real-valued object, which takes a RooArgList of serv...
Definition: RooFormulaVar.h:30
RooDataHist::dump2
void dump2()
Debug stuff, should go...
Definition: RooDataHist.cxx:997
RooDataHist::removeSelfFromDir
void removeSelfFromDir()
Definition: RooDataHist.h:140
RooDataHist::_lvvars
std::vector< RooAbsLValue * > _lvvars
Cache manager for arrays of partial bin volumes.
Definition: RooDataHist.h:203
RooDataHist::get_curWeight
Double_t get_curWeight() const
Definition: RooDataHist.h:175
h
#define h(i)
Definition: RSha256.hxx:106
RooDataHist::_adjustBinning
void _adjustBinning(RooRealVar &theirVar, const TAxis &axis, RooRealVar *ourVar, Int_t *offset)
Cache for sum of entries ;.
Definition: RooDataHist.cxx:573
RooDataHist::get_wgt
Double_t get_wgt(const Int_t &idx) const
Definition: RooDataHist.h:170
RooDataHist::initialize
void initialize(const char *binningName=0, Bool_t fillTree=kTRUE)
Initialization procedure: allocate weights array, calculate multipliers needed for N-space to 1-dim a...
Definition: RooDataHist.cxx:667
RooAbsData::plotOn
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Definition: RooAbsData.cxx:547
RooDataHist::sumEntries
virtual Double_t sumEntries() const
Return effective number of entries in dataset, i.e., sum all weights.
Definition: RooDataHist.cxx:1703
RooDataHist::_pbinv
std::vector< Double_t > * _pbinv
Definition: RooDataHist.h:201
RooDataHist::printMultiline
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print the details on the dataset contents.
Definition: RooDataHist.cxx:1976
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooDataHist::_errHi
Double_t * _errHi
Definition: RooDataHist.h:187
RooAbsTestStatistic::offset
virtual Double_t offset() const
Definition: RooAbsTestStatistic.h:64
RooDataHist::Clone
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Definition: RooDataHist.h:55
RooLinkedList
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:35
RooAbsBinning
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
Definition: RooAbsBinning.h:26
RooDirItem.h
RooDataHist::_errLo
Double_t * _errLo
Definition: RooDataHist.h:186
RooPlot
A RooPlot is a plot frame and a container for graphics objects within that frame.
Definition: RooPlot.h:44
RooDataHist::RooDataHist
RooDataHist()
Default constructor.
Definition: RooDataHist.cxx:66
RooDataHist::adjustBinning
void adjustBinning(const RooArgList &vars, const TH1 &href, Int_t *offset=0)
Adjust binning specification on first and optionally second and third observable to binning in given ...
Definition: RooDataHist.cxx:639
RooDataHist::cacheValidEntries
void cacheValidEntries()
Cache the datahist entries with bin centers that are inside/outside the current observable definitio.
Definition: RooDataHist.cxx:1920
RooDataHist::printValue
virtual void printValue(std::ostream &os) const
Print value of the dataset, i.e. the sum of weights contained in the dataset.
Definition: RooDataHist.cxx:1888
RooDataHist::SetName
void SetName(const char *name)
Change the name of the RooDataHist.
Definition: RooDataHist.cxx:1866
RooAbsCachedPdf
RooAbsCachedPdf is the abstract base class for p.d.f.s that need or want to cache their evaluate() ou...
Definition: RooAbsCachedPdf.h:25
RooDataHist::_binv
Double_t * _binv
Definition: RooDataHist.h:189
RooAbsData::Poisson
@ Poisson
Definition: RooAbsData.h:96
RooDataHist::_curSumW2
Double_t _curSumW2
Definition: RooDataHist.h:197
RooDataHist::_curVolume
Double_t _curVolume
Definition: RooDataHist.h:198
RooDataHist::calculatePartialBinVolume
void calculatePartialBinVolume(const RooArgSet &dimSet) const
Fill the transient cache with partial bin volumes with up-to-date values for the partial volume speci...
Definition: RooDataHist.cxx:1643
RooDataHist::sliceIterator
TIterator * sliceIterator(RooAbsArg &sliceArg, const RooArgSet &otherArgs)
Create an iterator over all bins in a slice defined by the subset of observables listed in sliceArg.
Definition: RooDataHist.cxx:1848
RooDataHist::sum
Double_t sum(Bool_t correctForBinSize, Bool_t inverseCorr=kFALSE) const
Return the sum of the weights of all hist bins.
Definition: RooDataHist.cxx:1430
RooDataHist::isNonPoissonWeighted
virtual Bool_t isNonPoissonWeighted() const
Returns true if datasets contains entries with a non-integer weight.
Definition: RooDataHist.cxx:1962
RooAbsData.h
Double_t
double Double_t
Definition: RtypesCore.h:59
RooDataHist::SetNameTitle
void SetNameTitle(const char *name, const char *title)
Change the title of this RooDataHist.
Definition: RooDataHist.cxx:1877
RooCategory
RooCategory is an object to represent discrete states.
Definition: RooCategory.h:27
RooDataHist::numEntries
virtual Int_t numEntries() const
Return the number of bins.
Definition: RooDataHist.cxx:1694
RooAbsOptTestStatistic
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
Definition: RooAbsOptTestStatistic.h:28
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooDataHist::reset
virtual void reset()
Reset all bin weights to zero.
Definition: RooDataHist.cxx:1767
RooDataHist::printArgs
virtual void printArgs(std::ostream &os) const
Print argument of dataset, i.e. the observable names.
Definition: RooDataHist.cxx:1899
TH1
TH1 is the base class of all histogramm classes in ROOT.
Definition: TH1.h:58
RooDataHist::_lvbins
std::vector< const RooAbsBinning * > _lvbins
List of observables casted as RooAbsLValue.
Definition: RooDataHist.h:204
name
char name[80]
Definition: TGX11.cxx:110
RooDataHist::_curWgtErrLo
Double_t _curWgtErrLo
Definition: RooDataHist.h:195
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
RooDataHist::_wgt
Double_t * _wgt
Definition: RooDataHist.h:185
RooDataHist::plotOn
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Definition: RooAbsData.cxx:547
RooCacheManager
Template class RooCacheManager manages the storage of any type of data indexed on the choice of norma...
Definition: RooCacheManager.h:35
RooAbsArg
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:73
RooAbsLValue
Abstract base class for objects that are lvalues, i.e.
Definition: RooAbsLValue.h:26
TNamed::GetName
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
RooDataHist::get_curWgtErrHi
Double_t get_curWgtErrHi() const
Definition: RooDataHist.h:177
RooDataHist::get_sumw2
Double_t get_sumw2(const Int_t &idx) const
Definition: RooDataHist.h:173
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:36
RooDataHist::get_errLo
Double_t get_errLo(const Int_t &idx) const
Definition: RooDataHist.h:171
RooDataHist::_cache_sum_valid
Int_t _cache_sum_valid
list of bin bounds per dimension
Definition: RooDataHist.h:207
RooDataHist::reduceEng
RooAbsData * reduceEng(const RooArgSet &varSubset, const RooFormulaVar *cutVar, const char *cutRange=0, std::size_t nStart=0, std::size_t nStop=std::numeric_limits< std::size_t >::max(), Bool_t copyCache=kTRUE)
Implementation of RooAbsData virtual method that drives the RooAbsData::reduce() methods.
Definition: RooDataHist.cxx:879
RooDataHist::_sumw2
Double_t * _sumw2
Definition: RooDataHist.h:188
RooDataHist::weightError
virtual Double_t weightError(ErrorType etype=Poisson) const
Return error on current weight (dummy implementation returning zero)
Definition: RooDataHist.h:118
RooDataHist::valid
virtual Bool_t valid() const
Return true if currently loaded coordinate is considered valid within the current range definitions o...
Definition: RooDataHist.cxx:1947
RooDataHist::get_curSumW2
Double_t get_curSumW2() const
Definition: RooDataHist.h:178
RooAbsCachedReal
RooAbsCachedReal is the abstract base class for functions that need or want to cache their evaluate()...
Definition: RooAbsCachedReal.h:24
RooDataHist::emptyClone
virtual RooAbsData * emptyClone(const char *newName=0, const char *newTitle=0, const RooArgSet *vars=0, const char *=0) const
Definition: RooDataHist.h:60
RooSpan
A simple container to hold a batch of data values.
Definition: RooSpan.h:33
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
int