00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00016
00017
00018
00019
00020
00021
00022
00023 #include "RooRarFit/rarVersion.hh"
00024
00025 #include "Riostream.h"
00026
00027 #include "RooFitCore/RooArgList.hh"
00028 #include "RooFitCore/RooDataSet.hh"
00029 #include "RooFitCore/RooProdPdf.hh"
00030 #include "RooFitCore/RooRealVar.hh"
00031 #include "RooFitCore/RooStringVar.hh"
00032
00033 #include "RooRarFit/RooBallack.hh"
00034
00035 #include "RooRarFit/rarBallack.hh"
00036
00037 ClassImp(rarBallack)
00038 ;
00039
00043 rarBallack::rarBallack()
00044 : rarBasePdf(),
00045 _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00046 {
00047 init();
00048 }
00049
00062 rarBallack::rarBallack(const char *configFile, const char *configSec,
00063 const char *configStr,
00064 rarDatasets *theDatasets, RooDataSet *theData,
00065 const char *name, const char *title)
00066 : rarBasePdf(configFile, configSec, configStr,
00067 theDatasets, theData, name, title),
00068 _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00069 {
00070 init();
00071 }
00072
00073 rarBallack::~rarBallack()
00074 {
00075 }
00076
00082 void rarBallack::init()
00083 {
00084 cout<<"init of rarBallack for "<<GetName()<<":"<<endl;
00085
00086
00087 _x=createAbsReal("x", "observable"); assert(_x);
00088
00089 _mean=createAbsReal("mean", "mean", 0, -10, 10);
00090 _width=createAbsReal("width", "width", 0, -10, 10);
00091 _tail=createAbsReal("tail", "tail", 0, -10, 10);
00092 _alpha=createAbsReal("alpha", "alpha", 0, -10, 10);
00093 _n=createAbsReal("n", "n", 0, -10, 10);
00094 _params.Print("v");
00095
00096
00097 _thePdf=new RooBallack(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00098 *_x, *_mean, *_width, *_tail, *_alpha, *_n);
00099 }