32void rs601_HLFactoryexample() {
36 TString card_name(
"HLFavtoryexample.rs");
37 ofstream ofile(card_name);
38 ofile <<
"// The simplest card\n\n"
39 <<
"gauss = Gaussian(mes[5.20,5.30],mean[5.28,5.2,5.3],width[0.0027,0.001,1]);\n"
40 <<
"argus = ArgusBG(mes,5.291,argpar[-20,-100,-1]);\n"
41 <<
"sum = SUM(nsig[200,0,10000]*gauss,nbkg[800,0,10000]*argus);\n\n";
67 data->plotOn(mesframe) ;
68 sum->plotOn(mesframe) ;
71 gROOT->SetStyle(
"Plain");
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooPlot * frame(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Create a new RooPlot on the heap with a drawing frame initialized for this object,...
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a fundamental (non-derived) real valued object.
HLFactory is an High Level model Factory allows you to describe your models in a configuration file (...
The RooWorkspace is a persistable container for RooFit projects.
RooAbsArg * arg(const char *name) const
Return RooAbsArg with given name. A null pointer is returned if none is found.
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
RooCmdArg Components(const RooArgSet &compSet)
RooCmdArg LineStyle(Style_t style)
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer
static long int sum(long int i)