Data and categories: demonstration of discrete-->discrete (invertible) functions
{
tagCat.defineType("Lepton");
tagCat.defineType("Kaon");
tagCat.defineType("NetTagger-1");
tagCat.defineType("NetTagger-2");
tagCat.Print();
b0flav.defineType("B0", -1);
b0flav.defineType("B0bar", 1);
b0flav.Print();
std::unique_ptr<RooDataSet>
data{
p.generate({
x, b0flav, tagCat}, 10000)};
tcatType.map("Lepton", "Cut based");
tcatType.map("Kaon", "Cut based");
tcatType.map("NetTagger*", "Neural Network");
b0Xtcat.setLabel("{B0bar;Lepton}");
}
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Object to represent discrete states.
RooMappedCategory provides a category-to-category mapping defined by pattern matching on their state ...
Connects several RooAbsCategory objects into a single category.
RooPolynomial implements a polynomial p.d.f of the form.
Variable that can be changed from the outside.
Joins several RooAbsCategoryLValue objects into a single category.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooCategory::tagCat = Lepton(idx = 0)
RooCategory::b0flav = B0(idx = -1)
Table tcatType : pData
+----------------+------+
| Cut based | 5040 |
| Neural Network | 4960 |
+----------------+------+
Table b0Xtcat : pData
+---------------------+------+
| {B0;Lepton} | 1302 |
| {B0bar;Lepton} | 1192 |
| {B0;Kaon} | 1232 |
| {B0bar;Kaon} | 1314 |
| {B0;NetTagger-1} | 1242 |
| {B0bar;NetTagger-1} | 1208 |
| {B0;NetTagger-2} | 1282 |
| {B0bar;NetTagger-2} | 1228 |
+---------------------+------+
Table b0Xttype : pData
+------------------------+------+
| {B0;Cut based} | 2534 |
| {B0bar;Cut based} | 2506 |
| {B0;Neural Network} | 2524 |
| {B0bar;Neural Network} | 2436 |
+------------------------+------+
- Date
- July 2008
- Author
- Wouter Verkerke
Definition in file rf406_cattocatfuncs.C.