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