Logo ROOT  
Reference Guide
RooAbsData.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooAbsData.h,v 1.33 2007/07/16 21:04:28 wouter 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_ABS_DATA
17 #define ROO_ABS_DATA
18 
19 #include "TNamed.h"
20 #include "RooPrintable.h"
21 #include "RooArgSet.h"
22 #include "RooArgList.h"
23 #include "RooSpan.h"
24 #include <map>
25 #include <string>
26 
27 class RooAbsArg;
28 class RooAbsReal ;
29 class RooRealVar;
30 class RooAbsRealLValue;
31 class RooAbsCategory ;
33 class Roo1DTable ;
34 class RooPlot;
35 class RooArgList;
36 class TH1;
37 class TH2F;
38 class RooAbsBinning ;
39 class Roo1DTable ;
40 class RooAbsDataStore ;
41 template<typename T> class TMatrixTSym;
43 class RooFormulaVar;
44 
45 
46 class RooAbsData : public TNamed, public RooPrintable {
47 public:
48 
49  // Constructors, factory methods etc.
50  RooAbsData() ;
51  RooAbsData(const char *name, const char *title, const RooArgSet& vars, RooAbsDataStore* store=0) ;
52  RooAbsData(const RooAbsData& other, const char* newname = 0) ;
53  RooAbsData& operator=(const RooAbsData& other);
54  virtual ~RooAbsData() ;
55  virtual RooAbsData* emptyClone(const char* newName=0, const char* newTitle=0, const RooArgSet* vars=0, const char* wgtVarName=0) const = 0 ;
56 
57  // Reduction methods
58  RooAbsData* reduce(const RooCmdArg& arg1,const RooCmdArg& arg2=RooCmdArg(),const RooCmdArg& arg3=RooCmdArg(),const RooCmdArg& arg4=RooCmdArg(),
59  const RooCmdArg& arg5=RooCmdArg(),const RooCmdArg& arg6=RooCmdArg(),const RooCmdArg& arg7=RooCmdArg(),const RooCmdArg& arg8=RooCmdArg()) ;
60  RooAbsData* reduce(const char* cut) ;
61  RooAbsData* reduce(const RooFormulaVar& cutVar) ;
62  RooAbsData* reduce(const RooArgSet& varSubset, const char* cut=0) ;
63  RooAbsData* reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar) ;
64 
65  RooAbsDataStore* store() { return _dstore ; }
66  const RooAbsDataStore* store() const { return _dstore ; }
67  const TTree* tree() const ;
68  TTree *GetClonedTree() const;
69 
70  void convertToVectorStore() ;
71  virtual void convertToTreeStore();
72 
73  void attachBuffers(const RooArgSet& extObs) ;
74  void resetBuffers() ;
75 
76 
77  virtual void Draw(Option_t* option = "") ;
78 
79  void checkInit() const ;
80 
81  // Change name of observable
82  virtual Bool_t changeObservableName(const char* from, const char* to) ;
83 
84  // Add one ore more rows of data
85  virtual void add(const RooArgSet& row, Double_t weight=1, Double_t weightError=0) = 0 ; // DERIVED
86  virtual void fill() ;
87 
88  // Load a given row of data
89  virtual inline const RooArgSet* get() const {
90  // Return current row of dataset
91  return &_vars ;
92  }
93  virtual Double_t weight() const = 0 ; // DERIVED
94  virtual Double_t weightSquared() const = 0 ; // DERIVED
95  virtual Bool_t valid() const { return kTRUE ; }
97  virtual Double_t weightError(ErrorType etype=Poisson) const ;
98  virtual void weightError(Double_t& lo, Double_t& hi, ErrorType etype=Poisson) const ;
99  virtual const RooArgSet* get(Int_t index) const ;
100 
101  ////////////////////////////////////////////////////////////////////////////////
102  /// Return event weights of all events in range [first, first+len).
103  /// If no contiguous structure of weights is stored, an empty batch can be returned.
104  /// This indicates that the weight is constant. Use weight() to retrieve it.
105  virtual RooSpan<const double> getWeightBatch(std::size_t first, std::size_t len) const = 0;
106 
107  virtual Int_t numEntries() const ;
108  virtual Double_t sumEntries() const = 0 ;
109  virtual Double_t sumEntries(const char* cutSpec, const char* cutRange=0) const = 0 ; // DERIVED
110  virtual Bool_t isWeighted() const {
111  // Do events in dataset have weights?
112  return kFALSE ;
113  }
114  virtual Bool_t isNonPoissonWeighted() const {
115  // Do events in dataset have non-integer weights?
116  return kFALSE ;
117  }
118  virtual void reset() ;
119 
120 
121  Bool_t getRange(const RooAbsRealLValue& var, Double_t& lowest, Double_t& highest, Double_t marginFrac=0, Bool_t symMode=kFALSE) const ;
122 
123  // Plot the distribution of a real valued arg
124  virtual Roo1DTable* table(const RooArgSet& catSet, const char* cuts="", const char* opts="") const ;
125  virtual Roo1DTable* table(const RooAbsCategory& cat, const char* cuts="", const char* opts="") const ;
126  /// \see RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
127  virtual RooPlot* plotOn(RooPlot* frame,
128  const RooCmdArg& arg1=RooCmdArg::none(), const RooCmdArg& arg2=RooCmdArg::none(),
129  const RooCmdArg& arg3=RooCmdArg::none(), const RooCmdArg& arg4=RooCmdArg::none(),
130  const RooCmdArg& arg5=RooCmdArg::none(), const RooCmdArg& arg6=RooCmdArg::none(),
131  const RooCmdArg& arg7=RooCmdArg::none(), const RooCmdArg& arg8=RooCmdArg::none()) const ;
132 
133  virtual RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const ;
134 
135  // WVE --- This needs to be public to avoid CINT problems
136  struct PlotOpt {
139  scaleFactor(1.) {} ;
140  const char* cuts ;
144  const char* cutRange ;
145  const char* histName ;
147  const char* addToHistName ;
154  } ;
155 
156  // Split a dataset by a category
157  virtual TList* split(const RooAbsCategory& splitCat, Bool_t createEmptyDataSets=kFALSE) const ;
158 
159  // Fast splitting for SimMaster setData
160  Bool_t canSplitFast() const ;
161  RooAbsData* getSimData(const char* idxstate) ;
162 
163  /// Calls createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) const
164  TH1 *createHistogram(const char *name, const RooAbsRealLValue& xvar,
165  const RooCmdArg& arg1=RooCmdArg::none(), const RooCmdArg& arg2=RooCmdArg::none(),
166  const RooCmdArg& arg3=RooCmdArg::none(), const RooCmdArg& arg4=RooCmdArg::none(),
167  const RooCmdArg& arg5=RooCmdArg::none(), const RooCmdArg& arg6=RooCmdArg::none(),
168  const RooCmdArg& arg7=RooCmdArg::none(), const RooCmdArg& arg8=RooCmdArg::none()) const ;
169  /// Create and fill a ROOT histogram TH1,TH2 or TH3 with the values of this dataset.
170  TH1 *createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) const ;
171  TH1 *createHistogram(const char* varNameList, Int_t xbins=0, Int_t ybins=0, Int_t zbins=0) const ;
172 
173  // Fill an existing histogram
174  virtual TH1 *fillHistogram(TH1 *hist, const RooArgList &plotVars, const char *cuts= "", const char* cutRange=0) const;
175 
176  // Printing interface (human readable)
177  inline virtual void Print(Option_t *options= 0) const {
178  // Print contents on stdout
180  }
181 
182  virtual void printName(std::ostream& os) const ;
183  virtual void printTitle(std::ostream& os) const ;
184  virtual void printClassName(std::ostream& os) const ;
185  void printMultiline(std::ostream& os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const ;
186 
187  virtual Int_t defaultPrintContents(Option_t* opt) const ;
188 
189  void setDirtyProp(Bool_t flag) ;
190 
191  Double_t moment(const RooRealVar& var, Double_t order, const char* cutSpec=0, const char* cutRange=0) const ;
192  Double_t moment(const RooRealVar& var, Double_t order, Double_t offset, const char* cutSpec=0, const char* cutRange=0) const ;
193  Double_t standMoment(const RooRealVar& var, Double_t order, const char* cutSpec=0, const char* cutRange=0) const ;
194 
195  Double_t mean(const RooRealVar& var, const char* cutSpec=0, const char* cutRange=0) const { return moment(var,1,0,cutSpec,cutRange) ; }
196  Double_t sigma(const RooRealVar& var, const char* cutSpec=0, const char* cutRange=0) const { return sqrt(moment(var,2,cutSpec,cutRange)) ; }
197  Double_t skewness(const RooRealVar& var, const char* cutSpec=0, const char* cutRange=0) const { return standMoment(var,3,cutSpec,cutRange) ; }
198  Double_t kurtosis(const RooRealVar& var, const char* cutSpec=0, const char* cutRange=0) const { return standMoment(var,4,cutSpec,cutRange) ; }
199 
200  Double_t covariance(RooRealVar &x,RooRealVar &y, const char* cutSpec=0, const char* cutRange=0) const { return corrcov(x,y,cutSpec,cutRange,kFALSE) ; }
201  Double_t correlation(RooRealVar &x,RooRealVar &y, const char* cutSpec=0, const char* cutRange=0) const { return corrcov(x,y,cutSpec,cutRange,kTRUE) ; }
202 
203  TMatrixDSym* covarianceMatrix(const char* cutSpec=0, const char* cutRange=0) const { return covarianceMatrix(*get(),cutSpec,cutRange) ; }
204  TMatrixDSym* correlationMatrix(const char* cutSpec=0, const char* cutRange=0) const { return correlationMatrix(*get(),cutSpec,cutRange) ; }
205  TMatrixDSym* covarianceMatrix(const RooArgList& vars, const char* cutSpec=0, const char* cutRange=0) const { return corrcovMatrix(vars,cutSpec,cutRange,kFALSE) ; }
206  TMatrixDSym* correlationMatrix(const RooArgList& vars, const char* cutSpec=0, const char* cutRange=0) const { return corrcovMatrix(vars,cutSpec,cutRange,kTRUE) ; }
207 
208  RooRealVar* meanVar(const RooRealVar &var, const char* cutSpec=0, const char* cutRange=0) const ;
209  RooRealVar* rmsVar(const RooRealVar &var, const char* cutSpec=0, const char* cutRange=0) const ;
210 
211  virtual RooPlot* statOn(RooPlot* frame,
212  const RooCmdArg& arg1=RooCmdArg::none(), const RooCmdArg& arg2=RooCmdArg::none(),
213  const RooCmdArg& arg3=RooCmdArg::none(), const RooCmdArg& arg4=RooCmdArg::none(),
214  const RooCmdArg& arg5=RooCmdArg::none(), const RooCmdArg& arg6=RooCmdArg::none(),
215  const RooCmdArg& arg7=RooCmdArg::none(), const RooCmdArg& arg8=RooCmdArg::none()) ;
216 
217  virtual RooPlot* statOn(RooPlot* frame, const char *what,
218  const char *label= "", Int_t sigDigits= 2,
219  Option_t *options= "NELU", Double_t xmin=0.15,
220  Double_t xmax= 0.65,Double_t ymax=0.85,
221  const char* cutSpec=0, const char* cutRange=0,
222  const RooCmdArg* formatCmd=0);
223 
224  virtual void RecursiveRemove(TObject *obj);
225 
226  Bool_t hasFilledCache() const ;
227 
228  void addOwnedComponent(const char* idxlabel, RooAbsData& data) ;
229  static void claimVars(RooAbsData*) ;
230  static Bool_t releaseVars(RooAbsData*) ;
231 
233 
234  static void setDefaultStorageType(StorageType s) ;
235 
237 
238 protected:
239 
241 
243 
244  Double_t corrcov(const RooRealVar& x, const RooRealVar& y, const char* cutSpec, const char* cutRange, Bool_t corr) const ;
245  TMatrixDSym* corrcovMatrix(const RooArgList& vars, const char* cutSpec, const char* cutRange, Bool_t corr) const ;
246 
247  virtual void optimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList, const RooArgSet& keepObsList) ;
249 
250 
251  // PlotOn implementation
252  virtual RooPlot *plotOn(RooPlot *frame, PlotOpt o) const ;
253  virtual RooPlot *plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, PlotOpt o) const ;
254  virtual RooPlot *plotEffOn(RooPlot* frame, const RooAbsCategoryLValue& effCat, PlotOpt o) const ;
255 
256 
257  // Constant term optimizer interface
258  friend class RooAbsArg ;
259  friend class RooAbsReal ;
260  friend class RooAbsOptTestStatistic ;
261  friend class RooAbsCachedPdf ;
262 
263  virtual void cacheArgs(const RooAbsArg* owner, RooArgSet& varSet, const RooArgSet* nset=0, Bool_t skipZeroWeights=kFALSE) ;
264  virtual void resetCache() ;
265  virtual void setArgStatus(const RooArgSet& set, Bool_t active) ;
266  virtual void attachCache(const RooAbsArg* newOwner, const RooArgSet& cachedVars) ;
267 
268  virtual RooAbsData* cacheClone(const RooAbsArg* newCacheOwner, const RooArgSet* newCacheVars, const char* newName=0) = 0 ; // DERIVED
269  virtual RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange=0,
270  std::size_t nStart = 0, std::size_t = std::numeric_limits<std::size_t>::max(), Bool_t copyCache=kTRUE) = 0 ; // DERIVED
271 
272  RooRealVar* dataRealVar(const char* methodname, const RooRealVar& extVar) const ;
273 
274  // Column structure definition
275  RooArgSet _vars; // Dimensions of this data set
276  RooArgSet _cachedVars ; //! External variables cached with this data set
277 
278  RooAbsDataStore* _dstore ; // Data storage implementation
279 
280  std::map<std::string,RooAbsData*> _ownedComponents ; // Owned external components
281 
282 private:
283  ClassDef(RooAbsData, 5) // Abstract data collection
284 };
285 
286 #endif
RooAbsData::PlotOpt::scaleFactor
Double_t scaleFactor
Definition: RooAbsData.h:153
RooAbsData::Tree
@ Tree
Definition: RooAbsData.h:232
RooAbsData::correlationMatrix
TMatrixDSym * correlationMatrix(const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:204
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
RooCmdArg
Definition: RooCmdArg.h:27
first
Definition: first.py:1
RooAbsData::printName
virtual void printName(std::ostream &os) const
Print name of dataset.
Definition: RooAbsData.cxx:779
ymax
float ymax
Definition: THbookFile.cxx:95
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
RooAbsData::PlotOpt
Definition: RooAbsData.h:136
RooAbsData::plotEffOn
virtual RooPlot * plotEffOn(RooPlot *frame, const RooAbsCategoryLValue &effCat, PlotOpt o) const
Create and fill a histogram with the efficiency N[1] / ( N[1] + N[0] ), where N(1/0) is the number of...
Definition: RooAbsData.cxx:1968
RooAbsData::correlationMatrix
TMatrixDSym * correlationMatrix(const RooArgList &vars, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:206
RooAbsData::isNonPoissonWeighted
virtual Bool_t isNonPoissonWeighted() const
Definition: RooAbsData.h:114
RooAbsData::PlotOpt::cutRange
const char * cutRange
Definition: RooAbsData.h:144
RooAbsData
Definition: RooAbsData.h:46
RooAbsData::cacheArgs
virtual void cacheArgs(const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)
Internal method – Cache given set of functions with data.
Definition: RooAbsData.cxx:330
RooAbsData::SumW2
@ SumW2
Definition: RooAbsData.h:96
Roo1DTable
Definition: Roo1DTable.h:23
RooAbsData::weightError
virtual Double_t weightError(ErrorType etype=Poisson) const
Return error on current weight (dummy implementation returning zero)
Definition: RooAbsData.cxx:533
RooAbsData::printMultiline
void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Interface for detailed printing of object.
Definition: RooAbsData.cxx:802
TH2F
2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:251
RooArgSet.h
RooAbsData::skewness
Double_t skewness(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:197
RooAbsData::isWeighted
virtual Bool_t isWeighted() const
Definition: RooAbsData.h:110
RooAbsData::_ownedComponents
std::map< std::string, RooAbsData * > _ownedComponents
Definition: RooAbsData.h:280
RooAbsData::meanVar
RooRealVar * meanVar(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the mean of observable 'var' in this dataset.
Definition: RooAbsData.cxx:1072
RooAbsData::PlotOpt::refreshFrameNorm
Bool_t refreshFrameNorm
Definition: RooAbsData.h:151
RooAbsData::canSplitFast
Bool_t canSplitFast() const
Definition: RooAbsData.cxx:2281
RooAbsData::GetClonedTree
TTree * GetClonedTree() const
Return a clone of the TTree which stores the data or create such a tree if vector storage is used.
Definition: RooAbsData.cxx:2365
xmax
float xmax
Definition: THbookFile.cxx:95
RooAbsData::_dstore
RooAbsDataStore * _dstore
External variables cached with this data set.
Definition: RooAbsData.h:278
RooAbsData::fill
virtual void fill()
Definition: RooAbsData.cxx:300
TNamed.h
RooArgList
Definition: RooArgList.h:21
RooAbsData::mean
Double_t mean(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:195
TTree
Definition: TTree.h:79
RooAbsData::Composite
@ Composite
Definition: RooAbsData.h:232
RooAbsData::Auto
@ Auto
Definition: RooAbsData.h:96
RooAbsData::sigma
Double_t sigma(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:196
RooAbsData::weight
virtual Double_t weight() const =0
RooAbsData::RecursiveRemove
virtual void RecursiveRemove(TObject *obj)
If one of the TObject we have a referenced to is deleted, remove the reference.
Definition: RooAbsData.cxx:2393
RooAbsData::resetBuffers
void resetBuffers()
Definition: RooAbsData.cxx:2274
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
RooAbsData::getDefaultStorageType
static StorageType getDefaultStorageType()
Definition: RooAbsData.cxx:89
RooPrintable.h
RooAbsData::defaultStorageType
static StorageType defaultStorageType
Definition: RooAbsData.h:240
RooAbsData::PlotOpt::correctForBinWidth
Bool_t correctForBinWidth
Definition: RooAbsData.h:152
RooAbsData::Print
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
Definition: RooAbsData.h:177
RooAbsData::valid
virtual Bool_t valid() const
Definition: RooAbsData.h:95
RooAbsData::claimVars
static void claimVars(RooAbsData *)
Definition: RooAbsData.cxx:96
x
Double_t x[n]
Definition: legend1.C:17
RooAbsData::store
RooAbsDataStore * store()
Definition: RooAbsData.h:65
indent
static void indent(ostringstream &buf, int indent_level)
Definition: TClingCallFunc.cxx:87
RooAbsData::store
const RooAbsDataStore * store() const
Definition: RooAbsData.h:66
RooAbsReal
Definition: RooAbsReal.h:61
TMatrixTSym
Definition: TMatrixDSymfwd.h:22
RooAbsData::fillHistogram
virtual TH1 * fillHistogram(TH1 *hist, const RooArgList &plotVars, const char *cuts="", const char *cutRange=0) const
Loop over columns of our tree data and fill the input histogram.
Definition: RooAbsData.cxx:1289
RooAbsData::releaseVars
static Bool_t releaseVars(RooAbsData *)
If return value is true variables can be deleted.
Definition: RooAbsData.cxx:105
RooAbsData::checkInit
void checkInit() const
Definition: RooAbsData.cxx:2325
RooAbsData::cacheClone
virtual RooAbsData * cacheClone(const RooAbsArg *newCacheOwner, const RooArgSet *newCacheVars, const char *newName=0)=0
RooAbsData::printClassName
virtual void printClassName(std::ostream &os) const
Print class name of dataset.
Definition: RooAbsData.cxx:795
RooAbsData::PlotOpt::cuts
const char * cuts
Definition: RooAbsData.h:139
TString
Definition: TString.h:136
RooPrintable
Definition: RooPrintable.h:25
RooCmdArg::none
static const RooCmdArg & none()
Return reference to null argument.
Definition: RooCmdArg.cxx:52
RooAbsData::ErrorType
ErrorType
Definition: RooAbsData.h:96
RooAbsData::sumEntries
virtual Double_t sumEntries() const =0
bool
RooAbsCategory
Definition: RooAbsCategory.h:38
RooAbsData::tree
const TTree * tree() const
Return a pointer to the TTree which stores the data.
Definition: RooAbsData.cxx:2350
RooAbsData::standMoment
Double_t standMoment(const RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate standardized moment.
Definition: RooAbsData.cxx:824
hi
float type_of_call hi(const int &, const int &)
RooAbsData::covarianceMatrix
TMatrixDSym * covarianceMatrix(const RooArgList &vars, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:205
RooAbsData::allClientsCached
Bool_t allClientsCached(RooAbsArg *, const RooArgSet &)
Utility function that determines if all clients of object 'var' appear in given list of cached nodes.
Definition: RooAbsData.cxx:2250
RooAbsData::getRange
Bool_t getRange(const RooAbsRealLValue &var, Double_t &lowest, Double_t &highest, Double_t marginFrac=0, Bool_t symMode=kFALSE) const
Fill Doubles 'lowest' and 'highest' with the lowest and highest value of observable 'var' in this dat...
Definition: RooAbsData.cxx:2118
RooAbsData::getSimData
RooAbsData * getSimData(const char *idxstate)
Definition: RooAbsData.cxx:2291
RooAbsData::split
virtual TList * split(const RooAbsCategory &splitCat, Bool_t createEmptyDataSets=kFALSE) const
Split dataset into subsets based on states of given splitCat in this dataset.
Definition: RooAbsData.cxx:1479
RooAbsData::Expected
@ Expected
Definition: RooAbsData.h:96
RooAbsData::_vars
RooArgSet _vars
Definition: RooAbsData.h:275
RooAbsData::table
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.
Definition: RooAbsData.cxx:749
RooAbsData::PlotOpt::addToWgtSelf
Double_t addToWgtSelf
Definition: RooAbsData.h:148
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
RooFormulaVar
Definition: RooFormulaVar.h:30
RooAbsData::moment
Double_t moment(const RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate moment of requested order.
Definition: RooAbsData.cxx:843
RooAbsData::reduceEng
virtual RooAbsData * reduceEng(const RooArgSet &varSubset, const RooFormulaVar *cutVar, const char *cutRange=0, std::size_t nStart=0, std::size_t=std::numeric_limits< std::size_t >::max(), Bool_t copyCache=kTRUE)=0
xmin
float xmin
Definition: THbookFile.cxx:95
RooAbsData::Vector
@ Vector
Definition: RooAbsData.h:232
RooAbsData::optimizeReadingWithCaching
virtual void optimizeReadingWithCaching(RooAbsArg &arg, const RooArgSet &cacheList, const RooArgSet &keepObsList)
Prepare dataset for use with cached constant terms listed in 'cacheList' of expression 'arg'.
Definition: RooAbsData.cxx:2183
RooPrintable::defaultPrintStream
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
Definition: RooPrintable.cxx:272
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
TNamed
Definition: TNamed.h:29
RooAbsData::setDirtyProp
void setDirtyProp(Bool_t flag)
Control propagation of dirty flags from observables in dataset.
Definition: RooAbsData.cxx:362
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooAbsData::PlotOpt::xErrorSize
Double_t xErrorSize
Definition: RooAbsData.h:150
RooAbsData::get
virtual const RooArgSet * get() const
Definition: RooAbsData.h:89
RooAbsData::storageType
StorageType storageType
Definition: RooAbsData.h:242
RooAbsData::createHistogram
TH1 * createHistogram(const char *name, const RooAbsRealLValue &xvar, 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
Calls createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) c...
Definition: RooAbsData.cxx:629
RooLinkedList
Definition: RooLinkedList.h:35
RooAbsBinning
Definition: RooAbsBinning.h:26
RooAbsData::PlotOpt::histInvisible
Bool_t histInvisible
Definition: RooAbsData.h:146
RooAbsData::setDefaultStorageType
static void setDefaultStorageType(StorageType s)
Definition: RooAbsData.cxx:78
RooAbsData::rmsVar
RooRealVar * rmsVar(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the RMS of observable 'var' in this dataset.
Definition: RooAbsData.cxx:1108
RooPlot
Definition: RooPlot.h:44
what
static const char * what
Definition: stlLoader.cc:6
RooAbsData::convertToVectorStore
void convertToVectorStore()
Convert tree-based storage to vector-based storage.
Definition: RooAbsData.cxx:275
RooAbsData::numEntries
virtual Int_t numEntries() const
Definition: RooAbsData.cxx:307
y
Double_t y[n]
Definition: legend1.C:17
sqrt
double sqrt(double)
RooAbsData::corrcovMatrix
TMatrixDSym * corrcovMatrix(const RooArgList &vars, const char *cutSpec, const char *cutRange, Bool_t corr) const
Return covariance matrix from data for given list of observables.
Definition: RooAbsData.cxx:976
RooAbsData::operator=
RooAbsData & operator=(const RooAbsData &other)
Definition: RooAbsData.cxx:211
RooAbsCachedPdf
Definition: RooAbsCachedPdf.h:25
RooAbsData::kurtosis
Double_t kurtosis(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:198
RooAbsData::Poisson
@ Poisson
Definition: RooAbsData.h:96
RooAbsData::hasFilledCache
Bool_t hasFilledCache() const
Definition: RooAbsData.cxx:2340
RooAbsData::PlotOpt::bins
RooAbsBinning * bins
Definition: RooAbsData.h:142
RooAbsData::addOwnedComponent
void addOwnedComponent(const char *idxlabel, RooAbsData &data)
Definition: RooAbsData.cxx:2300
RooAbsData::dataRealVar
RooRealVar * dataRealVar(const char *methodname, const RooRealVar &extVar) const
Internal method to check if given RooRealVar maps to a RooRealVar in this dataset.
Definition: RooAbsData.cxx:901
RooAbsData::None
@ None
Definition: RooAbsData.h:96
RooAbsData::PlotOpt::PlotOpt
PlotOpt()
Definition: RooAbsData.h:137
RooAbsData::emptyClone
virtual RooAbsData * emptyClone(const char *newName=0, const char *newTitle=0, const RooArgSet *vars=0, const char *wgtVarName=0) const =0
Double_t
double Double_t
Definition: RtypesCore.h:59
RooAbsData::PlotOpt::addToHistName
const char * addToHistName
Definition: RooAbsData.h:147
RooAbsData::Draw
virtual void Draw(Option_t *option="")
Forward draw command to data store.
Definition: RooAbsData.cxx:2333
RooAbsData::plotAsymOn
virtual RooPlot * plotAsymOn(RooPlot *frame, const RooAbsCategoryLValue &asymCat, PlotOpt o) const
Create and fill a histogram with the asymmetry N[+] - N[-] / ( N[+] + N[-] ), where N(+/-) is the num...
Definition: RooAbsData.cxx:1874
RooAbsData::~RooAbsData
virtual ~RooAbsData()
Destructor.
Definition: RooAbsData.cxx:253
RooAbsData::reduce
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
Definition: RooAbsData.cxx:382
RooAbsData::weightSquared
virtual Double_t weightSquared() const =0
RooAbsOptTestStatistic
Definition: RooAbsOptTestStatistic.h:28
RooAbsData::getWeightBatch
virtual RooSpan< const double > getWeightBatch(std::size_t first, std::size_t len) const =0
Return event weights of all events in range [first, first+len).
RooAbsData::PlotOpt::addToWgtOther
Double_t addToWgtOther
Definition: RooAbsData.h:149
RooAbsData::changeObservableName
virtual Bool_t changeObservableName(const char *from, const char *to)
Definition: RooAbsData.cxx:287
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsData::resetCache
virtual void resetCache()
Internal method – Remove cached function values.
Definition: RooAbsData.cxx:338
TH1
Definition: TH1.h:57
RooAbsData::RooAbsData
RooAbsData()
Default constructor.
Definition: RooAbsData.cxx:118
name
char name[80]
Definition: TGX11.cxx:110
RooAbsData::covariance
Double_t covariance(RooRealVar &x, RooRealVar &y, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:200
RooAbsData::StorageType
StorageType
Definition: RooAbsData.h:232
RooPrintable::printStream
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
Definition: RooPrintable.cxx:75
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
RooAbsData::PlotOpt::etype
RooAbsData::ErrorType etype
Definition: RooAbsData.h:143
RooAbsArg
Definition: RooAbsArg.h:73
RooAbsData::covarianceMatrix
TMatrixDSym * covarianceMatrix(const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:203
RooAbsData::attachBuffers
void attachBuffers(const RooArgSet &extObs)
Definition: RooAbsData.cxx:2267
RooSpan.h
RooAbsData::convertToTreeStore
virtual void convertToTreeStore()
Convert vector-based storage to tree-based storage.
Definition: RooAbsData.cxx:2379
RooAbsData::add
virtual void add(const RooArgSet &row, Double_t weight=1, Double_t weightError=0)=0
RooAbsDataStore
Definition: RooAbsDataStore.h:31
RooAbsData::attachCache
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Internal method – Attach dataset copied with cache contents to copied instances of functions.
Definition: RooAbsData.cxx:347
RooAbsCategoryLValue
Definition: RooAbsCategoryLValue.h:25
RooPrintable::defaultPrintStyle
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Definition: RooPrintable.cxx:241
RooRealVar
Definition: RooRealVar.h:35
RooAbsData::statOn
virtual RooPlot * statOn(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())
Add a box with statistics information to the specified frame.
Definition: RooAbsData.cxx:1165
RooAbsData::corrcov
Double_t corrcov(const RooRealVar &x, const RooRealVar &y, const char *cutSpec, const char *cutRange, Bool_t corr) const
Internal method to calculate single correlation and covariance elements.
Definition: RooAbsData.cxx:920
RooAbsRealLValue
Definition: RooAbsRealLValue.h:31
RooArgList.h
RooAbsData::correlation
Double_t correlation(RooRealVar &x, RooRealVar &y, const char *cutSpec=0, const char *cutRange=0) const
Definition: RooAbsData.h:201
RooAbsData::PlotOpt::histName
const char * histName
Definition: RooAbsData.h:145
RooAbsData::defaultPrintContents
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
Definition: RooAbsData.cxx:810
TList
Definition: TList.h:44
RooSpan
A simple container to hold a batch of data values.
Definition: RooSpan.h:33
RooAbsData::_cachedVars
RooArgSet _cachedVars
Definition: RooAbsData.h:276
RooArgSet
Definition: RooArgSet.h:28
RooAbsData::PlotOpt::drawOptions
Option_t * drawOptions
Definition: RooAbsData.h:141
int
RooAbsData::setArgStatus
virtual void setArgStatus(const RooArgSet &set, Bool_t active)
Definition: RooAbsData.cxx:354
RooAbsData::reset
virtual void reset()
Definition: RooAbsData.cxx:314
RooAbsData::printTitle
virtual void printTitle(std::ostream &os) const
Print title of dataset.
Definition: RooAbsData.cxx:787