'DATA AND CATEGORIES' RooFit tutorial macro #406
Demonstration of discrete–>discrete (invertable) functions
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roofit/rf406_cattocatfuncs.C...
[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please
read http:
RooCategory::tagCat = Lepton(idx = 0)
Table tcatType : pData
+----------------+------+
| 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 |
+------------------------+------+
using namespace RooFit ;
void rf406_cattocatfuncs()
{
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() ;
tcatType.map("Lepton","Cut based") ;
tcatType.map("Kaon","Cut based") ;
tcatType.map("NetTagger*","Neural Network") ;
b0Xtcat.setLabel("{B0bar;Lepton}") ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf406_cattocatfuncs.C.