rarNovosibirsk.cc

Go to the documentation of this file.
00001 /*****************************************************************************
00002 * Project: BaBar detector at the SLAC PEP-II B-factory
00003 * Package: RooRarFit
00004  *    File: $Id: rarNovosibirsk.cc,v 1.4 2011/06/16 13:18:50 fwilson Exp $
00005  * Authors: Karsten Koeneke, Lei Zhang
00006  * History:
00007  * 
00008  * Copyright (C) 2005-2012, Massachusetts Institute of Technology, Cambridge
00009  *  and          2005 University of California, Riverside
00010  *****************************************************************************/
00011 
00012 // -- CLASS DESCRIPTION [RooRarFit] --
00013 // This class provides Novosibirsk Pdf class for RooRarFit
00015 //
00016 // BEGIN_HTML
00017 // This class provides Novosibirsk Pdf class for RooRarFit
00018 // END_HTML
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   // first get its obs
00085   _x=createAbsReal("x", "observable"); assert(_x);
00086   // Config pdf params
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   // create pdf
00093   _thePdf=new RooNovosibirsk(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00094                              *_x, *_peak, *_width, *_tail);
00095 }

Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7