Processing /builddir/build/BUILD/root-6.12.06/tutorials/roofit/rf401_importttreethx.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://roofit.sourceforge.net/license.txt
[#1] INFO:DataHandling -- RooDataHist::adjustBinning(dh): fit range of variable x expanded to nearest bin boundaries: [-10,10] --> [-10,10]
RooDataHist::dh[c,x] = 300 bins (2964 weights)
[#1] INFO:DataHandling -- RooDataHist::adjustBinning(dh): fit range of variable x expanded to nearest bin boundaries: [-10,10] --> [-10,10]
RooDataHist::dh[c,x] = 300 bins (2964 weights)
[#1] INFO:Eval -- RooTreeDataStore::loadValues(ds) Ignored 35 out of range events
RooDataSet::ds[x,y] = 65 entries
[#1] INFO:Eval -- RooTreeDataStore::loadValues(ds2) Ignored 36 out of range events
RooDataSet::ds2[x,y,z] = 26 entries
[#1] INFO:Eval -- RooAbsReal::attachToTree(i) TTree Int_t branch i will be converted to double precision
RooDataSet::ds3[i,x] = 100 entries
[#1] INFO:DataHandling -- RooAbsCategory::attachToTree(i) TTree branch i will be interpreted as category index
[#1] INFO:Eval -- RooTreeDataStore::loadValues(ds4) Ignored 33 out of range events
RooDataSet::ds4[i,x] = 67 entries
reduceEng varSubset = (x,y) _wgtVar =
reduceEng varSubset = (x,y) _wgtVar =
reduceEng varSubset = (x,y) _wgtVar =
RooDataSet::dsABC[c,x,y] = 26 entries
#include <map>
TTree* makeTTree() ;
void rf401_importttreethx()
{
TH1* hh_1 = makeTH1(
"hh1",0,3) ;
TH1* hh_2 = makeTH1(
"hh2",-3,1) ;
TH1* hh_3 = makeTH1(
"hh3",+3,4) ;
c.defineType("SampleA") ;
c.defineType("SampleB") ;
c.defineType("SampleC") ;
map<string,TH1*> hmap ;
hmap["SampleA"] = hh_1 ;
hmap["SampleB"] = hh_2 ;
hmap["SampleC"] = hh_3 ;
TTree*
tree = makeTTree() ;
ds.Print() ;
ds2.Print() ;
ds3.Print() ;
icat.defineType("State0",0) ;
icat.defineType("State1",1) ;
ds4.Print() ;
RooDataSet* dsABC =
new RooDataSet(
"dsABC",
"dsABC",
RooArgSet(
x,
y),
Index(c),
Import(
"SampleA",*dsA),
Import(
"SampleB",*dsB),
Import(
"SampleC",*dsC)) ;
}
{
for (int i=0 ; i<1000 ; i++) {
}
return hh ;
}
TTree* makeTTree()
{
TTree*
tree =
new TTree(
"tree",
"tree") ;
tree->Branch(
"x",px,
"x/D") ;
tree->Branch(
"y",py,
"y/D") ;
tree->Branch(
"z",pz,
"z/D") ;
for (int i=0 ; i<100 ; i++) {
}
}