118using std::endl, std::string, std::map, std::list, std::ifstream, std::ofstream, std::ostream;
133struct FinalizeVarsOutput {
135 std::unique_ptr<RooRealVar> weight;
136 std::string weightVarName;
155 if(
data->isWeighted()) {
281 RooCmdConfig pc(
"RooDataSet::ctor(" + std::string(GetName()) +
")");
282 pc.defineInt(
"ownLinked",
"OwnLinked",0) ;
283 pc.defineObject(
"impTree",
"ImportTree",0) ;
284 pc.defineObject(
"impData",
"ImportData",0) ;
285 pc.defineObject(
"indexCat",
"IndexCat",0) ;
286 pc.defineObject(
"impSliceData",
"ImportDataSlice",0,
nullptr,
true) ;
287 pc.defineString(
"impSliceState",
"ImportDataSlice",0,
"",
true) ;
288 pc.defineObject(
"lnkSliceData",
"LinkDataSlice",0,
nullptr,
true) ;
289 pc.defineString(
"lnkSliceState",
"LinkDataSlice",0,
"",
true) ;
290 pc.defineString(
"cutSpec",
"CutSpec",0,
"") ;
291 pc.defineObject(
"cutVar",
"CutVar",0) ;
292 pc.defineString(
"cutRange",
"CutRange",0,
"") ;
293 pc.defineString(
"wgtVarName",
"WeightVarName",0,
"") ;
294 pc.defineInt(
"newWeight1",
"WeightVarName",0,0) ;
295 pc.defineString(
"fname",
"ImportFromFile",0,
"") ;
296 pc.defineString(
"tname",
"ImportFromFile",1,
"") ;
297 pc.defineObject(
"wgtVar",
"WeightVar",0) ;
298 pc.defineInt(
"newWeight2",
"WeightVar",0,0) ;
299 pc.defineObject(
"dummy1",
"ImportDataSliceMany",0) ;
300 pc.defineObject(
"dummy2",
"LinkDataSliceMany",0) ;
301 pc.defineSet(
"errorSet",
"StoreError",0) ;
302 pc.defineSet(
"asymErrSet",
"StoreAsymError",0) ;
303 pc.defineSet(
"glObs",
"GlobalObservables",0,
nullptr) ;
304 pc.defineMutex(
"ImportTree",
"ImportData",
"ImportDataSlice",
"LinkDataSlice",
"ImportFromFile") ;
305 pc.defineMutex(
"CutSpec",
"CutVar") ;
306 pc.defineMutex(
"WeightVarName",
"WeightVar") ;
307 pc.defineDependency(
"ImportDataSlice",
"IndexCat") ;
308 pc.defineDependency(
"LinkDataSlice",
"IndexCat") ;
309 pc.defineDependency(
"OwnLinked",
"LinkDataSlice") ;
321 const std::string
errMsg =
"Error in RooDataSet constructor: command argument list could not be processed";
323 throw std::invalid_argument(
errMsg);
326 if(pc.getSet(
"glObs")) setGlobalObservables(*pc.getSet(
"glObs"));
332 const char*
cutSpec = pc.getString(
"cutSpec",
"",
true) ;
333 const char* cutRange = pc.getString(
"cutRange",
"",
true) ;
334 const char*
wgtVarName = pc.getString(
"wgtVarName",
"",
true) ;
336 const char*
impSliceNames = pc.getString(
"impSliceState",
"",
true) ;
338 const char*
lnkSliceNames = pc.getString(
"lnkSliceState",
"",
true) ;
342 const char*
fname = pc.getString(
"fname") ;
343 const char*
tname = pc.getString(
"tname") ;
345 Int_t newWeight = pc.getInt(
"newWeight1") + pc.getInt(
"newWeight2") ;
377 appendToDir(
this,
true) ;
385 throw std::string(
"RooDataSet::RooDataSet() ERROR in constructor, cannot find index category") ;
391 coutI(InputArguments) <<
"RooDataSet::ctor(" << GetName() <<
") defining state \"" <<
hiter->first <<
"\" in index category " << indexCat->
GetName() << std::endl ;
401 addOwnedComponent(
hiter->first.c_str(),*
hiter->second) ;
406 _dstore = std::make_unique<RooCompositeDataStore>(
name,title,_vars,*
icat,
storeMap) ;
413 if (defaultStorageType==Tree) {
414 _dstore = std::make_unique<RooTreeDataStore>(
name,title,_vars,
wgtVarName) ;
416 }
else if (defaultStorageType==Vector) {
420 wgttmp->setAttribute(
"NewWeight") ;
423 _dstore = std::make_unique<RooVectorDataStore>(
name,title,_vars,
wgtVarName) ;
428 std::map<string,RooAbsData*>
hmap ;
439 std::unique_ptr<RooArgSet>
intErrorSet{_vars.selectCommon(*errorSet)};
442 arg->attachToStore(*_dstore) ;
449 arg->attachToStore(*_dstore) ;
453 appendToDir(
this,
true) ;
459 std::unique_ptr<RooFormulaVar>
cutVarTmp;
481 std::unique_ptr<TFile> file;
486 std::stringstream
ss;
487 ss <<
"RooDataSet::ctor(" << GetName() <<
") ERROR file '" <<
fname
488 <<
"' cannot be opened or does not exist";
489 const std::string
errMsg =
ss.str();
491 throw std::invalid_argument(
errMsg);
496 std::stringstream
ss;
497 ss <<
"RooDataSet::ctor(" << GetName() <<
") ERROR file '" <<
fname
498 <<
"' does not contain a TTree named '" <<
tname <<
"'";
499 const std::string
errMsg =
ss.str();
501 throw std::invalid_argument(
errMsg);
544 std::unique_ptr<RooFormulaVar>
cutVar;
545 if (cuts &&
strlen(cuts) != 0) {
547 cutVar = std::make_unique<RooFormulaVar>(cuts, cuts,
_vars,
false);
549 _dstore = std::make_unique<RooVectorDataStore>(
name,title,
565 if (
dset->_wgtVar && vars.
find(
dset->_wgtVar->GetName())) {
620 if(vars ==
nullptr) {
639 if(var->getAttribute(
"StoreError")) errorSet.
add(*var);
640 if(var->getAttribute(
"StoreAsymError"))
asymErrorSet.add(*var);
644 return RooFit::makeOwningPtr<RooAbsData>(std::make_unique<RooDataSet>(
662 coutE(DataHandling) <<
"RooDataSet::RooDataSet(" <<
GetName() <<
"): designated weight variable "
663 <<
wgtVarName <<
" not found in set of variables, no weighting will be assigned" << std::endl ;
664 throw std::invalid_argument(
"RooDataSet::initialize() weight variable could not be initialised.");
666 coutE(DataHandling) <<
"RooDataSet::RooDataSet(" <<
GetName() <<
"): designated weight variable "
667 <<
wgtVarName <<
" is not of type RooRealVar, no weighting will be assigned" << std::endl ;
668 throw std::invalid_argument(
"RooDataSet::initialize() weight variable could not be initialised.");
682 const char *cutRange, std::size_t
nStart, std::size_t
nStop)
const
694 if (!cutRange ||
strchr(cutRange,
',') ==
nullptr) {
697 ds._cachedVars.add(
_dstore->cachedVars());
703 errMsg <<
"Error in RooAbsData::reduce! The ranges " << cutRange <<
" are overlapping!";
704 throw std::runtime_error(
errMsg.str());
710 ds._cachedVars.add(
_dstore->cachedVars());
745 title = std::string(
GetTitle()) +
"_binned" ;
774 return e > 0.0 ?
e *
e :
w *
w;
785 throw std::runtime_error(
"RooDataSet::getWeightBatch(): requested range not valid for dataset.");
801 for (std::size_t i = 0; i <
nEntries; ++i) {
807 return std::span<const double>(&*(
_sumW2Buffer->begin() + first),
len);
854 std::unique_ptr<RooFormula>
select = nullptr ;
946 ccoutE(DataHandling) <<
"An event weight/error was passed but no weight variable was defined"
947 <<
" in the dataset '" <<
GetName() <<
"'. The weight will be ignored." << std::endl;
955 coutE(DataHandling) <<
"An event weight error was passed to the RooDataSet '" <<
GetName()
957 <<
"' does not store errors. Check `StoreError` in the RooDataSet constructor." << std::endl;
995 ccoutE(DataHandling) <<
"An event weight was given but no weight variable was defined"
996 <<
" in the dataset '" <<
GetName() <<
"'. The weight will be ignored." << std::endl;
1002 coutE(DataHandling) <<
"An event weight error was passed to the RooDataSet '" <<
GetName()
1004 <<
"' does not store errors. Check `StoreAsymError` in the RooDataSet constructor." << std::endl;
1047 ccoutE(DataHandling) <<
"An event weight was given but no weight variable was defined"
1048 <<
" in the dataset '" <<
GetName() <<
"'. The weight will be ignored." << std::endl;
1057 coutE(DataHandling) <<
"An event weight error was passed to the RooDataSet '" <<
GetName()
1059 <<
"' does not store errors. Check `StoreError` in the RooDataSet constructor." << std::endl;
1105 coutE(InputArguments) <<
"RooDataSet::merge(" <<
GetName() <<
") ERROR: datasets have different size" << std::endl ;
1222 pc.
defineInt(
"lineColor",
"LineColor",0,-999) ;
1223 pc.
defineInt(
"lineStyle",
"LineStyle",0,-999) ;
1224 pc.
defineInt(
"lineWidth",
"LineWidth",0,-999) ;
1225 pc.
defineInt(
"markerColor",
"MarkerColor",0,-999) ;
1226 pc.
defineInt(
"markerStyle",
"MarkerStyle",0,8) ;
1228 pc.
defineInt(
"fillColor",
"FillColor",0,-999) ;
1229 pc.
defineInt(
"fillStyle",
"FillStyle",0,-999) ;
1230 pc.
defineInt(
"histInvisible",
"Invisible",0,0) ;
1243 const char* drawOptions = pc.
getString(
"drawOption") ;
1244 Int_t histInvisible = pc.
getInt(
"histInvisible") ;
1245 const char* histName = pc.
getString(
"histName",
nullptr,
true) ;
1246 double scaleFactor = pc.
getDouble(
"scaleFactor") ;
1255 coutE(InputArguments) <<
"RooDataSet::plotOnXY(" <<
GetName() <<
") ERROR: no YVar() argument specified and dataset is not weighted" << std::endl ;
1261 coutE(InputArguments) <<
"RooDataSet::plotOnXY(" <<
GetName() <<
") ERROR on YVar() argument, dataset does not contain a variable named " <<
yvar->GetName() << std::endl ;
1276 double x =
xvar->getVal() ;
1313 frame->
addPlotable(graph,drawOptions,histInvisible) ;
1384 oocoutE(
nullptr,DataHandling) <<
"RooDataSet::read: ERROR: variable list already contains"
1385 <<
"a non-RooCategory blindState member" << std::endl ;
1388 oocoutW(
nullptr,DataHandling) <<
"RooDataSet::read: WARNING: recycling existing "
1389 <<
"blindState category in variable list" << std::endl ;
1394 blindCat->setAttribute(
"Dynamic") ;
1401 bool verbose= !
opts.Contains(
"q");
1404 auto data = std::make_unique<RooDataSet>(
"dataset",
fileList, variables);
1407 oocoutE(
nullptr,DataHandling) <<
"RooDataSet::read: unable to create a new dataset"
1422 oocoutE(
data.get(),DataHandling) <<
"RooDataSet::read: no index category named "
1423 <<
indexCatName <<
" in supplied variable list" << std::endl ;
1428 <<
" is not a RooCategory" << std::endl ;
1466 oocoutE(
data.get(), DataHandling) <<
"RooDataSet::read: Error, cannot register automatic type name " <<
newLabel
1467 <<
" in index category " << indexCat->
GetName() << std::endl ;
1475 oocoutI(
data.get(), DataHandling) <<
"RooDataSet::read: reading file " <<
filename << std::endl ;
1483 oocoutE(
data.get(), DataHandling) <<
"RooDataSet::read: unable to open '"
1484 <<
filename <<
"'. Returning nullptr now." << std::endl;
1492 while(file.good() && !file.eof()) {
1497 if (file.peek() ==
'#') {
1501 bool readError = variables.readFromStream(file,
true,verbose) ;
1502 data->_vars.assign(variables) ;
1506 oocoutE(
data.get(), DataHandling) <<
"RooDataSet::read(static): read error at line " <<
line << std::endl ;
1519 while (
isspace(file.peek())) {
1521 file >> std::noskipws >> dummy >> std::skipws;
1535 for (
const auto&
nameIdx : *indexCat) {
1539 oocoutI(
data.get(),DataHandling) <<
"RooDataSet::read: read " <<
data->numEntries()
1540 <<
" events (ignored " <<
outOfRange <<
" out of range events)" << std::endl;
1542 return data.release();
1559 coutE(DataHandling) <<
"RooDataSet::write(" <<
GetName() <<
") cannot create file " <<
filename << std::endl ;
1564 coutI(DataHandling) <<
"RooDataSet::write(" <<
GetName() <<
") writing ASCII file " <<
filename << std::endl ;
1578 get(i)->writeToStream(
ofs,
true);
1582 coutW(DataHandling) <<
"RooDataSet::write(" <<
GetName() <<
"): WARNING error(s) have occurred in writing" << std::endl ;
1600 os <<
indent <<
" Dataset variable \"" <<
_wgtVar->
GetName() <<
"\" is interpreted as the event weight" << std::endl ;
1631 os << arg->GetName() ;
1668 if (
R__b.IsReading()) {
1739 const char *
cstr =
"cstr";
1754 throw std::invalid_argument(
"Only one of cutVar or cutSpec should be not a nullptr!");
1759 for (
auto const &item :
slices) {
1770 if (!indexCat.
hasLabel(item.first)) {
1772 coutI(InputArguments) <<
"RooDataSet::ctor(" <<
GetName() <<
") defining state \"" << item.first
1773 <<
"\" in index category " << indexCat.
GetName() << std::endl;
1779 std::unique_ptr<RooFormulaVar>
cutVarTmp;
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
static void indent(ostringstream &buf, int indent_level)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
const_iterator begin() const
const_iterator end() const
Common abstract base class for objects that represent a value and a "shape" in RooFit.
void setAttribute(const Text_t *name, bool value=true)
Set (default) or clear a named boolean attribute of this object.
bool hasLabel(const std::string &label) const
Check if a state with name label exists.
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual bool remove(const RooAbsArg &var, bool silent=false, bool matchByNameOnly=false)
Remove the specified argument from our list.
bool allInRange(const char *rangeSpec) const
Return true if all contained object report to have their value inside the specified range.
void assignFast(const RooAbsCollection &other, bool setValDirty=true) const
Functional equivalent of assign() but assumes this and other collection have same layout.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
void assign(const RooAbsCollection &other) const
Sets the value, cache and constant attribute of any argument in our set that also appears in the othe...
virtual bool addOwned(RooAbsArg &var, bool silent=false)
Add an argument and transfer the ownership to the collection.
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
Abstract base class for a data collection.
virtual bool isWeighted() const =0
virtual double sumEntries() const
virtual double weightError(RooAbsData::ErrorType etype=RooAbsData::Poisson) const =0
virtual double weight() const =0
Abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Interface for detailed printing of object.
void SetName(const char *name) override
Set the name of the TNamed.
RooAbsDataStore * store()
static StorageType defaultStorageType
std::unique_ptr< RooAbsDataStore > _dstore
Data storage implementation.
RooArgSet _vars
Dimensions of this data set.
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
void Streamer(TBuffer &) override
Stream an object of class RooAbsData.
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void Streamer(TBuffer &) override
Stream an object of class TObject.
Object to represent discrete states.
bool setIndex(Int_t index, bool printError=true) override
Set value by specifying the index code of the desired state.
bool defineType(const std::string &label)
Define a state with given name.
bool setLabel(const char *label, bool printError=true) override
Set value by specifying the name of the desired state.
Named container for two doubles, two integers two object points and three string pointers that can be...
const char * getString(Int_t idx) const
Return string stored in slot idx.
Configurable parser for RooCmdArg named arguments.
bool process(const RooCmdArg &arg)
Process given RooCmdArg.
double getDouble(const char *name, double defaultValue=0.0) const
Return double property registered with name 'name'.
bool defineDouble(const char *name, const char *argName, int doubleNum, double defValue=0.0)
Define double property name 'name' mapped to double in slot 'doubleNum' in RooCmdArg with name argNam...
bool ok(bool verbose) const
Return true of parsing was successful.
bool defineObject(const char *name, const char *argName, int setNum, const TObject *obj=nullptr, bool isArray=false)
Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName ...
const char * getString(const char *name, const char *defaultValue="", bool convEmptyToNull=false) const
Return string property registered with name 'name'.
bool defineString(const char *name, const char *argName, int stringNum, const char *defValue="", bool appendMode=false)
Define double property name 'name' mapped to double in slot 'stringNum' in RooCmdArg with name argNam...
bool defineInt(const char *name, const char *argName, int intNum, int defValue=0)
Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName...
int getInt(const char *name, int defaultValue=0) const
Return integer property registered with name 'name'.
TObject * getObject(const char *name, TObject *obj=nullptr) const
Return TObject property registered with name 'name'.
Container class to hold N-dimensional binned data.
double weight(std::size_t i) const
Return weight of i-th bin.
double weightSquared(std::size_t i) const
Return squared weight sum of i-th bin.
const RooArgSet * get() const override
Get bin centre of current bin.
Container class to hold unbinned data.
RooFit::OwningPtr< RooAbsData > emptyClone(const char *newName=nullptr, const char *newTitle=nullptr, const RooArgSet *vars=nullptr, const char *wgtVarName=nullptr) const override
Return an empty clone of this dataset.
RooRealVar * _wgtVar
Pointer to weight variable (if set)
bool _doWeightErrorCheck
! When adding events with weights, check that weights can actually be stored.
RooArgSet _varsNoWgt
Vars without weight variable.
void loadValuesFromSlices(RooCategory &indexCat, std::map< std::string, RooAbsData * > const &slices, const char *rangeName, RooFormulaVar const *cutVar, const char *cutSpec)
RooFit::OwningPtr< RooDataHist > binnedClone(const char *newName=nullptr, const char *newTitle=nullptr) const
Return binned clone of this dataset.
void weightError(double &lo, double &hi, ErrorType etype=SumW2) const override
Return the asymmetric errors on the current weight.
const RooArgSet * get() const override
Return a RooArgSet with the coordinates of the current event.
virtual RooPlot * plotOnXY(RooPlot *frame, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}) const
Special plot method for 'X-Y' datasets used in fitting.
void initialize(const char *wgtVarName)
Initialize the dataset.
void printArgs(std::ostream &os) const override
Print argument of dataset, i.e. the observable names.
void SetName(const char *name) override
Change the name of this dataset into the given name.
virtual void addFast(const RooArgSet &row, double weight=1.0, double weightError=0.0)
Add a data point, with its coordinates specified in the 'data' argset, to the data set.
bool merge(RooDataSet *data1, RooDataSet *data2=nullptr, RooDataSet *data3=nullptr, RooDataSet *data4=nullptr, RooDataSet *data5=nullptr, RooDataSet *data6=nullptr)
TClass * IsA() const override
virtual RooAbsArg * addColumn(RooAbsArg &var, bool adjustRange=true)
Add a column with the values of the given (function) argument to this dataset.
bool write(const char *filename) const
Write the contents of this dataset to an ASCII file with the specified name.
double sumEntries() const override
Return effective number of entries in dataset, i.e., sum all weights.
std::span< const double > getWeightBatch(std::size_t first, std::size_t len, bool sumW2) const override
virtual RooArgSet * addColumns(const RooArgList &varList)
Add a column with the values of the given list of (function) argument to this dataset.
~RooDataSet() override
Destructor.
bool isNonPoissonWeighted() const override
Returns true if histogram contains bins with entries with a non-integer weight.
void SetNameTitle(const char *name, const char *title) override
Change the title of this dataset into the given name.
void printValue(std::ostream &os) const override
Print value of the dataset, i.e. the sum of weights contained in the dataset.
void append(RooDataSet &data)
Add all data points of given data set to this data set.
RooDataSet()
Default constructor for persistence.
std::unique_ptr< std::vector< double > > _sumW2Buffer
! Buffer for sumW2 in case a batch of values is requested.
void Streamer(TBuffer &) override
Stream an object of class RooDataSet.
void add(const RooArgSet &row, double weight, double weightError)
Add one ore more rows of data.
unsigned short _errorMsgCount
! Counter to silence error messages when filling dataset.
std::unique_ptr< RooAbsData > reduceEng(const RooArgSet &varSubset, const RooFormulaVar *cutVar, const char *cutRange=nullptr, std::size_t nStart=0, std::size_t nStop=std::numeric_limits< std::size_t >::max()) const override
Implementation of RooAbsData virtual method that drives the RooAbsData::reduce() methods.
void convertToTreeStore() override
Convert vector-based storage to tree-based storage.
Use or if you need to change the weight the universal constructor with the and WeightVar() arguments.")
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print info about this dataset to the specified output stream.
double weightSquared() const override
Return squared event weight of the current event.
double weight() const override
Return event weight of current event.
static RooDataSet * read(const char *filename, const RooArgList &variables, const char *opts="", const char *commonPath="", const char *indexCatName=nullptr)
Read data from a text file and create a dataset from it.
bool isWeighted() const override
Return true if dataset contains weighted events.
Utility base class for RooFit objects that are to be attached to ROOT directories.
virtual void Streamer(TBuffer &)
void removeFromDir(TObject *obj)
Remove object from directory it was added to.
TDirectory * _dir
! Associated directory
void appendToDir(TObject *obj, bool forceMemoryResident=false)
Append object to directory.
Graphical representation of binned data based on the TGraphAsymmErrors class.
void addBinWithXYError(Axis_t binCenter, double n, double exlow, double exhigh, double eylow, double eyhigh, double scaleFactor=1.0)
Add a bin to this histogram with the specified bin contents and error.
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...
virtual void Add(TObject *arg)
Plot frame and a container for graphics objects within that frame.
RooAbsRealLValue * getPlotVar() const
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", bool invisible=false, bool refreshNorm=false)
Add the specified plotable object to our plot.
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
void setError(double value)
void setAsymError(double lo, double hi)
The RooStringView is a wrapper around a C-style string that can also be constructed from a std::strin...
TTree-backed data storage.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Buffer base class used for serializing objects.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual TList * GetList() const
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void SetName(const char *name="") override
Set graph name.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
A TTree represents a columnar dataset.
RooCmdArg StoreError(const RooArgSet &aset)
RooCmdArg WeightVar(const char *name="weight", bool reinterpretAsWeight=false)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
std::vector< std::string > Split(std::string_view str, std::string_view delims, bool skipEmpty=false)
Splits a string at each character in delims.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...
OwningPtr< T > makeOwningPtr(std::unique_ptr< T > &&ptr)
Internal helper to turn a std::unique_ptr<T> into an OwningPtr.
bool checkIfRangesOverlap(RooArgSet const &observables, std::vector< std::string > const &rangeNames)
void initialize(typename Architecture_t::Matrix_t &A, EInitialization m)