71 static std::map<RooAbsData*,int>
_dcc ;
80 cout <<
"Composite storage is not a valid *default* storage type." << endl;
82 defaultStorageType =
s;
90 return defaultStorageType;
111 return (_dcc[data]==0) ;
121 storageType = defaultStorageType;
122 _iterator = _vars.createIterator() ;
123 _cacheIter = _cachedVars.createIterator() ;
133 TNamed(name,title), _vars(
"Dataset Variables"), _cachedVars(
"Cached Variables"), _dstore(dstore)
135 if (dynamic_cast<RooTreeDataStore *>(dstore)) {
137 }
else if (dynamic_cast<RooVectorDataStore *>(dstore)) {
151 <<
"): Data set cannot contain non-fundamental types, ignoring " << var->
GetName()
201 map<string,RooAbsDataStore*> smap ;
205 smap[itero->first] = dclone->
store() ;
244 delete iter->second ;
369 pc.
defineInt(
"evtStart",
"EventRange",0,0) ;
370 pc.
defineInt(
"evtStop",
"EventRange",1,2000000000) ;
375 pc.
process(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
393 varSubset.
add(*varSet) ;
399 << arg->
GetName() <<
" not in dataset, ignored" << endl ;
405 varSubset.
add(*
get()) ;
475 << arg->
GetName() <<
" not in dataset, ignored" << endl ;
481 if (cut && strlen(cut)>0) {
504 << arg->
GetName() <<
" not in dataset, ignored" << endl ;
592 strlcpy(buf,varNameList,1024) ;
593 char* varName = strtok(buf,
",:") ;
597 coutE(
InputArguments) <<
"RooAbsData::createHistogram(" <<
GetName() <<
") ERROR: dataset does not contain an observable named " << varName << endl ;
600 varName = strtok(0,
",") ;
602 if (varName && !yvar) {
603 coutE(
InputArguments) <<
"RooAbsData::createHistogram(" <<
GetName() <<
") ERROR: dataset does not contain an observable named " << varName << endl ;
606 varName = strtok(0,
",") ;
608 if (varName && !zvar) {
609 coutE(
InputArguments) <<
"RooAbsData::createHistogram(" <<
GetName() <<
") ERROR: dataset does not contain an observable named " << varName << endl ;
616 if (xbins<=0 || !xvar->hasMax() || !xvar->
hasMin() ) {
623 if (ybins<=0 || !yvar->hasMax() || !yvar->
hasMin() ) {
631 if (zbins<=0 || !zvar->hasMax() || !zvar->
hasMin() ) {
728 ownedCmds.
Add(bincmd) ;
729 argList.
Replace(autoRD,bincmd) ;
739 ((
RooCmdArg*)argList.
find(
"YVar"))->subArgs().Replace(autoRDY,bincmd) ;
751 ((
RooCmdArg*)argList.
find(
"ZVar"))->subArgs().Replace(autoRDZ,bincmd) ;
772 string prodName(
"(") ;
776 if (dynamic_cast<RooAbsCategory*>(arg)) {
778 if (varsArg != 0) catSet2.
add(*varsArg) ;
779 else catSet2.
add(*arg) ;
780 if (prodName.length()>1) {
792 return table(tmp,cuts,opts) ;
816 os << IsA()->GetName() ;
844 if (order==1)
return 0 ;
845 if (order==2)
return 1 ;
860 return moment(var,order,offset,cutSpec,cutRange) ;
880 if (!dynamic_cast<RooRealVar*>(varPtr)) {
894 select =
new RooFormula(
"select",cutSpec,*
get()) ;
903 if (select && select->
eval()==0)
continue ;
904 if (cutRange && vars->
allInRange(cutRange))
continue ;
923 if (!dynamic_cast<RooRealVar*>(xdata)) {
924 coutE(
InputArguments) <<
"RooDataSet::" << methodname <<
"(" <<
GetName() <<
") ERROR: variable : " << extVar.
GetName() <<
" is not of type RooRealVar in data" << endl ;
938 if (!xdata||!ydata)
return 0 ;
942 coutW(
InputArguments) <<
"RooDataSet::" << (corr?
"correlation":
"covariance") <<
"(" <<
GetName() <<
") WARNING: empty dataset, returning zero" << endl ;
950 Double_t xysum(0),xsum(0),ysum(0),x2sum(0),y2sum(0);
954 if (select && select->
eval()==0)
continue ;
955 if (cutRange && vars->
allInRange(cutRange))
continue ;
976 if (select)
delete select ;
980 return (xysum-xsum*ysum)/(
sqrt(x2sum-(xsum*xsum))*
sqrt(y2sum-(ysum*ysum))) ;
982 return (xysum-xsum*ysum);
1000 varList.
add(*datavar) ;
1018 vector<double> xsum(varList.
getSize()) ;
1019 vector<double> x2sum(varList.
getSize()) ;
1024 if (select && select->
eval()==0)
continue ;
1025 if (cutRange && dvars->
allInRange(cutRange))
continue ;
1036 *iter2=*iter ; iy=ix ;
1040 xysum(iy,ix) = xysum(ix,iy) ;
1056 xysum(ix,iy) /=
sumEntries(cutSpec, cutRange) ;
1064 (*C)(ix,iy) = xysum(ix,iy)-xsum[ix]*xsum[iy] ;
1066 (*C)(ix,iy) /=
sqrt((x2sum[ix]-(xsum[ix]*xsum[ix]))*(x2sum[iy]-(xsum[iy]*xsum[iy]))) ;
1071 if (select)
delete select ;
1092 name.Append(
"Mean");
1098 TString label(
"<") ;
1135 label.Append(
"_{RMS}");
1178 cmdList.
Add(const_cast<RooCmdArg*>(&arg1)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg2)) ;
1179 cmdList.
Add(const_cast<RooCmdArg*>(&arg3)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg4)) ;
1180 cmdList.
Add(const_cast<RooCmdArg*>(&arg5)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg6)) ;
1181 cmdList.
Add(const_cast<RooCmdArg*>(&arg7)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg8)) ;
1192 pc.
defineInt(
"dummy",
"FormatArgs",0,0) ;
1203 const char* label = pc.
getString(
"label") ;
1207 const char* formatStr = pc.
getString(
"formatStr") ;
1209 const char* what = pc.
getString(
"what") ;
1216 return statOn(frame,what,label,0,0,xmin,xmax,ymax,cutSpec,cutRange,formatCmd) ;
1218 return statOn(frame,what,label,sigDigit,formatStr,xmin,xmax,ymax,cutSpec,cutRange) ;
1227 const char* cutSpec,
const char* cutRange,
const RooCmdArg* formatCmd)
1229 Bool_t showLabel= (label != 0 && strlen(label) > 0);
1231 TString whatStr(what) ;
1233 Bool_t showN = whatStr.Contains(
"N") ;
1234 Bool_t showR = whatStr.Contains(
"R") ;
1235 Bool_t showM = whatStr.Contains(
"M") ;
1243 if(showLabel) ymin-= dy;
1262 TString *rmsText, *meanText, *NText ;
1264 rmsText= rms->
format(sigDigits,options);
1265 meanText= meanv->
format(sigDigits,options);
1266 NText= N.
format(sigDigits,options);
1268 rmsText= rms->
format(*formatCmd);
1269 meanText= meanv->
format(*formatCmd);
1270 NText= N.
format(*formatCmd);
1272 if (showR) box->
AddText(rmsText->Data());
1273 if (showM) box->
AddText(meanText->Data());
1274 if (showN) box->
AddText(NText->Data());
1284 if(showLabel) box->
AddText(label);
1306 if(hdim != plotVars.
getSize()) {
1315 for(
Int_t index= 0; index < plotVars.
getSize(); index++) {
1320 <<
"\" of type " << var->
ClassName() << endl;
1329 <<
":fillHistogram: WARNING: data does not contain variable: " << realVar->
GetName() << endl;
1334 localVars.
add(*clone);
1337 localVars.
add(*found);
1343 if(0 != cuts && strlen(cuts)) {
1345 if (!select || !select->
ok()) {
1371 << hdim <<
" dimensions" << endl;
1376 vector<string> cutVec ;
1377 if (cutRange && strlen(cutRange)>0) {
1378 if (strchr(cutRange,
',')==0) {
1379 cutVec.push_back(cutRange) ;
1381 const size_t bufSize = strlen(cutRange)+1;
1382 char* buf =
new char[bufSize] ;
1383 strlcpy(buf,cutRange,bufSize) ;
1384 const char* oneRange = strtok(buf,
",") ;
1386 cutVec.push_back(oneRange) ;
1387 oneRange = strtok(0,
",") ;
1398 for(
Int_t i=0; i < nevent; ++i) {
1405 if (select && select->
eval()==0) {
1418 for (icut=0 ; icut<cutVec.size() ; icut++) {
1419 if (arg->
inRange(cutVec[icut].c_str())) {
1420 selectThisArg =
kTRUE ;
1424 if (!selectThisArg) {
1431 if (!selectByRange) {
1458 if (we==0) we =
weight() ;
1477 if(0 != select)
delete select;
1495 <<
" doesn't depend on any variable in this dataset" << endl ;
1514 <<
" is fundamental and does not appear in this dataset" << endl ;
1536 RooRealVar newweight(
"weight",
"weight",-1e9,1e9) ;
1538 subsetVars.
add(newweight) ;
1543 if (createEmptyDataSets) {
1563 if (!propWeightSquared) {
1632 pc.
defineInt(
"nbins",
"BinningSpec",0,100) ;
1637 pc.
defineInt(
"lineColor",
"LineColor",0,-999) ;
1638 pc.
defineInt(
"lineStyle",
"LineStyle",0,-999) ;
1639 pc.
defineInt(
"lineWidth",
"LineWidth",0,-999) ;
1640 pc.
defineInt(
"markerColor",
"MarkerColor",0,-999) ;
1641 pc.
defineInt(
"markerStyle",
"MarkerStyle",0,-999) ;
1643 pc.
defineInt(
"fillColor",
"FillColor",0,-999) ;
1644 pc.
defineInt(
"fillStyle",
"FillStyle",0,-999) ;
1646 pc.
defineInt(
"histInvisible",
"Invisible",0,0) ;
1647 pc.
defineInt(
"refreshFrameNorm",
"RefreshNorm",0,1) ;
1653 pc.
defineMutex(
"DataError",
"Asymmetry",
"Efficiency") ;
1654 pc.
defineMutex(
"Binning",
"BinningName",
"BinningSpec") ;
1695 <<
") INFO: dataset has non-integer weights, auto-selecting SumW2 errors instead of Poisson errors" << endl ;
1701 <<
" to add to in RooPlot" << endl ;
1706 if (!asymCat && !effCat) {
1708 }
else if (asymCat) {
1759 <<
":plotOn: frame does not specify a plot variable" << endl;
1765 histName.Append(
"_plot");
1779 <<
":plotOn: fillHistogram() failed" << endl;
1796 <<
":plotOn: unable to create a RooHist object" << endl;
1813 coutI(
Plotting) <<
"RooTreeData::plotOn: plotting " << hist->
GetSum() <<
" events out of " << nEnt <<
" total events" << endl ;
1822 coutE(
Plotting) <<
"RooTreeData::plotOn: ERROR Histogram to be added to, '" << o.
addToHistName <<
"',has different binning" << endl ;
1841 hname.Append(
Form(
"_Cut[%s]",o.
cuts)) ;
1843 graph->
SetName(hname.Data()) ;
1884 <<
":plotAsymOn: frame does not specify a plot variable" << endl;
1890 hist1Name.Append(
"_plot1");
1891 TH1F *hist1, *hist2 ;
1892 hist2Name.Append(
"_plot2");
1906 assert(0 != hist1 && 0 != hist2);
1908 TString cuts1,cuts2 ;
1920 <<
":plotAsymOn: createHistogram() failed" << endl;
1940 hname.Append(
Form(
"_Cut[%s]",o.
cuts)) ;
1942 graph->
SetName(hname.Data()) ;
1978 <<
":plotEffOn: frame does not specify a plot variable" << endl;
1984 hist1Name.Append(
"_plot1");
1985 TH1F *hist1, *hist2 ;
1986 hist2Name.Append(
"_plot2");
2000 assert(0 != hist1 && 0 != hist2);
2002 TString cuts1,cuts2 ;
2014 <<
":plotEffOn: createHistogram() failed" << endl;
2034 hname.Append(
Form(
"_Cut[%s]",o.
cuts)) ;
2036 graph->
SetName(hname.Data()) ;
2067 <<
" is not in dataset and is also not dependent on data set" << endl ;
2074 coutE(
Plotting) <<
"RooTreeData::table(" <<
GetName() <<
") Couldn't deep-clone table category, abort." << endl ;
2078 ownPlotVar =
kTRUE ;
2084 TString tableName(
GetName()) ;
2085 if (cuts && strlen(cuts)) {
2086 tableName.Append(
"(") ;
2087 tableName.Append(cuts) ;
2088 tableName.Append(
")") ;
2094 if (cuts && strlen(cuts)) {
2100 for(
Int_t i=0; i < nevent; ++i) {
2103 if (cutVar && cutVar->
getVal()==0)
continue ;
2108 if (ownPlotVar)
delete tableSet ;
2109 if (cutVar)
delete cutVar ;
2129 if (!dynamic_cast<RooRealVar*>(varPtr)) {
2145 if (varPtr->
getVal()<lowest) {
2146 lowest = varPtr->
getVal() ;
2148 if (varPtr->
getVal()>highest) {
2149 highest = varPtr->
getVal() ;
2156 Double_t margin = marginFrac*(highest-lowest) ;
2165 Double_t delta = ((highest-mom1)>(mom1-lowest)?(highest-mom1):(mom1-lowest))*(1+marginFrac) ;
2166 lowest = mom1-delta ;
2167 highest = mom1+delta ;
2188 pruneSet.
add(*
get()) ;
2193 TIterator* vIter =
get()->createIterator() ;
2197 pruneSet.
add(*var) ;
2238 <<
" in dataset are either not used at all, orserving exclusively p.d.f nodes that are now cached, disabling reading of these observables for TTree" << endl ;
2265 return anyClient?ret:
kFALSE ;
2311 void RooAbsData::Streamer(
TBuffer &R__b)
2358 <<
"Use export_tree() instead or convert to tree storage." << endl;
2359 return (TTree *)
nullptr;
2371 return tmp->CloneTree();
2374 return buffer.
tree().CloneTree();
2398 if (iter.second == obj) {
2399 iter.second =
nullptr;
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.
virtual Double_t sumEntries() const =0
virtual Double_t getMin(const char *name=0) const
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
virtual const char * GetName() const
Returns name of object.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Int_t FindBin(Double_t x, Double_t y=0, Double_t z=0)
Return Global bin number corresponding to x,y,z.
virtual Bool_t isShareable() const
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
TIterator * createIterator(Bool_t dir=kIterForward) const
static long int sum(long int i)
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
void addOwnedComponent(const char *idxlabel, RooAbsData &data)
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void SetName(const char *name="")
Bool_t hasMin(const char *name=0) const
virtual Double_t getMax(const char *name=0) const
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'...
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
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
Plot dataset on specified frame.
Bool_t dependsOn(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0, Bool_t valueOnly=kFALSE) const
Test whether we depend on (ie, are served by) any object in the specified collection.
RooAbsData * getSimData(const char *idxstate)
Bool_t defineDouble(const char *name, const char *argName, Int_t doubleNum, Double_t defValue=0.)
Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name ar...
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
RooRealVar * meanVar(RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the mean of observable 'var' in this dataset.
virtual const RooArgSet * get() const
void setPlotLabel(const char *label)
Set the label associated with this variable.
RooCmdArg ZVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
Int_t getInt(Int_t idx) const
void leafNodeServerList(RooAbsCollection *list, const RooAbsArg *arg=0, Bool_t recurseNonDerived=kFALSE) const
Fill supplied list with all leaf nodes of the arg tree, starting with ourself as top node...
void addObject(TObject *obj, Option_t *drawOptions="", Bool_t invisible=kFALSE)
Add a generic object to this plot.
virtual Int_t numBins(const char *rangeName=0) const
virtual TObject * Clone(const char *newName=0) const
Make a clone of an object using the Streamer facility.
const char * getString(const char *name, const char *defaultValue="", Bool_t convEmptyToNull=kFALSE)
Return string property registered with name 'name'.
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t hasFilledCache() const
static std::map< RooAbsData *, int > _dcc
void convertToVectorStore()
Convert tree-based storage to vector-based storage.
virtual void SetName(const char *name)
Set the name of the TNamed.
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent) const
Detailed printing interface.
const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const
Return binning definition with name.
virtual Bool_t changeObservableName(const char *from, const char *to)
TObject * find(const char *name) const
Return pointer to object with given name in collection.
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
virtual Bool_t changeObservableName(const char *from, const char *to)=0
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Buffer base class used for serializing objects.
RooAbsData::ErrorType etype
Roo1DTable * createTable(const char *label) const
Create a table matching the shape of this category.
virtual const RooArgSet * get(Int_t index) const =0
void updateNormVars(const RooArgSet &vars)
Install the given set of observables are reference normalization variables for this frame...
1-D histogram with a float per channel (see TH1 documentation)}
void attachBuffers(const RooArgSet &extObs)
static void setDefaultStorageType(StorageType s)
void setRawEntries(Double_t n)
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.
TIterator * valueClientIterator() const
TAttFill * getAttFill(const char *name=0) const
Return a pointer to the fill attributes of the named object in this plot, or zero if the named object...
Double_t corrcov(RooRealVar &x, RooRealVar &y, const char *cutSpec, const char *cutRange, Bool_t corr) const
Internal method to calculate single correlation and covariance elements.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
void allowUndefined(Bool_t flag=kTRUE)
RooRealVar * dataRealVar(const char *methodname, RooRealVar &extVar) const
Internal method to check if given RooRealVar maps to a RooRealVar in this dataset.
RooTreeDataStore is the abstract base class for data collection that use a TTree as internal storage ...
virtual void resetCache()
Internal method – Remove cached function values.
TObject * getObject(const char *name, TObject *obj=0)
Return TObject property registered with name 'name'.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
TIterator * _iterator
External variables cached with this data set.
void attachDataSet(const RooAbsData &set)
Replace server nodes with names matching the dataset variable names with those data set variables...
virtual void attachBuffers(const RooArgSet &extObs)=0
Bool_t getRange(RooRealVar &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...
Iterator abstract base class.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Double_t getFitRangeBinW() const
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Bool_t Replace(const TObject *oldArg, const TObject *newArg)
Replace object 'oldArg' in collection with new object 'newArg'.
virtual Bool_t inRange(const char *) const
virtual Double_t weightSquared() const =0
Bool_t hasFilledCache() const
virtual Int_t numEntries() const =0
Bool_t process(const RooCmdArg &arg)
Process given RooCmdArg.
virtual Int_t GetDimension() const
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class...
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Internal method – Attach dataset copied with cache contents to copied instances of functions...
virtual RooAbsData * emptyClone(const char *newName=0, const char *newTitle=0, const RooArgSet *vars=0, const char *wgtVarName=0) const =0
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods...
TAttMarker * getAttMarker(const char *name=0) const
Return a pointer to the marker attributes of the named object in this plot, or zero if the named obje...
TH1 * createHistogram(const char *name, 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
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
The TNamed class is the base class for all named ROOT classes.
Bool_t allInRange(const char *rangeSpec) const
Return true if all contained object report to have their value inside the specified range...
const char * addToHistName
RooVectorDataStore is the abstract base class for data collection that use a TTree as internal storag...
virtual void Draw(Option_t *option="")
Forward draw command to data store.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Bool_t defineString(const char *name, const char *argName, Int_t stringNum, const char *defValue="", Bool_t appendMode=kFALSE)
Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name ar...
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...
static void create(const TObject *obj)
Register creation of object 'obj'.
virtual RooAbsReal * highBoundFunc() const
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
virtual ~RooAbsData()
Destructor.
virtual RooAbsReal * lowBoundFunc() const
virtual TArrayD * GetSumw2()
virtual void printTitle(std::ostream &os) const
Print title of dataset.
RooCompositeDataStore is the abstract base class for data collection that use a TTree as internal sto...
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
virtual void SetBinError(Int_t bin, Double_t error)
Set the bin Error Note that this resets the bin eror option to be of Normal Type and for the non-empt...
virtual void add(const RooArgSet &row, Double_t weight=1, Double_t weightError=0)=0
RooAbsData()
Default constructor.
Bool_t defineInt(const char *name, const char *argName, Int_t intNum, Int_t defValue=0)
Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName...
The 3-D histogram classes derived from the 1-D histogram classes.
void stripCmdList(RooLinkedList &cmdList, const char *cmdsToPurge)
Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList...
virtual void resetCache()=0
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void setDirtyProp(Bool_t flag)
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void addClone(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
virtual Bool_t isFundamental() const
void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Interface for detailed printing of object.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void printName(std::ostream &os) const
Print name of dataset.
virtual void Add(TObject *arg)
RooRealVar * rmsVar(RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the RMS of observable 'var' in this dataset.
virtual void checkInit() const
TTree * GetClonedTree() const
Return a clone of the TTree which stores the data or create such a tree if vector storage is used...
void convertToTreeStore()
Convert vector-based storage to tree-based storage.
void defineMutex(const char *argName1, const char *argName2)
Define arguments named argName1 and argName2 mutually exclusive.
Int_t getInt(const char *name, Int_t defaultValue=0)
Return integer property registered with name 'name'.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
virtual void setArgStatus(const RooArgSet &set, Bool_t active)
Service class for 2-Dim histogram classes.
const char * getPlotLabel() const
Get the label associated with the variable.
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)=0
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...
TIterator * typeIterator() const
Return iterator over all defined states.
RooAbsArg * at(Int_t idx) const
virtual const Text_t * GetName() const
Returns name of object.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
void setConstant(Bool_t value=kTRUE)
Double_t sigma(RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
virtual Bool_t isNonPoissonWeighted() const
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.
Bool_t ok(Bool_t verbose) const
Return true of parsing was successful.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
const RooCatType * lookupType(Int_t index, Bool_t printError=kFALSE) const
Find our type corresponding to the specified index, or return 0 for no match.
RooCmdArg AxisLabel(const char *name)
void SetName(const char *name)
Set the name of the TNamed.
char * Form(const char *fmt,...)
TString * format(const RooCmdArg &formatArg) const
Format contents of RooRealVar for pretty printing on RooPlot parameter boxes.
static Double_t infinity()
Return internal infinity representation.
virtual const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const =0
Bool_t hasIdenticalBinning(const RooHist &other) const
Return kTRUE if binning of this RooHist is identical to that of 'other'.
RooCmdArg AutoBinning(Int_t nbins=100, Double_t marginFactor=0.1)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual RooAbsDataStore * clone(const char *newname=0) const =0
virtual const char * getLabel() const
Return label string of current state.
RooAbsDataStore * store()
RooCategory represents a fundamental (non-derived) discrete value object.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual RooAbsData * reduceEng(const RooArgSet &varSubset, const RooFormulaVar *cutVar, const char *cutRange=0, Int_t nStart=0, Int_t nStop=2000000000, Bool_t copyCache=kTRUE)=0
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.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
virtual Double_t weightError(ErrorType etype=Poisson) const
Return error on current weight (dummy implementation returning zero)
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
RooMultiCategory consolidates several RooAbsCategory objects into a single category.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
static void destroy(const TObject *obj)
Register deletion of object 'obj'.
static StorageType getDefaultStorageType()
A Pave (see TPave) with text, lines or/and boxes inside.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements...
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooAbsDataStore * _dstore
Iterator over cached variables.
Double_t getDouble(Int_t idx) const
Double_t getDouble(const char *name, Double_t defaultValue=0)
Return Double_t property registered with name 'name'.
TMatrixTSym< Double_t > TMatrixDSym
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
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.
static constexpr double s
Double_t moment(RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate moment < (X - <X>)^n > where n = order.
static Bool_t releaseVars(RooAbsData *)
If return value is true variables can be deleted.
virtual void RecursiveRemove(TObject *obj)
If one of the TObject we have a referenced to is deleted, remove the reference.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual Bool_t isWeighted() const
static StorageType defaultStorageType
std::map< std::string, RooAbsData * > _ownedComponents
TAttLine * getAttLine(const char *name=0) const
Return a pointer to the line attributes of the named object in this plot, or zero if the named object...
Mother of all ROOT objects.
Bool_t canSplitFast() const
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
Bool_t hasProcessed(const char *cmdName) const
Return true if RooCmdArg with name 'cmdName' has been processed.
static void claimVars(RooAbsData *)
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual Bool_t isDerived() const
virtual void Add(TObject *obj)
RooAbsRealLValue * getPlotVar() const
virtual TObject * Next()=0
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
virtual Double_t weight() const =0
virtual void setArgStatus(const RooArgSet &set, Bool_t active)=0
virtual void printClassName(std::ostream &os) const
Print class name of dataset.
Double_t standMoment(RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate standardized moment < (X - <X>)^n > / sigma^n, where n = order.
Double_t getFitRangeNEvt() const
static constexpr double pc
float type_of_call hi(const int &, const int &)
Bool_t defineObject(const char *name, const char *argName, Int_t setNum, const TObject *obj=0, Bool_t isArray=kFALSE)
Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName ...
virtual TList * split(const RooAbsCategory &splitCat, Bool_t createEmptyDataSets=kFALSE) const
Split dataset into subsets based on states of given splitCat in this dataset.
void setYAxisLabel(const char *label)
virtual void resetBuffers()=0
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual Double_t averageBinWidth() const =0
Bool_t recursiveRedirectServers(const RooAbsCollection &newServerList, Bool_t mustReplaceAll=kFALSE, Bool_t nameChange=kFALSE, Bool_t recurseInNewSet=kTRUE)
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
Create and fill a ROOT histogram TH1,TH2 or TH3 with the values of this dataset.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void cacheArgs(const RooAbsArg *cacheOwner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)=0
Roo1DTable implements a one-dimensional table.
const TTree * tree() const
Return a pointer to the TTree which stores the data.
virtual void fill(RooAbsCategory &cat, Double_t weight=1.0)
Increment the counter of the table slot with the name corresponding to that of the current category s...
virtual void SetBorderSize(Int_t bordersize=4)
Bool_t allClientsCached(RooAbsArg *, const RooArgSet &)
Utility function that determines if all clients of object 'var' appear in given list of cached nodes...
TObject * findObject(const char *name, const TClass *clas=0) const
Find the named object in our list of items and return a pointer to it.
virtual Int_t numEntries() const
TIterator * _cacheIter
Iterator over dimension variables.
virtual const char * GetTitle() const
Returns title of object.
RooCmdArg Binning(const RooAbsBinning &binning)
virtual Double_t GetBinError(Int_t bin) const
Return value of error associated to bin number bin.
void setDirtyProp(Bool_t flag)
Control propagation of dirty flags from observables in dataset.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
void setError(Double_t value)
Bool_t correctForBinWidth
virtual const TTree * tree() const
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.