'High Level Factory Example' RooStats tutorial macro #601
This tutorial shows an example of creating a simple model using the High Level model Factory.
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roostats/rs601_HLFactoryexample.C...
#include <fstream>
void rs601_HLFactoryexample() {
TString card_name("HLFavtoryexample.rs");
ofstream ofile(card_name);
ofile << "// The simplest card\n\n"
<< "gauss = Gaussian(mes[5.20,5.30],mean[5.28,5.2,5.3],width[0.0027,0.001,1]);\n"
<< "argus = ArgusBG(mes,5.291,argpar[-20,-100,-1]);\n"
<< "sum = SUM(nsig[200,0,10000]*gauss,nbkg[800,0,10000]*argus);\n\n";
ofile.close();
card_name,
false);
gROOT->SetStyle(
"Plain");
}
- Author
- Danilo Piparo
Definition in file rs601_HLFactoryexample.C.