28 using namespace RooFit;
29 using namespace RooStats;
32 void rs602_HLFactoryCombinationexample() {
34 using namespace RooStats;
35 using namespace RooFit;
38 TString card_name(
"HLFavtoryCombinationexample.rs");
39 ofstream ofile(card_name);
40 ofile <<
"// The simplest card for combination\n\n"
41 <<
"gauss1 = Gaussian(x[0,100],mean1[50,0,100],4);\n"
42 <<
"flat1 = Polynomial(x,0);\n"
43 <<
"sb_model1 = SUM(nsig1[120,0,300]*gauss1 , nbkg1[100,0,1000]*flat1);\n"
44 <<
"gauss2 = Gaussian(x,mean2[80,0,100],5);\n"
45 <<
"flat2 = Polynomial(x,0);\n"
46 <<
"sb_model2 = SUM(nsig2[90,0,400]*gauss2 , nbkg2[80,0,1000]*flat2);\n";
50 HLFactory hlf(
"HLFavtoryCombinationexample",
54 hlf.AddChannel(
"model1",
"sb_model1",
"flat1");
55 hlf.AddChannel(
"model2",
"sb_model2",
"flat2");
75 gROOT->SetStyle(
"Plain");
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
RooCmdArg Extended(Bool_t flag=kTRUE)
HLFactory is an High Level model Factory allows you to describe your models in a configuration file (...
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet is a container class to hold unbinned data.
RooCategory represents a fundamental (non-derived) discrete value object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooCmdArg Slice(const RooArgSet &sliceSet)